Skip to content

Commit

Permalink
Revert "Build static binaries for Docker, so that we can use 'scratch…
Browse files Browse the repository at this point in the history
…' image (#1766)"

This partially reverts commit 07adb3f as there are a few issues
when trying to run revad e.g. go-sqlite3 requires it:

2021-06-15 15:39:31.314 ERR go/src/github/cs3org/reva/cmd/revad/runtime/runtime.go:197 > error starting the http server error="http service dataprovider could not be started,: localfs: error initializing db: localfs: error preparing statement: Binary was compiled with 'CGO_ENABLED=0', go-sqlite3 requires cgo to work. This is a stub" pid=1
  • Loading branch information
SamuAlfageme committed Jun 16, 2021
1 parent 07adb3f commit 1d7a4c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ ci: build-ci test lint-ci

# to be run in Docker build
build-revad-docker: off
env CGO_ENABLED=0 go build -ldflags ${BUILD_FLAGS} -o ./cmd/revad/revad ./cmd/revad
go build -ldflags ${BUILD_FLAGS} -o ./cmd/revad/revad ./cmd/revad
build-reva-docker: off
env CGO_ENABLED=0 go build -ldflags ${BUILD_FLAGS} -o ./cmd/reva/reva ./cmd/reva
clean:
Expand Down

0 comments on commit 1d7a4c5

Please sign in to comment.