add podman support (when aliased to docker)

This commit is contained in:
Emil Lerch 2020-11-24 15:20:14 -08:00
parent 5cfc0a8f7d
commit adb0484883
Signed by: lobo
GPG Key ID: A7B62D657EF764F8

View File

@ -24,10 +24,17 @@ VERSION ?= $(shell git describe --tags --always --dirty)
# This version-strategy uses a manual value to set the version string # This version-strategy uses a manual value to set the version string
#VERSION ?= 1.2.3 #VERSION ?= 1.2.3
# Podman rootless needs 777. Otherwise should be 755
BINDIRMODE ?= 777
### ###
### These variables should not need tweaking. ### 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) SRC_DIRS := cmd pkg # directories which hold app source (not vendored)
# Windows not working atm # Windows not working atm
@ -125,6 +132,8 @@ $(STAMPS): go-build
go-build: $(BUILD_DIRS) go-build: $(BUILD_DIRS)
@echo @echo
@echo "building for $(OS)/$(ARCH)" @echo "building for $(OS)/$(ARCH)"
@mkdir -p "$$(pwd)/.go/bin/$(OS)_$(ARCH)"
@chmod $(BINDIRMODE) "$$(pwd)/.go/bin/$(OS)_$(ARCH)"
@docker run \ @docker run \
-i \ -i \
--rm \ --rm \