Skip to content

Commit 06c21be

Browse files
author
ci-wf
committed
Update Dockerfile to mirror smithy.yaml
1 parent 511e373 commit 06c21be

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

Dockerfile

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
FROM drydock-prod.workiva.net/workiva/smithy-runner-golang:121185 as build
2+
3+
# Build Environment Vars
4+
ARG BUILD_ID
5+
ARG BUILD_NUMBER
6+
ARG BUILD_URL
7+
ARG GIT_COMMIT
8+
ARG GIT_BRANCH
9+
ARG GIT_TAG
10+
ARG GIT_COMMIT_RANGE
11+
ARG GIT_HEAD_URL
12+
ARG GIT_MERGE_HEAD
13+
ARG GIT_MERGE_BRANCH
14+
ARG GIT_SSH_KEY
15+
ARG KNOWN_HOSTS_CONTENT
16+
WORKDIR /go/src/github.com/Workiva/go-datastructures/
17+
ADD . /go/src/github.com/Workiva/go-datastructures/
18+
19+
RUN mkdir /root/.ssh && \
20+
echo "$KNOWN_HOSTS_CONTENT" > "/root/.ssh/known_hosts" && \
21+
chmod 700 /root/.ssh/ && \
22+
umask 0077 && echo "$GIT_SSH_KEY" >/root/.ssh/id_rsa && \
23+
eval "$(ssh-agent -s)" && ssh-add /root/.ssh/id_rsa
24+
25+
ARG GOPATH=/go/
26+
ENV PATH $GOPATH/bin:$PATH
27+
RUN git config --global url.git@github.com:.insteadOf https://github.com
28+
RUN if [ -d /usr/local/go_appengine ]; then ENV PATH $PATH:/usr/local/go_appengine; fi
29+
RUN echo "Starting the script section" && \
30+
glide install && \
31+
echo "script section completed"
32+
RUN go get -d ./... && \
33+
go build
34+
ARG BUILD_ARTIFACTS_DEPENDENCIES=/go/src/github.com/Workiva/go-datastructures/glide.lock
35+
FROM scratch

0 commit comments

Comments
 (0)