Skip to content

Commit

Permalink
Modify adamant_env.sh so start also activates the container after…
Browse files Browse the repository at this point in the history
… creation
  • Loading branch information
Jbsco committed Jun 21, 2024
1 parent cdaf5fe commit 2a977ff
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docker/adamant_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ usage() {
case $1 in
start )
execute "${DOCKER_COMPOSE_COMMAND} -f ${DOCKER_COMPOSE_CONFIG} up -d"
execute "${DOCKER_COMPOSE_COMMAND} -f ${DOCKER_COMPOSE_CONFIG} exec ${PROJECT_NAME} bash -c \"\
if [ ! -f /home/user/.initialized ]; \
then source /home/user/adamant/env/activate && touch /home/user/.initialized; \
fi;\""
echo ""
echo "Run \"./adamant_env.sh login\" to log in."
;;
Expand Down

0 comments on commit 2a977ff

Please sign in to comment.