-
Notifications
You must be signed in to change notification settings - Fork 18
Building Docker Images
Andrew Benson edited this page Mar 18, 2023
·
6 revisions
Docker images are typically built and released using GitHub Actions. However, they can also be built locally. This requires a machine with docker
installed and requires root access.
To build the Galacticus build environment, follow these steps:
- Enter the
galacticusDockerBuildEnv
repo; -
sudo docker build .
- to build the image - keep note of theimageID
output at the end of the successful build; -
sudo docker tag <imageI> galacticusorg/buildenv:latest
- to assign a tag to the image; -
sudo docker push ghcr.io/galacticusorg/buildenv:latest
- to push the new image to GitHub.
To build the Galacticus itself, follow these steps:
- Enter the
galacticus
repo; -
sudo docker build --build-arg tag=latest .
- to build the image - keep note of theimageID
output at the end of the successful build; -
sudo docker tag <imageI> galacticusorg/galacticus:latest
- to assign a tag to the image; -
sudo docker push ghcr.io/galacticusorg/galacticus:latest
- to push the new image to GitHub.
Note that the tag
argument in the above controls which tagged version of galacticusDockerBuildEnv
is used as the base image for this build. If you wanted to build using the v1.0.0
tag of galacticusDockerBuildEnv
, for example, you would use:
sudo docker build --build-arg tag=v1.0.0 .
-
Tutorials
- Introduction to Galacticus parameter files
- Dark matter halo mass function
- Warm dark matter halo mass function
- Power spectra
- Warm dark matter power spectra
- Dark matter only merger trees
- Subsampling of merger tree branches
- Dark matter only subhalo evolution
- Solving the excursion set problem
- Reionization calculations
- Instantaneous & Non-instantaneous recycling
- Computing Broadband Stellar Luminosities
- Postprocessing of stellar spectra
- Using N-body Merger Trees
- Generating Mock Catalogs with Lightcones
- Constraining Galacticus parameters
- Generating galaxy merger trees
-
How Galacticus works
- Structure Formation Flowchart
- Merger Tree Building Flowchart
- How Galacticus Evolves Halos and Galaxies
- Galaxy Physics Flowchart
- CGM Cooling Physics Flowchart
- Star Formation Physics Flowchart
- Outflow Physics Flowchart
- Galactic Structure Flowchart
- CGM Physics Flowchart
- SMBH Physics Flowchart
- Subhalo Evolution Flowchart
-
Contributing
- Coding conventions
- Coding tutorials
-
Reference models
- Benchmarks and validation scores
- Validation plots and data