File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 7272 docker build ${{ env.dir }} \
7373 -f ${{ env.dir }}/Dockerfile \
7474 --build-arg GITHUB_PAT=${{ inputs.github_token }} \
75+ --build-arg REPO_URL=https://github.com/${{ github.repository }} \
7576 --tag ghcr.io/${{ github.repository_owner }}/${{ env.name }}:${{ env.tag }} \
7677 --tag ghcr.io/${{ github.repository_owner }}/${{ env.name }}:latest
7778
Original file line number Diff line number Diff line change 2828 uses : ./.github/actions/build-and-push
2929 with :
3030 image_dir : .
31- image_name : container-images/py-rocket-template
31+ # image_name defaults to repository name if not specified
3232 github_token : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 11FROM ghcr.io/nmfs-opensci/py-rocket-base:2026.02.07
22
3+ ARG REPO_URL=https://github.com/OWNER/REPO
4+
35LABEL org.opencontainers.image.maintainers="your.name"
46LABEL org.opencontainers.image.author="your.name"
5- LABEL org.opencontainers.image.source=https://github.com/nmfs-opensci/py-rocket-template
7+ LABEL org.opencontainers.image.source=${REPO_URL}
68LABEL org.opencontainers.image.description="Python (3.11) and R (4.5.1) image template"
79LABEL org.opencontainers.image.licenses=Apache2.0
810LABEL org.opencontainers.image.version=2026.02.10
Original file line number Diff line number Diff line change 11# py-rocket-template
22A template for using py-rocket-base for creating Docker image for JupyterHubs
3+
4+ ## Using this template
5+
6+ When you use this template to create your own repository:
7+
8+ 1 . Update the ` environment.yml ` file with your conda packages
9+ 2 . Update the ` install.R ` file with your R packages
10+ 3 . Update the ` apt.txt ` file with any system packages
11+ 4 . Update the Dockerfile labels (maintainers, author, description)
12+ 5 . The Docker image will be automatically built and pushed to GitHub Container Registry when you push changes to main
13+
14+ The image name will automatically be set to your repository name.
Original file line number Diff line number Diff line change 1- name : py-rocket-template
1+ name : notebook
22channels :
33 - conda-forge
44 - nodefaults
You can’t perform that action at this time.
0 commit comments