Skip to content

Commit

Permalink
Merge pull request PelicanPlatform#1672 from CannonLock/update-dev-image
Browse files Browse the repository at this point in the history
Allow other commands in the dev entrypoint
  • Loading branch information
CannonLock authored Oct 22, 2024
2 parents 602465f + 53aad24 commit 0c2ab6e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions images/dev-container-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,9 @@
# Run pre-commit install
pre-commit install

# Start an interactive bash shell
exec "/bin/bash" -i
# Default to bash but if a command is passed, run it
if [ $# -eq 0 ]; then
exec /bin/bash
else
exec "$@"
fi
2 changes: 1 addition & 1 deletion web_ui/frontend/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ as they would in production.
```shell
# From repo root
make pelican-build
docker run --rm -it -p 8444:8444 -w /app -v $PWD/dist/pelican_linux_arm64/:/app -v $PWD/local/:/etc/pelican/ hub.opensciencegrid.org/pelican_platform/pelican-dev:latest-itb /bin/bash
docker run --rm -it -p 8444:8444 -w /app -v $PWD/dist/pelican_linux_arm64/:/app -v $PWD/local/:/etc/pelican/ hub.opensciencegrid.org/pelican_platform/pelican-dev:latest-itb ./pelican serve --module director,registry,origin,cache
```

```shell
Expand Down

0 comments on commit 0c2ab6e

Please sign in to comment.