This repository provides a reproducible and portable Docker environment using CREDO, starting from a local Docker image that replicates the official CREDO base.
The process is structured in three stages:
- A local CREDO base image (
credo/core:local) built fromDockerfile.credo. - A builder stage (
Dockerfile.stage1) that installs packages usingcredo pip. - A final image (
Dockerfile.final) that applies and saves the environment for runtime usage.
- Builds a local base image with CREDO installed (
credo/core:local). - Used by both the builder and final stage.
- Based on
credo/core:local. - Copies and runs
credo_install.shto install packages usingcredo pip.
- Also based on
credo/core:local. - Copies the environment from the builder stage.
- Applies and saves the environment.
A shell script listing the packages to install via credo pip. This is where the environment is defined.
Automated build script that:
- Builds the local CREDO base image if not already available.
- Builds the stage1 image containing the environment.
- Builds the final image based on the installed environment.
- Modify
credo_install.shto specify the packages required for your analysis. - Run the full build process:
./build_all.sh
- Run the final image:
docker run -it credotest
- Full control over the CREDO base image.
- Clean separation between package download and runtime environment.
- Suitable for offline and reproducible workflows.