Skip to content

Commit f66abc4

Browse files
Merge pull request #934 from jiridanek/jd_remove_obsolete_mkfile_flag
NO-JIRA: chore(Makefile): remove `BUILD_DEPENDENT_IMAGES` option
2 parents 23041ca + f6d1376 commit f66abc4

File tree

3 files changed

+6
-13
lines changed

3 files changed

+6
-13
lines changed

.github/workflows/build-notebooks-TEMPLATE.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,8 +254,6 @@ jobs:
254254
env:
255255
IMAGE_TAG: "${{ steps.calculated_vars.outputs.IMAGE_TAG }}"
256256
CONTAINER_BUILD_CACHE_ARGS: "--cache-from ${{ env.CACHE }} --cache-to ${{ env.CACHE }}"
257-
# dependent images were already built and pushed, so just let podman pull it
258-
BUILD_DEPENDENT_IMAGES: "no"
259257
- name: "pull_request: make ${{ inputs.target }}"
260258
run: |
261259
make ${{ inputs.target }}

Makefile

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ RELEASE ?= 2024b
2323
RELEASE_PYTHON_VERSION ?= 3.11
2424
# additional user-specified caching parameters for $(CONTAINER_ENGINE) build
2525
CONTAINER_BUILD_CACHE_ARGS ?= --no-cache
26-
# whether to build all dependent images or just the one specified
27-
BUILD_DEPENDENT_IMAGES ?= yes
2826
# whether to push the images to a registry as they are built
2927
PUSH_IMAGES ?= yes
3028

@@ -94,18 +92,15 @@ endef
9492
# ARG 1: Image tag name.
9593
# ARG 2: Path of Dockerfile we want to build.
9694
#
97-
# BUILD_DEPENDENT_IMAGES: only build images that were explicitly given as a goal on command line
9895
# PUSH_IMAGES: allows skipping podman push
9996
define image
10097
$(eval BUILD_DIRECTORY := $(shell echo $(2) | sed 's/\/Dockerfile.*//'))
10198
$(info #*# Image build directory: <$(BUILD_DIRECTORY)> #(MACHINE-PARSED LINE)#*#...)
10299

103-
$(if $(or $(BUILD_DEPENDENT_IMAGES:no=), $(filter $@,$(MAKECMDGOALS))),
104-
$(call build_image,$(1),$(2))
100+
$(call build_image,$(1),$(2))
105101

106-
$(if $(PUSH_IMAGES:no=),
107-
$(call push_image,$(1))
108-
)
102+
$(if $(PUSH_IMAGES:no=),
103+
$(call push_image,$(1))
109104
)
110105
endef
111106

@@ -170,11 +165,11 @@ codeserver-ubi9-python-$(RELEASE_PYTHON_VERSION):
170165
####################################### Buildchain for Python using C9S #######################################
171166

172167
.PHONY: rstudio-c9s-python-$(RELEASE_PYTHON_VERSION)
173-
rstudio-c9s-python-$(RELEASE_PYTHON_VERSION):
168+
rstudio-c9s-python-$(RELEASE_PYTHON_VERSION):
174169
$(call image,$@,rstudio/c9s-python-$(RELEASE_PYTHON_VERSION)/Dockerfile.cpu)
175170

176171
.PHONY: cuda-rstudio-c9s-python-$(RELEASE_PYTHON_VERSION)
177-
cuda-rstudio-c9s-python-$(RELEASE_PYTHON_VERSION):
172+
cuda-rstudio-c9s-python-$(RELEASE_PYTHON_VERSION):
178173
$(call image,$@,rstudio/c9s-python-$(RELEASE_PYTHON_VERSION)/Dockerfile.cuda)
179174

180175
####################################### Buildchain for AMD Python using UBI9 #######################################

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ make ${WORKBENCH_NAME} -e IMAGE_REGISTRY=quay.io/${YOUR_USER}/workbench-images
3939

4040
Using `IMAGE_REGISTRY` and `RELEASE` variables you can overwrite the default values and use a different registry or release tag
4141

42-
Using `CONTAINER_BUILD_CACHE_ARGS` (default: `--no-cache`), `BUILD_DEPENDENT_IMAGES`, and `PUSH_IMAGES` variables you can further customize the build process.
42+
Using `CONTAINER_BUILD_CACHE_ARGS` (default: `--no-cache`), and `PUSH_IMAGES` variables you can further customize the build process.
4343

4444
### Local Execution
4545

0 commit comments

Comments
 (0)