|
4 | 4 |
|
5 | 5 | # Use bash for inline if-statements in arch_patch target
|
6 | 6 | SHELL:=bash
|
| 7 | +REGISTRY?=docker.io |
7 | 8 | OWNER?=jupyter
|
8 | 9 |
|
9 | 10 | # Need to list the images in build dependency order
|
|
37 | 38 |
|
38 | 39 | build/%: DOCKER_BUILD_ARGS?=
|
39 | 40 | build/%: ## build the latest image for a stack using the system's architecture
|
40 |
| - docker build $(DOCKER_BUILD_ARGS) --rm --force-rm --tag "$(OWNER)/$(notdir $@):latest" "./images/$(notdir $@)" --build-arg OWNER="$(OWNER)" |
| 41 | + docker build $(DOCKER_BUILD_ARGS) --rm --force-rm --tag "$(REGISTRY)/$(OWNER)/$(notdir $@):latest" "./images/$(notdir $@)" --build-arg REGISTRY="$(REGISTRY)" --build-arg OWNER="$(OWNER)" |
41 | 42 | @echo -n "Built image size: "
|
42 |
| - @docker images "$(OWNER)/$(notdir $@):latest" --format "{{.Size}}" |
| 43 | + @docker images "$(REGISTRY)/$(OWNER)/$(notdir $@):latest" --format "{{.Size}}" |
43 | 44 | build-all: $(foreach I, $(ALL_IMAGES), build/$(I)) ## build all stacks
|
44 | 45 |
|
45 | 46 |
|
@@ -68,9 +69,9 @@ linkcheck-docs: ## check broken links
|
68 | 69 |
|
69 | 70 |
|
70 | 71 | hook/%: ## run post-build hooks for an image
|
71 |
| - python3 -m tagging.write_tags_file --short-image-name "$(notdir $@)" --tags-dir /tmp/jupyter/tags/ --owner "$(OWNER)" && \ |
72 |
| - python3 -m tagging.write_manifest --short-image-name "$(notdir $@)" --hist-line-dir /tmp/jupyter/hist_lines/ --manifest-dir /tmp/jupyter/manifests/ --owner "$(OWNER)" && \ |
73 |
| - python3 -m tagging.apply_tags --short-image-name "$(notdir $@)" --tags-dir /tmp/jupyter/tags/ --platform "$(shell uname -m)" --owner "$(OWNER)" |
| 72 | + python3 -m tagging.write_tags_file --short-image-name "$(notdir $@)" --tags-dir /tmp/jupyter/tags/ --registry "$(REGISTRY)" --owner "$(OWNER)" && \ |
| 73 | + python3 -m tagging.write_manifest --short-image-name "$(notdir $@)" --hist-line-dir /tmp/jupyter/hist_lines/ --manifest-dir /tmp/jupyter/manifests/ --registry "$(REGISTRY)" --owner "$(OWNER)" && \ |
| 74 | + python3 -m tagging.apply_tags --short-image-name "$(notdir $@)" --tags-dir /tmp/jupyter/tags/ --platform "$(shell uname -m)" --registry "$(REGISTRY)" --owner "$(OWNER)" |
74 | 75 | hook-all: $(foreach I, $(ALL_IMAGES), hook/$(I)) ## run post-build hooks for all images
|
75 | 76 |
|
76 | 77 |
|
@@ -105,5 +106,5 @@ run-sudo-shell/%: ## run a bash in interactive mode as root in a stack
|
105 | 106 |
|
106 | 107 |
|
107 | 108 | test/%: ## run tests against a stack
|
108 |
| - python3 -m tests.run_tests --short-image-name "$(notdir $@)" --owner "$(OWNER)" |
| 109 | + python3 -m tests.run_tests --short-image-name "$(notdir $@)" --registry "$(REGISTRY)" --owner "$(OWNER)" |
109 | 110 | test-all: $(foreach I, $(ALL_IMAGES), test/$(I)) ## test all stacks
|
0 commit comments