fix(release): Try to use ':z' to allow writing to a shared volume
@@ -21,8 +21,8 @@ dep_ensure() {
echo "Running 'dep ensure' with $GO_BUILDER_IMAGE"
[ -d "dep-cache" ] || mkdir dep-cache
docker run -w /gopath/src/github.com/syndesisio/syndesis/install/operator \
- -v $(pwd)/dep-cache:/gopath/pkg/dep \
- -v $top_dir:/gopath/src/github.com/syndesisio/syndesis \
+ -v $(pwd)/dep-cache:/gopath/pkg/dep:z \
+ -v $top_dir:/gopath/src/github.com/syndesisio/syndesis:z \
$GO_BUILDER_IMAGE \
dep ensure -vendor-only -v
fi
@@ -62,7 +62,7 @@ build_operator() {
local top_dir=$(appdir ".")
pushd "$top_dir/install/operator" >/dev/null
docker run -w /gopath/src/github.com/syndesisio/syndesis/install/operator \
- -v $top_dir:/gopath/src/github.com/syndesisio/syndesis \
+ -v $top_dir:/gopath/src/github.com/syndesisio/syndesis:z \
-e CGO_ENABLED=0 \
$GO_BUILDER_IMAGE \
go build ./cmd/syndesis-operator
