Skip to content

Commit

Permalink
Merge pull request pycontw#1082 from pycontw/update/enter_dev_env
Browse files Browse the repository at this point in the history
  • Loading branch information
mattwang44 committed Oct 29, 2022
2 parents 4b520ac + 824046f commit 163b597
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions enter_dev_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ HASH=`docker ps -q -f name=$CONTAINER`
# test if the container is stopped
HASH_STOPPED=`docker ps -qa -f name=$CONTAINER`

if [[ $(uname -m) == 'arm64' ]]; then
export DOCKER_DEFAULT_PLATFORM=linux/amd64
fi

if [ -n "$HASH" ];then
echo "found existing running container $CONTAINER, proceeding to exec another shell"
docker-compose -f $COMPOSE_FILE restart
Expand Down

0 comments on commit 163b597

Please sign in to comment.