Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
33 changed files
with
411 additions
and
400 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# shared makefile for all images | ||
|
||
# get image name from directory we're building | ||
IMAGE_NAME=$(notdir $(CURDIR)) | ||
# docker image registry, default to upstream | ||
REGISTRY?=kindest | ||
# tag based on date-sha | ||
TAG?=$(shell echo "$$(date +v%Y%m%d)-$$(git describe --always --dirty)") | ||
# the full image tag | ||
IMAGE?=$(REGISTRY)/$(IMAGE_NAME):$(TAG) | ||
|
||
# required to enable buildx | ||
export DOCKER_CLI_EXPERIMENTAL=enabled | ||
|
||
# build with buildx | ||
PLATFORMS?=linux/amd64,linux/arm64,linux/ppc64le | ||
OUTPUT= | ||
PROGRESS=auto | ||
build: ensure-buildx | ||
docker buildx build --platform=${PLATFORMS} $(OUTPUT) --progress=$(PROGRESS) -t ${IMAGE} --pull . | ||
|
||
# push the cross built image | ||
push: OUTPUT=--push | ||
push: build | ||
|
||
# quick can be used to do a build that will be imported into the local docker | ||
# for sanity checking before doing a cross build push | ||
# cross builds cannot be imported locally at the moment | ||
# https://github.com/docker/buildx/issues/59 | ||
quick: PLATFORMS=linux/amd64 | ||
quick: OUTPUT=--load | ||
quick: build | ||
|
||
# enable buildx | ||
ensure-buildx: | ||
./../../hack/build/init-buildx.sh | ||
|
||
.PHONY: push build quick ensure-buildx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1 @@ | ||
TAG?=$(shell echo "$$(date +v%Y%m%d)-$$(git describe --always --dirty)") | ||
IMAGE?=kindest/base:$(TAG) | ||
# required for buildx | ||
export DOCKER_CLI_EXPERIMENTAL=enabled | ||
|
||
# build with buildx | ||
PLATFORMS?=linux/amd64,linux/arm64 | ||
OUTPUT= | ||
build: ensure-buildx | ||
docker buildx build --platform=${PLATFORMS} $(OUTPUT) -t ${IMAGE} --pull . | ||
|
||
# push the cross built image | ||
push: OUTPUT=--push | ||
push: build | ||
|
||
# quick can be used to do a build that will be imported into the local docker | ||
# for sanity checking before doing a cross build push | ||
# cross builds cannot be imported locally at the moment | ||
# https://github.com/docker/buildx/issues/59 | ||
quick: PLATFORMS=linux/amd64 | ||
quick: OUTPUT=--load | ||
quick: build | ||
|
||
# enable buildx | ||
ensure-buildx: | ||
./../../hack/build/init-buildx.sh | ||
|
||
.PHONY: push build quick ensure-buildx | ||
include $(CURDIR)/../Makefile.common.in |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
include $(CURDIR)/../Makefile.common.in |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
include $(CURDIR)/../Makefile.common.in |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.