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
41
41
DOCKER_CLI_EXPERIMENTAL = enabled
42
42
export GOPATH GOBIN GO111MODULE DOCKER_CLI_EXPERIMENTAL
43
43
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
+
44
51
# The current context of image building
45
52
# The architecture of the image
46
53
ARCH ?= amd64
@@ -173,4 +180,4 @@ delete-metrics-svc:
173
180
blobfuse-proxy :
174
181
mkdir -p ./pkg/blobfuse-proxy/debpackage/usr/bin/ ./_output
175
182
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