Skip to content

Commit

Permalink
Merge pull request #504 from yuvipanda/quay
Browse files Browse the repository at this point in the history
Switch default image to quay.io
  • Loading branch information
minrk committed Oct 26, 2023
2 parents a6bf72e + ab8dcfd commit 2ba24df
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions dockerspawner/dockerspawner.py
Expand Up @@ -196,13 +196,13 @@ def _ip_default(self):
return "0.0.0.0"

container_image = Unicode(
"jupyterhub/singleuser:%s" % _jupyterhub_xy,
"quay.io/jupyterhub/singleuser:%s" % _jupyterhub_xy,
help="Deprecated, use ``DockerSpawner.image``.",
config=True,
)

image = Unicode(
"jupyterhub/singleuser:%s" % _jupyterhub_xy,
"quay.io/jupyterhub/singleuser:%s" % _jupyterhub_xy,
config=True,
help="""The image to use for single-user servers.
Expand Down
14 changes: 7 additions & 7 deletions docs/source/docker-image.md
@@ -1,6 +1,6 @@
# Picking or building a Docker image

By default, DockerSpawner uses the `jupyterhub/singleuser` image
By default, DockerSpawner uses the `quay.io/jupyterhub/singleuser` image
with the appropriate tag that pins the right version of JupyterHub,
but you can also build your own image.

Expand All @@ -13,7 +13,7 @@ and are encouraged as the image of choice. Make sure to pick a tag!
Example:

```python
c.DockerSpawner.image = 'jupyter/scipy-notebook:67b8fb91f950'
c.DockerSpawner.image = 'quay.io/jupyter/scipy-notebook:2023-10-23'
```

The docker-stacks are moving targets with always changing versions.
Expand All @@ -37,8 +37,8 @@ the appropriate JupyterHub version and the Jupyter notebook package.
For instance, from the docker-stacks, pin your JupyterHub version and you are done:

```Dockerfile
FROM jupyter/scipy-notebook:67b8fb91f950
ARG JUPYTERHUB_VERSION=1.3.0
FROM quay.io/jupyter/scipy-notebook:67b8fb91f950
ARG JUPYTERHUB_VERSION=4.0.2
RUN pip3 install --no-cache \
jupyterhub==$JUPYTERHUB_VERSION
```
Expand All @@ -48,10 +48,10 @@ Or for the absolute minimal JupyterHub user image starting only from the base Py
**NOTE: make sure to pick the jupyterhub version you are using!**

```Dockerfile
FROM python:3.8
FROM python:3.11
RUN pip3 install \
'jupyterhub==1.3.*' \
'notebook==6.*'
'jupyterhub==4.*' \
'notebook==7.*'

# create a user, since we don't want to run as root
RUN useradd -m jovyan
Expand Down
2 changes: 1 addition & 1 deletion examples/internal-ssl/.env
Expand Up @@ -13,7 +13,7 @@ DOCKER_MACHINE_NAME=jupyterhub
DOCKER_NETWORK_NAME=jupyterhub

# Single-user Jupyter Notebook server container image
DOCKER_NOTEBOOK_IMAGE=jupyterhub/singleuser:4
DOCKER_NOTEBOOK_IMAGE=quay.io/jupyterhub/singleuser:4

# Name of JupyterHub container data volume
DATA_VOLUME_HOST=jupyterhub-data
Expand Down
2 changes: 1 addition & 1 deletion tests/conftest.py
Expand Up @@ -63,7 +63,7 @@ def app(jupyterhub_app): # noqa: F811
# If it's a prerelease e.g. (2, 0, 0, 'rc4', '') use full tag
if len(jh_version_info) > 3 and jh_version_info[3]:
tag = jupyterhub.__version__
app.config.DockerSpawner.image = f"jupyterhub/singleuser:{tag}"
app.config.DockerSpawner.image = f"quay.io/jupyterhub/singleuser:{tag}"
return app


Expand Down

0 comments on commit 2ba24df

Please sign in to comment.