forked from tylertreat/frugal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
38 lines (33 loc) · 1.89 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
FROM drydock-prod.workiva.net/workiva/messaging-docker-images:210905 as build
ARG GIT_SSH_KEY
ARG KNOWN_HOSTS_CONTENT
WORKDIR /go/src/github.com/Workiva/frugal/
ADD . /go/src/github.com/Workiva/frugal/
RUN mkdir /root/.ssh && \
echo "$KNOWN_HOSTS_CONTENT" > "/root/.ssh/known_hosts" && \
chmod 700 /root/.ssh/ && \
umask 0077 && echo "$GIT_SSH_KEY" >/root/.ssh/id_rsa && \
eval "$(ssh-agent -s)" && ssh-add /root/.ssh/id_rsa
ARG GOPATH=/go/
ENV PATH $GOPATH/bin:$PATH
RUN git config --global url.git@github.com:.insteadOf https://github.com
ENV FRUGAL_HOME=/go/src/github.com/Workiva/frugal
ENV CODECOV_TOKEN='d88d0bbe-b5f0-4dce-92ae-a110aa028ddb'
RUN echo "Starting the script section" && \
./scripts/smithy.sh && \
cat $FRUGAL_HOME/test_results/smithy_dart.sh_out.txt && \
cat $FRUGAL_HOME/test_results/smithy_go.sh_out.txt && \
cat $FRUGAL_HOME/test_results/smithy_generator.sh_out.txt && \
cat $FRUGAL_HOME/test_results/smithy_python.sh_out.txt && \
cat $FRUGAL_HOME/test_results/smithy_java.sh_out.txt && \
echo "script section completed"
ARG BUILD_ARTIFACTS_RELEASE=/go/src/github.com/Workiva/frugal/frugal
ARG BUILD_ARTIFACTS_AUDIT=/go/src/github.com/Workiva/frugal/python2_pip_deps.txt:/go/src/github.com/Workiva/frugal/python3_pip_deps.txt:/go/src/github.com/Workiva/frugal/lib/go/glide.lock:/go/src/github.com/Workiva/frugal/lib/dart/pubspec.lock:/go/src/github.com/Workiva/frugal/lib/java/pom.xml
ARG BUILD_ARTIFACTS_GO_LIBRARY=/go/src/github.com/Workiva/frugal/goLib.tar.gz
ARG BUILD_ARTIFACTS_PYPI=/go/src/github.com/Workiva/frugal/frugal-*.tar.gz
ARG BUILD_ARTIFACTS_ARTIFACTORY=/go/src/github.com/Workiva/frugal/frugal-*.jar
ARG BUILD_ARTIFACTS_PUB=/go/src/github.com/Workiva/frugal/frugal.pub.tgz
ARG BUILD_ARTIFACTS_TEST_RESULTS=/go/src/github.com/Workiva/frugal/test_results/*
FROM scratch
COPY --from=build /go/src/github.com/Workiva/frugal/frugal /bin/frugal
ENTRYPOINT ["frugal"]