@@ -33,27 +33,13 @@ VERSION := $(shell git describe --tags --always --dirty)
33
33
34
34
SRC_DIRS := cmd pkg # directories which hold app source (not vendored)
35
35
36
- ALL_PLATFORMS := linux/amd64
36
+ ALL_PLATFORMS := linux/amd64 linux/arm linux/arm64 linux/ppc64le linux/s390x
37
37
38
38
# Used internally. Users should pass GOOS and/or GOARCH.
39
39
OS := $(if $(GOOS ) ,$(GOOS ) ,$(shell go env GOOS) )
40
40
ARCH := $(if $(GOARCH ) ,$(GOARCH ) ,$(shell go env GOARCH) )
41
41
42
- # TODO: get a baseimage that works for other platforms
43
- # linux/arm linux/arm64 linux/ppc64le
44
-
45
- # Set default base image dynamically for each arch
46
- ifeq ($(OS ) /$(ARCH ) ,linux/amd64)
47
- BASEIMAGE ?= alpine:3.8
48
- # else ifeq ($(OS)/$(ARCH),linux/arm)
49
- # BASEIMAGE ?= armel/busybox
50
- # else ifeq ($(OS)/$(ARCH),linux/arm64)
51
- # BASEIMAGE ?= aarch64/busybox
52
- # else ifeq ($(OS)/$(ARCH),linux/ppc64le)
53
- # BASEIMAGE ?= ppc64le/busybox
54
- else
55
- $(error Unsupported target platform '$(OS)/$(ARCH)')
56
- endif
42
+ BASEIMAGE ?= k8s.gcr.io/debian-base:0.4.1
57
43
58
44
IMAGE := $(REGISTRY ) /$(BIN )
59
45
TAG := $(VERSION ) __$(OS ) _$(ARCH )
0 commit comments