Skip to content

Commit d5cb0dd

Browse files
Have make dev-dist use local images:
This removes the need to push bootkit and tink-docker container images to a registry. `make dev-dist` will pick up locally built images and use them in the linuxkit build. Signed-off-by: Jacob Weinstock <jakobweinstock@gmail.com>
1 parent 47b7aff commit d5cb0dd

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

Makefile

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ LINUXKIT_CONFIG ?= hook.yaml
1111

1212
dev: dev-bootkitBuild dev-tink-dockerBuild
1313
ifeq ($(ARCH),x86_64)
14-
dev: image-amd64
14+
dev: dev-image-amd64
1515
endif
1616
ifeq ($(ARCH),aarch64)
17-
dev: image-arm64
17+
dev: dev-image-arm64
1818
endif
1919

2020
# This option is for running docker manifest command
@@ -28,6 +28,14 @@ image-arm64:
2828
mkdir -p out
2929
linuxkit build -docker -pull -arch arm64 -format kernel+initrd -name hook-aarch64 -dir out $(LINUXKIT_CONFIG)
3030

31+
dev-image-amd64:
32+
mkdir -p out
33+
linuxkit build -docker -format kernel+initrd -name hook-x86_64 -dir out $(LINUXKIT_CONFIG)
34+
35+
dev-image-arm64:
36+
mkdir -p out
37+
linuxkit build -docker -arch arm64 -format kernel+initrd -name hook-aarch64 -dir out $(LINUXKIT_CONFIG)
38+
3139
image: image-amd64 image-arm64
3240

3341
debug-image-amd64:

0 commit comments

Comments
 (0)