Skip to content

Commit

Permalink
Enable CGO on revad docker images (#3723)
Browse files Browse the repository at this point in the history
  • Loading branch information
vascoguita authored Mar 10, 2023
1 parent 004a593 commit 8cbc3c7
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions changelog/unreleased/fix-cgo.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Bugfix: Fix revad docker images by enabling CGO

https://github.com/cs3org/reva/pull/3723
4 changes: 4 additions & 0 deletions docker/Dockerfile.revad
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ ARG GIT_COMMIT
ARG VERSION
ENV GIT_COMMIT=$GIT_COMMIT
ENV VERSION=$VERSION
ENV CGO_ENABLED 1

RUN apk add --no-cache gcc musl-dev

RUN go build -ldflags "-X main.gitCommit=$GIT_COMMIT -X main.version=$VERSION -X main.goVersion=`go version | awk '{print $3}'` -X main.buildDate=`date +%FT%T%z`" -o ./cmd/revad/revad ./cmd/revad

FROM alpine:3.16
Expand Down
4 changes: 4 additions & 0 deletions docker/Dockerfile.revad-eos
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ ARG GIT_COMMIT
ARG VERSION
ENV GIT_COMMIT=$GIT_COMMIT
ENV VERSION=$VERSION
ENV CGO_ENABLED 1

RUN apk add --no-cache gcc musl-dev

RUN go build -ldflags "-X main.gitCommit=$GIT_COMMIT -X main.version=$VERSION -X main.goVersion=`go version | awk '{print $3}'` -X main.buildDate=`date +%FT%T%z`" -o ./cmd/revad/revad ./cmd/revad

FROM gitlab-registry.cern.ch/dss/eos/eos-all:4.8.91
Expand Down

0 comments on commit 8cbc3c7

Please sign in to comment.