Skip to content

Commit

Permalink
build to the dist folder
Browse files Browse the repository at this point in the history
  • Loading branch information
ekristen committed Jul 21, 2015
1 parent bdd63d1 commit 055a97a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
cfssl_*
*-amd64
*-386
dist/*
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
cfssl_*
*-amd64
*-386
dist/*
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ ENV USER root

EXPOSE 8888

ENTRYPOINT ["cfssl"]
CMD ["cfssl"]

RUN go get github.com/cloudflare/cf-tls/tls
RUN go get github.com/cloudflare/go-metrics
Expand All @@ -17,6 +17,8 @@ RUN go get golang.org/x/crypto/ocsp

ADD . /go/src/github.com/cloudflare/cfssl

RUN go build cmd/cfssl/cfssl.go && cp cfssl /usr/local/bin
RUN go build cmd/... && \
cp cfssl /usr/local/bin && \
cp multirootca /usr/local/bin

WORKDIR /opt
3 changes: 2 additions & 1 deletion script/build
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,5 @@ fi
# Get rid of existing binaries
rm -f *-386
rm -f *-amd64
docker run --rm -v `pwd`:/go/src/github.com/cloudflare/cfssl cfssl-build gox "${OS_PLATFORM_ARG[@]}" "${OS_ARCH_ARG[@]}" -output="{{.Dir}}_{{.OS}}-{{.Arch}}" -ldflags="-w" ./cmd/...
rm -f dist/*
docker run --rm -v `pwd`:/go/src/github.com/cloudflare/cfssl cfssl-build gox "${OS_PLATFORM_ARG[@]}" "${OS_ARCH_ARG[@]}" -output="dist/{{.Dir}}_{{.OS}}-{{.Arch}}" -ldflags="-w" ./cmd/...

0 comments on commit 055a97a

Please sign in to comment.