Skip to content

Support multiple instances #5

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Support multiple instances #5

wants to merge 1 commit into from

Conversation

mattes
Copy link
Owner

@mattes mattes commented Jun 22, 2021

No description provided.

docker run -d --net host --name gce-cloudsql-proxy --restart on-failure \
-v /tmp/gce-cloudsql-proxy:/tmp/gce-cloudsql-proxy \
CONTAINER=$(docker run -d --net host --restart on-failure \
-v $TMPDIR:/tmp/gce-cloudsql-proxy \
gcr.io/cloudsql-docker/gce-proxy:${{ inputs.proxy_version }} \
/cloud_sql_proxy \
-credential_file /tmp/gce-cloudsql-proxy/key.json \

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe for this to work, /tmp/gce-cloudsql-proxy/key.json should be $TMPDIR/key.json otherwise it tries to find the key.json file in the wrong place.

As is, I'm getting the error: invalid json file "/tmp/gce-cloudsql-proxy/key.json": open /tmp/gce-cloudsql-proxy/key.json: permission denied

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants