Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable CGO on revad docker images #3723

Merged
merged 1 commit into from
Mar 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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