GithubHelp home page GithubHelp logo

Comments (5)

mattes avatar mattes commented on May 26, 2024 1

The implementation of this proxy is currently lacking support for unix sockets.

from gce-cloudsql-proxy-action.

mattes avatar mattes commented on May 26, 2024 1

Looking at the docs it should be possible by:

  1. Mounting unix socket under /tmp/gce-cloudsql-proxy/<INSTANCE_CONNECTION_NAME>
  2. Updating -instances to -instances=<INSTANCE_CONNECTION_NAME> (you'll probably have to update the -dir /tmp as well).
  3. Make the wait-for-it.sh logic work for unix sockets.
  4. Update the inputs to reflect the new configuration variable.

Something along the lines :-)

from gce-cloudsql-proxy-action.

tracy-ash avatar tracy-ash commented on May 26, 2024

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.

tracy-ash avatar tracy-ash commented on May 26, 2024

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.

mattes avatar mattes commented on May 26, 2024

Nice. Closing this ticket.

from gce-cloudsql-proxy-action.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.