Skip to content

Commit 5b00c53

Browse files
committed
tmp file
1 parent 184e6c4 commit 5b00c53

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

cloud-sql/mysql/mysql/ci-setup.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
"INSTANCE_HOST": "127.0.0.1",
44
"INSTANCE_CONNECTION_NAME": "nodejs-docs-samples-tests:us-central1:mysql-ci",
55
"CLOUD_SQL_CONNECTION_NAME": "$INSTANCE_CONNECTION_NAME",
6-
"INSTANCE_UNIX_SOCKET": "/cloudsql/$INSTANCE_CONNECTION_NAME",
6+
"UNIX_SOCKET_DIR": "tmp/cloudsql",
7+
"INSTANCE_UNIX_SOCKET": "$UNIX_SOCKET_DIR/$INSTANCE_CONNECTION_NAME",
78
"DB_NAME": "kokoro_ci",
89
"DB_USER": "kokoro_ci"
910
},

cloud-sql/mysql/mysql/test/proxy-setup.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ SETUP_STYLE=${1:-tcp}
2121

2222
if [[ ! $SETUP_STYLE == "tcp" ]]; then
2323
echo "setup for sockets"
24-
mkdir /cloudsql && chmod 777 /cloudsql
25-
socket="--unix-socket /cloudsql"
24+
mkdir $UNIX_SOCKET_DIR && chmod 777 $UNIX_SOCKET_DIR
25+
socket="--unix-socket $UNIX_SOCKET_DIR"
2626
fi
2727

2828
echo "Setting up cloud-sql-proxy for $SETUP_STYLE connections"

0 commit comments

Comments
 (0)