File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 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 },
Original file line number Diff line number Diff line change @@ -21,8 +21,8 @@ SETUP_STYLE=${1:-tcp}
2121
2222if [[ ! $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 "
2626fi
2727
2828echo " Setting up cloud-sql-proxy for $SETUP_STYLE connections"
You can’t perform that action at this time.
0 commit comments