Skip to content

Commit

Permalink
update dockerfile to allow pulling private repo
Browse files Browse the repository at this point in the history
update makefile to forward github credentials from env to docker build

Signed-off-by: Ivan Porto Carrero <[email protected]>
  • Loading branch information
Ivan Porto Carrero committed Oct 15, 2018
1 parent c884bd9 commit 8eea19a
Show file tree
Hide file tree
Showing 6 changed files with 49 additions and 1,013 deletions.
11 changes: 10 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
FROM golang:alpine as base

ARG github_user
ARG github_token

ENV GITHUB_USER ${github_user}
ENV GITHUB_TOKEN ${github_token}

ADD hack/create-netrc.sh /usr/bin/create-netrc

RUN mkdir -p /stage/data /stage/etc/ssl/certs &&\
apk add --no-cache musl-dev gcc ca-certificates mailcap upx tzdata zip &&\
create-netrc &&\
apk add --no-cache musl-dev gcc ca-certificates mailcap upx tzdata zip git &&\
update-ca-certificates &&\
cp /etc/ssl/certs/ca-certificates.crt /stage/etc/ssl/certs/ca-certificates.crt &&\
cp /etc/mime.types /stage/etc/mime.types
Expand Down
Loading

0 comments on commit 8eea19a

Please sign in to comment.