Skip to content

Commit 4bd5961

Browse files
authored
Merge pull request #5 from minrk/rm-onbuild
stop building onbuild
2 parents 7f6bea1 + f6d1b0c commit 4bd5961

File tree

6 files changed

+35
-61
lines changed

6 files changed

+35
-61
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -174,30 +174,6 @@ jobs:
174174
cache-from: ${{ env.CACHE_FROM }}
175175
cache-to: ${{ env.CACHE_TO }}
176176

177-
# image: env.IMAGE-onbuild
178-
#
179-
- name: Get list of jupyterhub-onbuild tags
180-
id: onbuildtags
181-
uses: jupyterhub/action-major-minor-tag-calculator@v3
182-
with:
183-
existingTags: ${{ needs.tag.outputs.existing-tags }}
184-
newTag: ${{ needs.tag.outputs.new-tag }}
185-
prefix: >-
186-
${{ env.REGISTRY }}${{ env.IMAGE }}-onbuild:
187-
${{ (env.PUBLIC == 'true' && env.PUBLISH_DOCKERIO == 'true') && format('{0}-onbuild:', env.IMAGE) || '' }}
188-
189-
- name: Build and push jupyterhub-onbuild
190-
uses: docker/build-push-action@v6
191-
with:
192-
build-args: |
193-
BASE_IMAGE=${{ fromJson(steps.jupyterhubtags.outputs.tags)[0] }}
194-
context: onbuild
195-
platforms: linux/amd64,linux/arm64
196-
push: true
197-
tags: ${{ join(fromJson(steps.onbuildtags.outputs.tags)) }}
198-
cache-from: ${{ env.CACHE_FROM }}
199-
cache-to: ${{ env.CACHE_TO }}
200-
201177
# image: env.IMAGE-demo
202178
#
203179
- name: Get list of jupyterhub-demo tags
@@ -214,7 +190,7 @@ jobs:
214190
uses: docker/build-push-action@v6
215191
with:
216192
build-args: |
217-
BASE_IMAGE=${{ fromJson(steps.onbuildtags.outputs.tags)[0] }}
193+
BASE_IMAGE=${{ fromJson(steps.jupyterhubtags.outputs.tags)[0] }}
218194
context: demo-image
219195
platforms: linux/amd64,linux/arm64
220196
push: true

README.md

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,34 @@ For example, see https://github.com/jupyterhub/jupyterhub-container-images/compa
2727
The following images are published by this repository:
2828

2929
- [jupyterhub/jupyterhub](https://quay.io/repository/jupyterhub/jupyterhub?tab=tags)
30-
- [jupyterhub/jupyterhub-onbuild](https://quay.io/repository/jupyterhub/jupyterhub-onbuild?tab=tags)
3130
- [jupyterhub/jupyterhub-demo](https://quay.io/repository/jupyterhub/jupyterhub-demo?tab=tags)
3231
- [jupyterhub/singleuser](https://quay.io/repository/jupyterhub/singleuser?tab=tags)
32+
33+
## Using these images
34+
35+
The Hub images run jupyterhub in the `/srv/jupyterhub` directory.
36+
If you place your `jupyterhub_config.py` there,
37+
either by mounting `/srv/jupyterhub` as a volume, or adding
38+
39+
```dockerfile
40+
COPY jupyterhub_config.py /srv/jupyterhub/jupyterhub_config.py
41+
```
42+
43+
in your Dockerfile for your derived image.
44+
45+
### jupyterhub-onbuild
46+
47+
We no longer publish the `jupyterhub-onbuild` image,
48+
starting with jupyterhub 5.3.
49+
If you used `jupyterhub-onbuild` before,
50+
51+
```dockerfile
52+
FROM quay.io/jupyterhub/jupyterhub-onbuild:5.2.1
53+
```
54+
55+
can be replaced with
56+
57+
```dockerfile
58+
FROM quay.io/jupyterhub/jupyterhub:5.2.1
59+
COPY jupyterhub_config.py /srv/jupyterhub/jupyterhub_config.py
60+
```

base/Dockerfile

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,6 @@
1515
# Or you can create your jupyterhub config and database on the host machine, and mount it with:
1616
#
1717
# docker run -v $PWD:/srv/jupyterhub -t quay.io/jupyterhub/jupyterhub
18-
#
19-
# NOTE
20-
# If you base on quay.io/jupyterhub/jupyterhub-onbuild
21-
# your jupyterhub_config.py will be added automatically
22-
# from your docker directory.
2318

2419
ARG BASE_IMAGE=ubuntu:22.04
2520

demo-image/Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# This should only be used for demo or testing and not as a base image to build on.
44
#
55
# It includes the notebook package and it uses the DummyAuthenticator and the SimpleLocalProcessSpawner.
6-
ARG BASE_IMAGE=quay.io/jupyterhub/jupyterhub-onbuild
6+
ARG BASE_IMAGE=quay.io/jupyterhub/jupyterhub
77
FROM ${BASE_IMAGE}
88

99
# Install the notebook package
@@ -13,4 +13,8 @@ RUN python3 -m pip install notebook
1313
RUN useradd --create-home demo
1414
RUN chown demo .
1515

16+
# Load jupyterhub config
17+
COPY jupyterhub_config.py /srv/jupyterhub/jupyterhub_config.py
18+
19+
# Run as demo user
1620
USER demo

onbuild/Dockerfile

Lines changed: 0 additions & 12 deletions
This file was deleted.

onbuild/README.md

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)