From adb048488323e932ff1efa64ddc29dd9f3e0e707 Mon Sep 17 00:00:00 2001 From: Emil Lerch Date: Tue, 24 Nov 2020 15:20:14 -0800 Subject: [PATCH] add podman support (when aliased to docker) --- Makefile | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Makefile b/Makefile index d43603f..be0532a 100755 --- a/Makefile +++ b/Makefile @@ -24,10 +24,17 @@ VERSION ?= $(shell git describe --tags --always --dirty) # This version-strategy uses a manual value to set the version string #VERSION ?= 1.2.3 +# Podman rootless needs 777. Otherwise should be 755 +BINDIRMODE ?= 777 ### ### These variables should not need tweaking. ### +# So /bin/sh/ sources file at $ENV +SHELL := sh +.SHELLFLAGS := -ic + + SRC_DIRS := cmd pkg # directories which hold app source (not vendored) # Windows not working atm @@ -125,6 +132,8 @@ $(STAMPS): go-build go-build: $(BUILD_DIRS) @echo @echo "building for $(OS)/$(ARCH)" + @mkdir -p "$$(pwd)/.go/bin/$(OS)_$(ARCH)" + @chmod $(BINDIRMODE) "$$(pwd)/.go/bin/$(OS)_$(ARCH)" @docker run \ -i \ --rm \