Skip to content

Commit

Permalink
Update Dockerfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacob H. Haven committed Feb 25, 2016
1 parent b464b0d commit fb879bc
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 42 deletions.
13 changes: 3 additions & 10 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,20 +1,13 @@
FROM golang:1.5
FROM golang:1.6

ENV USER root

# Install pkcs11 deps
RUN apt-get update && apt-get install -y \
libltdl-dev \
--no-install-recommends \
&& rm -rf /var/lib/apt/lists/*

WORKDIR /go/src/github.com/cloudflare/cfssl
COPY . .

# restore all deps and build
RUN go get github.com/tools/godep && godep restore && \
go get github.com/GeertJohan/go.rice/rice && rice embed-go -i=./cli/serve && \
git clone https://github.com/cloudflare/cfssl_trust.git /etc/cfssl && \
RUN go get github.com/GeertJohan/go.rice/rice && rice embed-go -i=./cli/serve && \
cp -R /go/src/github.com/cloudflare/cfssl/vendor/github.com/cloudflare/cfssl_trust /etc/cfssl && \
go install ./cmd/...

EXPOSE 8888
Expand Down
11 changes: 2 additions & 9 deletions Dockerfile.build
Original file line number Diff line number Diff line change
@@ -1,18 +1,11 @@
FROM golang:1.5
FROM golang:1.6

ENV USER root

# Install pkcs11 deps
RUN apt-get update && apt-get install -y \
libltdl-dev \
--no-install-recommends \
&& rm -rf /var/lib/apt/lists/*

WORKDIR /go/src/github.com/cloudflare/cfssl
COPY . .

# restore all deps and build
RUN go get github.com/tools/godep && godep restore && \
go get github.com/mitchellh/gox
RUN go get github.com/mitchellh/gox

ENTRYPOINT ["gox"]
8 changes: 1 addition & 7 deletions Dockerfile.minimal
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@ ENV PATH /go/bin:/usr/local/go/bin:$PATH
ENV GOPATH /go
ENV USER root

# Install pkcs11 deps
RUN apk update && apk add \
libltdl \
&& rm -rf /var/cache/apk/*

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

RUN buildDeps=' \
Expand All @@ -23,9 +18,8 @@ RUN buildDeps=' \
apk update && \
apk add $buildDeps && \
cd /go/src/github.com/cloudflare/cfssl && \
go get github.com/tools/godep && godep restore && \
go get github.com/GeertJohan/go.rice/rice && rice embed-go -i=./cli/serve && \
git clone https://github.com/cloudflare/cfssl_trust.git /etc/cfssl && \
cp -R /go/src/github.com/cloudflare/cfssl/vendor/github.com/cloudflare/cfssl_trust /etc/cfssl && \
go build -o /usr/bin/cfssl ./cmd/cfssl && \
go build -o /usr/bin/cfssljson ./cmd/cfssljson && \
go build -o /usr/bin/mkbundle ./cmd/mkbundle && \
Expand Down
16 changes: 0 additions & 16 deletions aws/Dockerfile

This file was deleted.

0 comments on commit fb879bc

Please sign in to comment.