Skip to content
This repository has been archived by the owner on Aug 30, 2023. It is now read-only.

Commit

Permalink
add entrypoint scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
GernotMaier committed Nov 15, 2022
1 parent a75ca5f commit f820763
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
5 changes: 4 additions & 1 deletion dev/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,11 @@ Packages are available from the [gammasim-tools container repository](https://gi
To download and run a prepared container in bash:

```
$ docker run --rm -it -v "$(pwd)/external:/workdir/external" ghcr.io/gammasim/containers/gammasim-tools-dev:v0.3.0-dev1 bash
$ docker run --rm -it -v "$(pwd)/external:/workdir/external" ghcr.io/gammasim/containers/gammasim-tools-dev:v0.3.0-dev1 bash -c "$(cat ./entrypoint.sh) && bash"
```

This additionally executes the `entrypoint.sh` script (e.g., for pip install or set the database environment).

## Build a new container

Description of build a new container using the [Dockerfile](Dockerfile) available in this directory.
Expand Down
9 changes: 9 additions & 0 deletions dev/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash
# entrypoint script to configure development environment

cd /workdir/external/gammasim-tools
pip install -e .

if [[ -e "set_DB_environ.sh" ]]; then
source ./set_DB_environ.sh
fi

0 comments on commit f820763

Please sign in to comment.