Skip to content

Commit

Permalink
fix: entrypoints / runner scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlougheed committed Jul 17, 2023
1 parent 8ef3110 commit 45f2785
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
3 changes: 3 additions & 0 deletions entrypoint.bash
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,8 @@ if [[ -d /env ]]; then
chown -R bento_user:bento_user /env
fi

# Configure git from entrypoint, since we've overwritten the base image entrypoint
gosu bento_user /bin/bash -c '/set_gitconfig.bash'

# Drop into bento_user from root and execute the CMD specified for the image
exec gosu bento_user "$@"
7 changes: 2 additions & 5 deletions run.dev.bash
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
#!/bin/bash

# Set .gitconfig for development
/set_gitconfig.bash

# Source the development virtual environment
source /env/bin/activate
# Update dependencies and install module locally
/poetry_user_install_dev.bash

# Update dependencies and install module locally (similar to pip install -e: "editable mode")
poetry install
Expand Down

0 comments on commit 45f2785

Please sign in to comment.