File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,13 @@ GOBIN ?= $(GOPATH)/bin
4141DOCKER_CLI_EXPERIMENTAL = enabled
4242export GOPATH GOBIN GO111MODULE DOCKER_CLI_EXPERIMENTAL
4343
44+ # allow dpkg-deb to be run via docker
45+ ifneq ("$(shell which dpkg-deb) ", "")
46+ DPKG_DEB := $(shell which dpkg-deb)
47+ else
48+ DPKG_DEB := docker run --rm -v $${PWD}:/src -w /src ubuntu dpkg-deb
49+ endif
50+
4451# The current context of image building
4552# The architecture of the image
4653ARCH ?= amd64
@@ -173,4 +180,4 @@ delete-metrics-svc:
173180blobfuse-proxy :
174181 mkdir -p ./pkg/blobfuse-proxy/debpackage/usr/bin/ ./_output
175182 CGO_ENABLED=0 GOOS=linux go build -mod vendor -ldflags=" -s -w" -o ./pkg/blobfuse-proxy/debpackage/usr/bin/blobfuse-proxy ./pkg/blobfuse-proxy
176- dpkg-deb --build pkg/blobfuse-proxy/debpackage ./_output/blobfuse-proxy.deb
183+ $( DPKG_DEB ) --build pkg/blobfuse-proxy/debpackage ./_output/blobfuse-proxy.deb
You can’t perform that action at this time.
0 commit comments