Skip to content

Commit 5365b9f

Browse files
authored
Rename: ROOT_CONTAINER->ROOT_IMAGE, BASE_CONTAINER->BASE_IMAGE (#2155)
* Rename: ROOT_CONTAINER->ROOT_IMAGE, BASE_CONTAINER->BASE_IMAGE * Add changelog
1 parent b3ceb03 commit 5365b9f

File tree

19 files changed

+48
-39
lines changed

19 files changed

+48
-39
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Changelog
2+
3+
## 2024-10-09
4+
5+
### Changed
6+
7+
_This change might only breaking if you build your custom set of images._
8+
9+
- **Breaking:** Rename: `ROOT_CONTAINER`->`ROOT_IMAGE`, `BASE_CONTAINER`->`BASE_IMAGE` ([#2154](https://github.com/jupyter/docker-stacks/pull/2154), [#2155](https://github.com/jupyter/docker-stacks/pull/2155))

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ help:
3636

3737

3838
build/%: DOCKER_BUILD_ARGS?=
39-
build/%: ROOT_CONTAINER?=ubuntu:24.04
39+
build/%: ROOT_IMAGE?=ubuntu:24.04
4040
build/%: ## build the latest image for a stack using the system's architecture
41-
docker build $(DOCKER_BUILD_ARGS) --rm --force-rm --tag "$(REGISTRY)/$(OWNER)/$(notdir $@):latest" "./images/$(notdir $@)" --build-arg REGISTRY="$(REGISTRY)" --build-arg OWNER="$(OWNER)" --build-arg ROOT_CONTAINER="$(ROOT_CONTAINER)"
41+
docker build $(DOCKER_BUILD_ARGS) --rm --force-rm --tag "$(REGISTRY)/$(OWNER)/$(notdir $@):latest" "./images/$(notdir $@)" --build-arg REGISTRY="$(REGISTRY)" --build-arg OWNER="$(OWNER)" --build-arg ROOT_IMAGE="$(ROOT_IMAGE)"
4242
@echo -n "Built image size: "
4343
@docker images "$(REGISTRY)/$(OWNER)/$(notdir $@):latest" --format "{{.Size}}"
4444
build-all: $(foreach I, $(ALL_IMAGES), build/$(I)) ## build all stacks

binder/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
# https://quay.io/repository/jupyter/base-notebook?tab=tags
55
ARG REGISTRY=quay.io
66
ARG OWNER=jupyter
7-
ARG BASE_CONTAINER=$REGISTRY/$OWNER/base-notebook:2024-10-07
8-
FROM $BASE_CONTAINER
7+
ARG BASE_IMAGE=$REGISTRY/$OWNER/base-notebook:2024-10-07
8+
FROM $BASE_IMAGE
99

1010
LABEL maintainer="Jupyter Project <[email protected]>"
1111

docs/using/custom-images.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ please, [take a look at cookiecutter template](../contributing/stacks.md).
1515

1616
Our repository provides several customization points:
1717

18-
- `ROOT_CONTAINER` (docker argument) - the parent image for `docker-stacks-foundation` image
18+
- `ROOT_IMAGE` (docker argument) - the parent image for `docker-stacks-foundation` image
1919
- `PYTHON_VERSION` (docker argument) - the Python version to install in `docker-stacks-foundation` image
20-
- `REGISTRY`, `OWNER`, `BASE_CONTAINER` (docker arguments) - they allow to specify parent image for all the other images
20+
- `REGISTRY`, `OWNER`, `BASE_IMAGE` (docker arguments) - they allow to specify parent image for all the other images
2121
- `REGISTRY`, `OWNER` (part of `env` in some GitHub workflows) - these allow to properly tag and refer to images during following steps:
2222
[`build-test-upload`](https://github.com/jupyter/docker-stacks/blob/main/.github/workflows/docker-build-test-upload.yml),
2323
[`tag-push`](https://github.com/jupyter/docker-stacks/blob/main/.github/workflows/docker-tag-push.yml) and
@@ -50,8 +50,8 @@ then with a Dockerfile like:
5050
```{code-block} Dockerfile
5151
:caption: Dockerfile
5252
53-
ARG BASE_CONTAINER=minimal-notebook
54-
FROM $BASE_CONTAINER
53+
ARG BASE_IMAGE=minimal-notebook
54+
FROM $BASE_IMAGE
5555
...
5656
```
5757

docs/using/recipe_code/docker-bake.python312.hcl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ target "base-notebook" {
1616
docker-stacks-foundation = "target:foundation"
1717
}
1818
args = {
19-
BASE_CONTAINER = "docker-stacks-foundation"
19+
BASE_IMAGE = "docker-stacks-foundation"
2020
}
2121
tags = ["base-notebook"]
2222
}
@@ -27,7 +27,7 @@ target "minimal-notebook" {
2727
base-notebook = "target:base-notebook"
2828
}
2929
args = {
30-
BASE_CONTAINER = "base-notebook"
30+
BASE_IMAGE = "base-notebook"
3131
}
3232
tags = ["minimal-notebook"]
3333
}
@@ -38,7 +38,7 @@ target "custom-notebook" {
3838
minimal-notebook = "target:minimal-notebook"
3939
}
4040
args = {
41-
BASE_CONTAINER = "minimal-notebook"
41+
BASE_IMAGE = "minimal-notebook"
4242
}
4343
tags = ["custom-jupyter"]
4444
}

images/all-spark-notebook/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
# Distributed under the terms of the Modified BSD License.
33
ARG REGISTRY=quay.io
44
ARG OWNER=jupyter
5-
ARG BASE_CONTAINER=$REGISTRY/$OWNER/pyspark-notebook
6-
FROM $BASE_CONTAINER
5+
ARG BASE_IMAGE=$REGISTRY/$OWNER/pyspark-notebook
6+
FROM $BASE_IMAGE
77

88
LABEL maintainer="Jupyter Project <[email protected]>"
99

images/base-notebook/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
# Distributed under the terms of the Modified BSD License.
33
ARG REGISTRY=quay.io
44
ARG OWNER=jupyter
5-
ARG BASE_CONTAINER=$REGISTRY/$OWNER/docker-stacks-foundation
6-
FROM $BASE_CONTAINER
5+
ARG BASE_IMAGE=$REGISTRY/$OWNER/docker-stacks-foundation
6+
FROM $BASE_IMAGE
77

88
LABEL maintainer="Jupyter Project <[email protected]>"
99

images/datascience-notebook/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
# Distributed under the terms of the Modified BSD License.
33
ARG REGISTRY=quay.io
44
ARG OWNER=jupyter
5-
ARG BASE_CONTAINER=$REGISTRY/$OWNER/scipy-notebook
6-
FROM $BASE_CONTAINER
5+
ARG BASE_IMAGE=$REGISTRY/$OWNER/scipy-notebook
6+
FROM $BASE_IMAGE
77

88
LABEL maintainer="Jupyter Project <[email protected]>"
99

images/docker-stacks-foundation/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33

44
# Ubuntu 24.04 (noble)
55
# https://hub.docker.com/_/ubuntu/tags?page=1&name=noble
6-
ARG ROOT_CONTAINER=ubuntu:24.04
6+
ARG ROOT_IMAGE=ubuntu:24.04
77

8-
FROM $ROOT_CONTAINER
8+
FROM $ROOT_IMAGE
99

1010
LABEL maintainer="Jupyter Project <[email protected]>"
1111
ARG NB_USER="jovyan"

images/julia-notebook/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
# Distributed under the terms of the Modified BSD License.
33
ARG REGISTRY=quay.io
44
ARG OWNER=jupyter
5-
ARG BASE_CONTAINER=$REGISTRY/$OWNER/minimal-notebook
6-
FROM $BASE_CONTAINER
5+
ARG BASE_IMAGE=$REGISTRY/$OWNER/minimal-notebook
6+
FROM $BASE_IMAGE
77

88
LABEL maintainer="Jupyter Project <[email protected]>"
99

0 commit comments

Comments
 (0)