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
docker pull ghcr.io/pacificcommunity/fisheries-workflow:latest
docker run --rm -it -v "$PWD":/work ghcr.io/pacificcommunity/fisheries-workflow:latestPublic images need no login. Pin a version tag (:v1.4) in anything you want
to reproduce later. Folder READMEs, where present, describe the contents.
- Copy
_template/to a new folder named after the image (lower case, e.g.yft-2026/). - Edit the
Dockerfile; put a quick check intest.sh(it runs inside the built image and stops the push if it fails). - Open a pull request. After it merges to
main, the workflow builds the image, runstest.sh, and pushes:v1.0and:latest. - 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.
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.
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
ARGorENV; 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-imagefile (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>.
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 whenGIT_PATorGITHUB_PATis provided.cpue-workshop/: minimal Python and SQLite runtime for the synthetic longline CPUE workshop.
| 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. |