Skip to content

About

This repository contains publicly available Docker images for various projects

Topics

Resources

Stars

2 stars

Watchers

3 watching

Forks

Repository files navigation

Build status

OFP-SAM Docker images

Reproducible runtime images for OFP-SAM stock assessment work, published to the GitHub Container Registry. Each top-level folder is one image:

ghcr.io/pacificcommunity/<folder>:v<version>   # fixed version (use this in analyses)
ghcr.io/pacificcommunity/<folder>:latest       # newest build

All published images: https://github.com/orgs/PacificCommunity/packages?repo_name=ofp-sam-docker-images

Use an image

docker pull ghcr.io/pacificcommunity/fisheries-workflow:latest
docker run --rm -it -v "$PWD":/work ghcr.io/pacificcommunity/fisheries-workflow:latest

Public images need no login. Pin a version tag (:v1.4) in anything you want to reproduce later. Folder READMEs, where present, describe the contents.

Add an image

  1. Copy _template/ to a new folder named after the image (lower case, e.g. yft-2026/).
  2. Edit the Dockerfile; put a quick check in test.sh (it runs inside the built image and stops the push if it fails).
  3. Open a pull request. After it merges to main, the workflow builds the image, runs test.sh, and pushes :v1.0 and :latest.
  4. Make it public, once. New packages start private and GitHub offers no API to change that, so the workflow opens an issue "Make image public" with a direct link. Open it, choose Danger Zone -> Change visibility -> Public, and close the issue. Later versions stay public.

Update an image

Change files in its folder and merge to main. The version goes up by one minor step (v1.4 -> v1.5; v1.10 -> v2.0). To choose the version, or to rebuild without a change, run the workflow by hand (Actions -> Build and publish images -> Run workflow) with a version and/or folder names.

Public means public

Anyone can download a public image and read every file in it.

  • Never include confidential data, credentials, tokens, private keys, or internal hostnames and paths.
  • Never pass a token with ARG or ENV; it stays in the image history. If a build must read a private repository, use the BuildKit secret (RUN --mount=type=secret,id=github_pat ...); the workflow supplies it. Better still, install private packages when the container runs.
  • Data files that are meant to be public: list them in <folder>/PUBLIC_DATA.
  • An image that must stay private: add an empty <folder>/.private-image file (no public reminder; data files allowed; secrets still refused).

Before every build the workflow runs .github/scripts/check-public-safe.sh, which stops on secret files, tokens and credential ARG/ENV lines, and warns about data files. Run it locally with .github/scripts/check-public-safe.sh <folder>.

Notable images

  • fisheries-workflow/: R, RTMB and Quarto runtime for the fisheries workflow paper and demonstration (data preparation, CPUE standardisation, stock assessment, management strategy evaluation). See its README.
  • bet2026-flow/: BET 2026 Kflow runtime with MFCL, Quarto and non-sensitive dependencies. Private flow packages are installed at run time when GIT_PAT or GITHUB_PAT is provided.
  • cpue-workshop/: minimal Python and SQLite runtime for the synthetic longline CPUE workshop.

Repository secrets

Secret Used for
GHCR_TOKEN Push to GHCR and read package versions/visibility (write:packages, read:packages).
PRIVATE_GITHUB_PAT Optional. Read access to private repositories for Dockerfiles that use id=github_pat.

About

This repository contains publicly available Docker images for various projects

Topics

Resources

Stars

2 stars

Watchers

3 watching

Forks

Releases

Packages

Used by

Contributors

Languages