File tree 6 files changed +12
-16
lines changed
6 files changed +12
-16
lines changed Original file line number Diff line number Diff line change @@ -119,17 +119,13 @@ jobs:
119
119
120
120
- name : Setup push rights to Docker Hub
121
121
# This was setup by...
122
- # 1. Creating a Docker Hub service account "jupyterhubbot"
123
- # 2. Creating a access token for the service account specific to this
124
- # repository: https://hub.docker.com/settings/security
125
- # 3. Making the account part of the "bots" team, and granting that team
126
- # permissions to push to the relevant images:
127
- # https://hub.docker.com/orgs/jupyterhub/teams/bots/permissions
128
- # 4. Registering the username and token as a secret for this repo:
129
- # https://github.com/jupyterhub/jupyterhub/settings/secrets/actions
122
+ # 1. Creating a [Robot Account](https://quay.io/organization/jupyterhub?tab=robots) in the JupyterHub
123
+ # . quay.io org
124
+ # 2. Giving it enough permissions to push to the jupyterhub and singleuser images
125
+ # 3. Putting the robot account's username and password in GitHub actions environment
130
126
if : env.REGISTRY != 'localhost:5000/'
131
127
run : |
132
- docker login -u "${{ secrets.DOCKERHUB_USERNAME }}" -p "${{ secrets.DOCKERHUB_TOKEN }}"
128
+ docker login -u "${{ secrets.QUAY_USERNAME }}" -p "${{ secrets.QUAY_PASSWORD }}" "${{ env.REGISTRY }}"
133
129
134
130
# image: jupyterhub/jupyterhub
135
131
#
Original file line number Diff line number Diff line change 6
6
#
7
7
# Option 1:
8
8
#
9
- # FROM jupyterhub/jupyterhub:latest
9
+ # FROM quay.io/ jupyterhub/jupyterhub:latest
10
10
#
11
11
# And put your configuration file jupyterhub_config.py in /srv/jupyterhub/jupyterhub_config.py.
12
12
#
13
13
# Option 2:
14
14
#
15
15
# Or you can create your jupyterhub config and database on the host machine, and mount it with:
16
16
#
17
- # docker run -v $PWD:/srv/jupyterhub -t jupyterhub/jupyterhub
17
+ # docker run -v $PWD:/srv/jupyterhub -t quay.io/ jupyterhub/jupyterhub
18
18
#
19
19
# NOTE
20
- # If you base on jupyterhub/jupyterhub-onbuild
20
+ # If you base on quay.io/ jupyterhub/jupyterhub-onbuild
21
21
# your jupyterhub_config.py will be added automatically
22
22
# from your docker directory.
23
23
Original file line number Diff line number Diff line change 3
3
# This should only be used for demo or testing and not as a base image to build on.
4
4
#
5
5
# It includes the notebook package and it uses the DummyAuthenticator and the SimpleLocalProcessSpawner.
6
- ARG BASE_IMAGE=jupyterhub/jupyterhub-onbuild
6
+ ARG BASE_IMAGE=quay.io/ jupyterhub/jupyterhub-onbuild
7
7
FROM ${BASE_IMAGE}
8
8
9
9
# Install the notebook package
Original file line number Diff line number Diff line change 4
4
#
5
5
# Derivative images must have jupyterhub_config.py next to the Dockerfile.
6
6
7
- ARG BASE_IMAGE=jupyterhub/jupyterhub:latest
7
+ ARG BASE_IMAGE=quay.io/ jupyterhub/jupyterhub:latest
8
8
FROM $BASE_IMAGE
9
9
10
10
ONBUILD COPY jupyterhub_config.py /srv/jupyterhub/jupyterhub_config.py
Original file line number Diff line number Diff line change 2
2
3
3
If you base a Dockerfile on this image:
4
4
5
- FROM jupyterhub/jupyterhub-onbuild:1.4.0
5
+ FROM quay.io/ jupyterhub/jupyterhub-onbuild:1.4.0
6
6
...
7
7
8
8
then your ` jupyterhub_config.py ` adjacent to your Dockerfile will be loaded into the image and used by JupyterHub.
Original file line number Diff line number Diff line change 1
1
# Build as jupyterhub/singleuser
2
2
# Run with the DockerSpawner in JupyterHub
3
3
4
- ARG BASE_IMAGE=jupyter/base-notebook
4
+ ARG BASE_IMAGE=quay.io/ jupyter/base-notebook
5
5
FROM $BASE_IMAGE
6
6
MAINTAINER Project Jupyter <
[email protected] >
7
7
You can’t perform that action at this time.
0 commit comments