Skip to content

Commit f338bf4

Browse files
Merge pull request #196 from Workiva/smithy_dockerfile_migration
RM-30330 Workiva-Build: Update Dockerfile to mirror smithy.yaml
2 parents 511e373 + 08062ba commit f338bf4

File tree

2 files changed

+23
-11
lines changed

2 files changed

+23
-11
lines changed

Dockerfile

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
FROM drydock-prod.workiva.net/workiva/smithy-runner-golang:121185 as build
2+
3+
ARG GIT_SSH_KEY
4+
ARG KNOWN_HOSTS_CONTENT
5+
WORKDIR /go/src/github.com/Workiva/go-datastructures/
6+
ADD . /go/src/github.com/Workiva/go-datastructures/
7+
8+
RUN mkdir /root/.ssh && \
9+
echo "$KNOWN_HOSTS_CONTENT" > "/root/.ssh/known_hosts" && \
10+
chmod 700 /root/.ssh/ && \
11+
umask 0077 && echo "$GIT_SSH_KEY" >/root/.ssh/id_rsa && \
12+
eval "$(ssh-agent -s)" && ssh-add /root/.ssh/id_rsa
13+
14+
ARG GOPATH=/go/
15+
ENV PATH $GOPATH/bin:$PATH
16+
RUN git config --global [email protected]:.insteadOf https://github.com
17+
RUN echo "Starting the script section" && \
18+
glide install && \
19+
echo "script section completed"
20+
21+
ARG BUILD_ARTIFACTS_DEPENDENCIES=/go/src/github.com/Workiva/go-datastructures/glide.lock
22+
23+
FROM scratch

smithy.yaml

-11
This file was deleted.

0 commit comments

Comments
 (0)