mirror of
https://github.com/jupyter/docker-stacks.git
synced 2025-10-07 10:04:03 +00:00
Rename: ROOT_CONTAINER->ROOT_IMAGE, BASE_CONTAINER->BASE_IMAGE (#2155)
* Rename: ROOT_CONTAINER->ROOT_IMAGE, BASE_CONTAINER->BASE_IMAGE * Add changelog
This commit is contained in:
9
CHANGELOG.md
Normal file
9
CHANGELOG.md
Normal file
@@ -0,0 +1,9 @@
|
||||
# Changelog
|
||||
|
||||
## 2024-10-09
|
||||
|
||||
### Changed
|
||||
|
||||
_This change might only breaking if you build your custom set of images._
|
||||
|
||||
- **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))
|
4
Makefile
4
Makefile
@@ -36,9 +36,9 @@ help:
|
||||
|
||||
|
||||
build/%: DOCKER_BUILD_ARGS?=
|
||||
build/%: ROOT_CONTAINER?=ubuntu:24.04
|
||||
build/%: ROOT_IMAGE?=ubuntu:24.04
|
||||
build/%: ## build the latest image for a stack using the system's architecture
|
||||
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)"
|
||||
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)"
|
||||
@echo -n "Built image size: "
|
||||
@docker images "$(REGISTRY)/$(OWNER)/$(notdir $@):latest" --format "{{.Size}}"
|
||||
build-all: $(foreach I, $(ALL_IMAGES), build/$(I)) ## build all stacks
|
||||
|
@@ -4,8 +4,8 @@
|
||||
# https://quay.io/repository/jupyter/base-notebook?tab=tags
|
||||
ARG REGISTRY=quay.io
|
||||
ARG OWNER=jupyter
|
||||
ARG BASE_CONTAINER=$REGISTRY/$OWNER/base-notebook:2024-10-07
|
||||
FROM $BASE_CONTAINER
|
||||
ARG BASE_IMAGE=$REGISTRY/$OWNER/base-notebook:2024-10-07
|
||||
FROM $BASE_IMAGE
|
||||
|
||||
LABEL maintainer="Jupyter Project <jupyter@googlegroups.com>"
|
||||
|
||||
|
@@ -15,9 +15,9 @@ please, [take a look at cookiecutter template](../contributing/stacks.md).
|
||||
|
||||
Our repository provides several customization points:
|
||||
|
||||
- `ROOT_CONTAINER` (docker argument) - the parent image for `docker-stacks-foundation` image
|
||||
- `ROOT_IMAGE` (docker argument) - the parent image for `docker-stacks-foundation` image
|
||||
- `PYTHON_VERSION` (docker argument) - the Python version to install in `docker-stacks-foundation` image
|
||||
- `REGISTRY`, `OWNER`, `BASE_CONTAINER` (docker arguments) - they allow to specify parent image for all the other images
|
||||
- `REGISTRY`, `OWNER`, `BASE_IMAGE` (docker arguments) - they allow to specify parent image for all the other images
|
||||
- `REGISTRY`, `OWNER` (part of `env` in some GitHub workflows) - these allow to properly tag and refer to images during following steps:
|
||||
[`build-test-upload`](https://github.com/jupyter/docker-stacks/blob/main/.github/workflows/docker-build-test-upload.yml),
|
||||
[`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:
|
||||
```{code-block} Dockerfile
|
||||
:caption: Dockerfile
|
||||
|
||||
ARG BASE_CONTAINER=minimal-notebook
|
||||
FROM $BASE_CONTAINER
|
||||
ARG BASE_IMAGE=minimal-notebook
|
||||
FROM $BASE_IMAGE
|
||||
...
|
||||
```
|
||||
|
||||
|
@@ -16,7 +16,7 @@ target "base-notebook" {
|
||||
docker-stacks-foundation = "target:foundation"
|
||||
}
|
||||
args = {
|
||||
BASE_CONTAINER = "docker-stacks-foundation"
|
||||
BASE_IMAGE = "docker-stacks-foundation"
|
||||
}
|
||||
tags = ["base-notebook"]
|
||||
}
|
||||
@@ -27,7 +27,7 @@ target "minimal-notebook" {
|
||||
base-notebook = "target:base-notebook"
|
||||
}
|
||||
args = {
|
||||
BASE_CONTAINER = "base-notebook"
|
||||
BASE_IMAGE = "base-notebook"
|
||||
}
|
||||
tags = ["minimal-notebook"]
|
||||
}
|
||||
@@ -38,7 +38,7 @@ target "custom-notebook" {
|
||||
minimal-notebook = "target:minimal-notebook"
|
||||
}
|
||||
args = {
|
||||
BASE_CONTAINER = "minimal-notebook"
|
||||
BASE_IMAGE = "minimal-notebook"
|
||||
}
|
||||
tags = ["custom-jupyter"]
|
||||
}
|
||||
|
@@ -2,8 +2,8 @@
|
||||
# Distributed under the terms of the Modified BSD License.
|
||||
ARG REGISTRY=quay.io
|
||||
ARG OWNER=jupyter
|
||||
ARG BASE_CONTAINER=$REGISTRY/$OWNER/pyspark-notebook
|
||||
FROM $BASE_CONTAINER
|
||||
ARG BASE_IMAGE=$REGISTRY/$OWNER/pyspark-notebook
|
||||
FROM $BASE_IMAGE
|
||||
|
||||
LABEL maintainer="Jupyter Project <jupyter@googlegroups.com>"
|
||||
|
||||
|
@@ -2,8 +2,8 @@
|
||||
# Distributed under the terms of the Modified BSD License.
|
||||
ARG REGISTRY=quay.io
|
||||
ARG OWNER=jupyter
|
||||
ARG BASE_CONTAINER=$REGISTRY/$OWNER/docker-stacks-foundation
|
||||
FROM $BASE_CONTAINER
|
||||
ARG BASE_IMAGE=$REGISTRY/$OWNER/docker-stacks-foundation
|
||||
FROM $BASE_IMAGE
|
||||
|
||||
LABEL maintainer="Jupyter Project <jupyter@googlegroups.com>"
|
||||
|
||||
|
@@ -2,8 +2,8 @@
|
||||
# Distributed under the terms of the Modified BSD License.
|
||||
ARG REGISTRY=quay.io
|
||||
ARG OWNER=jupyter
|
||||
ARG BASE_CONTAINER=$REGISTRY/$OWNER/scipy-notebook
|
||||
FROM $BASE_CONTAINER
|
||||
ARG BASE_IMAGE=$REGISTRY/$OWNER/scipy-notebook
|
||||
FROM $BASE_IMAGE
|
||||
|
||||
LABEL maintainer="Jupyter Project <jupyter@googlegroups.com>"
|
||||
|
||||
|
@@ -3,9 +3,9 @@
|
||||
|
||||
# Ubuntu 24.04 (noble)
|
||||
# https://hub.docker.com/_/ubuntu/tags?page=1&name=noble
|
||||
ARG ROOT_CONTAINER=ubuntu:24.04
|
||||
ARG ROOT_IMAGE=ubuntu:24.04
|
||||
|
||||
FROM $ROOT_CONTAINER
|
||||
FROM $ROOT_IMAGE
|
||||
|
||||
LABEL maintainer="Jupyter Project <jupyter@googlegroups.com>"
|
||||
ARG NB_USER="jovyan"
|
||||
|
@@ -2,8 +2,8 @@
|
||||
# Distributed under the terms of the Modified BSD License.
|
||||
ARG REGISTRY=quay.io
|
||||
ARG OWNER=jupyter
|
||||
ARG BASE_CONTAINER=$REGISTRY/$OWNER/minimal-notebook
|
||||
FROM $BASE_CONTAINER
|
||||
ARG BASE_IMAGE=$REGISTRY/$OWNER/minimal-notebook
|
||||
FROM $BASE_IMAGE
|
||||
|
||||
LABEL maintainer="Jupyter Project <jupyter@googlegroups.com>"
|
||||
|
||||
|
@@ -2,8 +2,8 @@
|
||||
# Distributed under the terms of the Modified BSD License.
|
||||
ARG REGISTRY=quay.io
|
||||
ARG OWNER=jupyter
|
||||
ARG BASE_CONTAINER=$REGISTRY/$OWNER/base-notebook
|
||||
FROM $BASE_CONTAINER
|
||||
ARG BASE_IMAGE=$REGISTRY/$OWNER/base-notebook
|
||||
FROM $BASE_IMAGE
|
||||
|
||||
LABEL maintainer="Jupyter Project <jupyter@googlegroups.com>"
|
||||
|
||||
|
@@ -2,8 +2,8 @@
|
||||
# Distributed under the terms of the Modified BSD License.
|
||||
ARG REGISTRY=quay.io
|
||||
ARG OWNER=jupyter
|
||||
ARG BASE_CONTAINER=$REGISTRY/$OWNER/scipy-notebook
|
||||
FROM $BASE_CONTAINER
|
||||
ARG BASE_IMAGE=$REGISTRY/$OWNER/scipy-notebook
|
||||
FROM $BASE_IMAGE
|
||||
|
||||
LABEL maintainer="Jupyter Project <jupyter@googlegroups.com>"
|
||||
|
||||
|
@@ -2,8 +2,8 @@
|
||||
# Distributed under the terms of the Modified BSD License.
|
||||
ARG REGISTRY=quay.io
|
||||
ARG OWNER=jupyter
|
||||
ARG BASE_CONTAINER=$REGISTRY/$OWNER/scipy-notebook
|
||||
FROM $BASE_CONTAINER
|
||||
ARG BASE_IMAGE=$REGISTRY/$OWNER/scipy-notebook
|
||||
FROM $BASE_IMAGE
|
||||
|
||||
LABEL maintainer="Jupyter Project <jupyter@googlegroups.com>"
|
||||
|
||||
|
@@ -2,8 +2,8 @@
|
||||
# Distributed under the terms of the Modified BSD License.
|
||||
ARG REGISTRY=quay.io
|
||||
ARG OWNER=jupyter
|
||||
ARG BASE_CONTAINER=$REGISTRY/$OWNER/scipy-notebook
|
||||
FROM $BASE_CONTAINER
|
||||
ARG BASE_IMAGE=$REGISTRY/$OWNER/scipy-notebook
|
||||
FROM $BASE_IMAGE
|
||||
|
||||
LABEL maintainer="Jupyter Project <jupyter@googlegroups.com>"
|
||||
|
||||
|
@@ -2,8 +2,8 @@
|
||||
# Distributed under the terms of the Modified BSD License.
|
||||
ARG REGISTRY=quay.io
|
||||
ARG OWNER=jupyter
|
||||
ARG BASE_CONTAINER=$REGISTRY/$OWNER/scipy-notebook
|
||||
FROM $BASE_CONTAINER
|
||||
ARG BASE_IMAGE=$REGISTRY/$OWNER/scipy-notebook
|
||||
FROM $BASE_IMAGE
|
||||
|
||||
LABEL maintainer="Jupyter Project <jupyter@googlegroups.com>"
|
||||
|
||||
|
@@ -2,8 +2,8 @@
|
||||
# Distributed under the terms of the Modified BSD License.
|
||||
ARG REGISTRY=quay.io
|
||||
ARG OWNER=jupyter
|
||||
ARG BASE_CONTAINER=$REGISTRY/$OWNER/minimal-notebook
|
||||
FROM $BASE_CONTAINER
|
||||
ARG BASE_IMAGE=$REGISTRY/$OWNER/minimal-notebook
|
||||
FROM $BASE_IMAGE
|
||||
|
||||
LABEL maintainer="Jupyter Project <jupyter@googlegroups.com>"
|
||||
|
||||
|
@@ -2,8 +2,8 @@
|
||||
# Distributed under the terms of the Modified BSD License.
|
||||
ARG REGISTRY=quay.io
|
||||
ARG OWNER=jupyter
|
||||
ARG BASE_CONTAINER=$REGISTRY/$OWNER/minimal-notebook
|
||||
FROM $BASE_CONTAINER
|
||||
ARG BASE_IMAGE=$REGISTRY/$OWNER/minimal-notebook
|
||||
FROM $BASE_IMAGE
|
||||
|
||||
LABEL maintainer="Jupyter Project <jupyter@googlegroups.com>"
|
||||
|
||||
|
@@ -2,8 +2,8 @@
|
||||
# Distributed under the terms of the Modified BSD License.
|
||||
ARG REGISTRY=quay.io
|
||||
ARG OWNER=jupyter
|
||||
ARG BASE_CONTAINER=$REGISTRY/$OWNER/scipy-notebook
|
||||
FROM $BASE_CONTAINER
|
||||
ARG BASE_IMAGE=$REGISTRY/$OWNER/scipy-notebook
|
||||
FROM $BASE_IMAGE
|
||||
|
||||
LABEL maintainer="Jupyter Project <jupyter@googlegroups.com>"
|
||||
|
||||
|
@@ -2,8 +2,8 @@
|
||||
# Distributed under the terms of the Modified BSD License.
|
||||
ARG REGISTRY=quay.io
|
||||
ARG OWNER=jupyter
|
||||
ARG BASE_CONTAINER=$REGISTRY/$OWNER/scipy-notebook
|
||||
FROM $BASE_CONTAINER
|
||||
ARG BASE_IMAGE=$REGISTRY/$OWNER/scipy-notebook
|
||||
FROM $BASE_IMAGE
|
||||
|
||||
LABEL maintainer="Jupyter Project <jupyter@googlegroups.com>"
|
||||
|
||||
|
Reference in New Issue
Block a user