From 1d7a4c59854a4f3a79c38841f69181398e03d1aa Mon Sep 17 00:00:00 2001 From: Samuel Alfageme Sainz Date: Tue, 15 Jun 2021 17:51:00 +0200 Subject: [PATCH] Revert "Build static binaries for Docker, so that we can use 'scratch' image (#1766)" This partially reverts commit 07adb3f0eb4ad678d09e5ba48800abce59ad5480 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 --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 7a1206a715..ac75c7485d 100644 --- a/Makefile +++ b/Makefile @@ -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: