This repository has been archived by the owner on Aug 30, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #33 from gammasim/prod-container
Full installation of gammasim-tools and sim_telarray - container for users.
- Loading branch information
Showing
8 changed files
with
100 additions
and
115 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,48 @@ | ||
# Docker container for gammasim-tools production | ||
|
||
**this is work in progress and not working yet** | ||
# Container for gammasim-tools production | ||
|
||
## Introduction | ||
|
||
Provide a container for using gammasim-tools. | ||
|
||
Container contains installation of: | ||
Container includes installation of: | ||
|
||
- corsika and sim\_telarray | ||
- miniconda | ||
- packages required by gammasim-tools (from environment.yml) | ||
- gammasim-tools (master) | ||
|
||
## Building | ||
Images are automatically built by the [Github action workflow .github/workflows/build-image.dev](.github/workflows/build-image.dev) and can be downloaded from the [gammasim package website](https://github.com/orgs/gammasim/packages). | ||
|
||
Building expects that a tar ball of corsika/sim\_telarray (corsika7.7\_simtelarray.tar.gz) is available in the building directory. | ||
Download the tar package from the MPIK website (password applies) with | ||
## Running | ||
|
||
To run the container in bash | ||
|
||
``` | ||
$ ../tools/download_simulationsoftware.sh | ||
docker run --rm -it -v "$(pwd)/external:/workdir/external" gammasim-tools-prod bash | ||
``` | ||
|
||
Build the container with: | ||
In the container, find the gammasim-tools directory in `/workdir/gammasim-tools/`. | ||
|
||
To run an application inside the container, e.g.: | ||
``` | ||
$ docker build -t gammasim-tools-prod . | ||
docker run --rm -it -v "$(pwd)/external:/workdir/external" \ | ||
gammasim-tools-prod \ | ||
python /workdir/gammasim-tools/applications/print_array_elements.py | ||
``` | ||
|
||
Building will take a while and the image is large (3.9 GB; mostly due to the >2 GB conda stuff). | ||
|
||
## Running | ||
## Building | ||
|
||
To run the container in bash | ||
Building expects that a tar ball of corsika/sim\_telarray (corsika7.7\_simtelarray.tar.gz) is available in the building directory. | ||
Download the tar package from the MPIK website (password applies) with | ||
|
||
``` | ||
$ docker run --rm -it -v "$(pwd)/external:/workdir/external" gammasim-tools-prod bash | ||
$ ../tools/download_simulationsoftware.sh | ||
``` | ||
|
||
In the container, find the gammasim-tools directory: | ||
Build the container with: | ||
|
||
``` | ||
$ cd ./gammasim-tools/ | ||
$ docker build -t gammasim-tools-prod . | ||
``` | ||
|
||
Expect any external software (e.g., gammasim-tools) in ./external directory (see [README.md](external/README.md)) | ||
|
||
Building will take a while and the image is large (3.9 GB; mostly due to the >2 GB conda stuff). |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters