Skip to content

Commit 45abc16

Browse files
committed
Eliminated host.docker.internal since it doesn't work on CircleCI
1 parent 71399c0 commit 45abc16

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

mysql-cli.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ docker-compose version
55
docker network ls
66

77
docker run $* \
8-
--name mysqlterm --rm \
9-
-e MYSQL_PORT_3306_TCP_ADDR=$DOCKER_HOST_IP -e MYSQL_PORT_3306_TCP_PORT=3306 -e MYSQL_ENV_MYSQL_ROOT_PASSWORD=rootpassword \
8+
--name mysqlterm --rm --network=${PWD##*/}_default \
109
mysql:5.7.13 \
11-
sh -c 'exec mysql -h"$MYSQL_PORT_3306_TCP_ADDR" -P"$MYSQL_PORT_3306_TCP_PORT" -uroot -p"$MYSQL_ENV_MYSQL_ROOT_PASSWORD" '
10+
mysql -hmysql -P3306 -uroot -prootpassword

0 commit comments

Comments
 (0)