Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docker/Dockerfile-simtools-dev
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ RUN { \
printf '%s\n' "fi"; \
printf '%s\n' "git config --global --add safe.directory \"/workdir\""; \
printf '%s\n' "git config --global --add safe.directory \"/workdir/external\""; \
printf '%s\n' "git config --global --add safe.directory \"/workdir/external/simtools\""; \
} > /etc/profile.d/git_safe_dir.sh

# Install simtools (main branch)
Expand Down
4 changes: 2 additions & 2 deletions docker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ See the [simtools container documentation](https://gammasim.github.io/simtools/u
For convenience, the command to use a container as developer is repeated here:

```bash
podman run --rm -it -v "$(pwd)/:/workdir/external" ghcr.io/gammasim/simtools-dev:latest bash -c "source /workdir/env/bin/activate && cd /workdir/external/simtools && pip install -e . && bash"
podman run --rm -it -v "$(pwd)/:/workdir/external" ghcr.io/gammasim/simtools-dev:latest bash -lc "source /workdir/env/bin/activate && cd /workdir/external/simtools && pip install -e . && bash"
```

In case a local database is used:

```bash
podman run --rm -it -v "$(pwd)/:/workdir/external" --network simtools-mongo-network ghcr.io/gammasim/simtools-dev:latest bash -c "source /workdir/env/bin/activate && cd /workdir/external/simtools && pip install -e . && bash"
podman run --rm -it -v "$(pwd)/:/workdir/external" --network simtools-mongo-network ghcr.io/gammasim/simtools-dev:latest bash -lc "source /workdir/env/bin/activate && cd /workdir/external/simtools && pip install -e . && bash"
```
1 change: 1 addition & 0 deletions docs/changes/2091.api.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Update command to run development container: **use bash -lc** (related to updates to git safedir).
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ The following steps outline how to set up the development environment using cont
```bash
podman run --rm -it -v "$(pwd)/external:/workdir/external" \
ghcr.io/gammasim/simtools-dev:latest \
bash -c "source /workdir/env/bin/activate && cd /workdir/external/simtools && pip install -e . && bash"
bash -lc "source /workdir/env/bin/activate && cd /workdir/external/simtools && pip install -e . && bash"
```

The container includes a CORSIKA and sim_telarray installation;
Expand Down
Loading