Skip to content

Commit

Permalink
build a versioned KES binary in docker container
Browse files Browse the repository at this point in the history
This commit uses the `release` command added by
08be13b to build a binary with release information
when building the docker image.

This can be verified by running:
```
docker build - < Dockerfile
```
and then
```
docker run <container-id> -v
```
  • Loading branch information
Andreas Auernhammer committed Apr 7, 2020
1 parent 08be13b commit e6e9e9e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ ENV GOPROXY https://proxy.golang.org

RUN \
apk add --no-cache git && \
go install -v -ldflags "-s -w" github.com/minio/kes/cmd/kes
go install -v -ldflags "-s -w" github.com/minio/kes/cmd/release && \
go install -v -ldflags "-s -w -X main.version=$(release)" github.com/minio/kes/cmd/kes

FROM alpine:3.10

Expand Down

0 comments on commit e6e9e9e

Please sign in to comment.