Comments (5)
The implementation of this proxy is currently lacking support for unix sockets.
from gce-cloudsql-proxy-action.
Looking at the docs it should be possible by:
- Mounting unix socket under
/tmp/gce-cloudsql-proxy/<INSTANCE_CONNECTION_NAME>
- Updating
-instances
to-instances=<INSTANCE_CONNECTION_NAME>
(you'll probably have to update the -dir /tmp as well). - Make the
wait-for-it.sh
logic work for unix sockets. - Update the inputs to reflect the new configuration variable.
Something along the lines :-)
from gce-cloudsql-proxy-action.
Ah, ok. Thanks for the reply
Do you have any idea how difficult it would be to add support for unix sockets? I may try to tackle this if it's not too difficult
from gce-cloudsql-proxy-action.
I was able to get it to work by installing and running cloud_sql_proxy directly.
- name: Download & Start Google Cloud SQL Proxy
shell: bash
run: |
wget "https://storage.googleapis.com/cloudsql-proxy/v1.21.0/cloud_sql_proxy.linux.amd64" -q -O cloud_sql_proxy
chmod +x cloud_sql_proxy
./cloud_sql_proxy \
-dir=/tmp/cloudsql \
-instances=project:us-central1:my-fb &
from gce-cloudsql-proxy-action.
Nice. Closing this ticket.
from gce-cloudsql-proxy-action.
Related Issues (8)
- How to use this action properly? HOT 10
- Is public ip mandatory to use this action?
- When I use creds: ${{ secrets.GOOGLE_APPLICATION_CREDENTIALS_DEV_2 }} I get error HOT 5
- Connect to multiple dbs? HOT 1
- Feature: Support base64 encoded creds
- Optionally don't use long-lived creds and use short-lived creds exported automatically by google@auth action
- Error when trying to connect HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gce-cloudsql-proxy-action.