-
Notifications
You must be signed in to change notification settings - Fork 19
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
galacticusDockerBuildEnvrepo; -
sudo docker build .- to build the image - keep note of theimageIDoutput 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
galacticusrepo; -
sudo docker build --build-arg tag=latest .- to build the image - keep note of theimageIDoutput 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
- Extracting star formation histories
-
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
-
Benchmarks and validation