Coder Social home page Coder Social logo

Comments (2)

RoseateSpoonbill avatar RoseateSpoonbill commented on July 18, 2024

I ended up not being able to figure out how to do this locally.

⚠️ THIS DOES NOT WORK ⚠️

This was as far as I got but I couldn't figure out either the right host name or what I was doing wrong in the addition to docker-compose.yaml

  1. In your airbyte repository, open your docker-compose.yaml file and add this at the bottom of the services top level section
      proxy:
        container_name: cloud-sql-proxy
        image: gcr.io/cloudsql-docker/gce-proxy:1.30.0
        volumes:
          - ..\{{FULL_PATH_TO_SERVICE_ACCOUNT_JSON_FILE}}:/config
        ports:
          - 127.0.0.1:5436:5436 
        command: "/cloud_sql_proxy -instances={{INSTANCE_CONNECTION_NAME}}=tcp:5436 -credential_file=/config/{{SERVICE_ACCOUNT_JSON_FILE_NAME}}"
    
  2. Follow the instructions in the Start Airbyte section above
  3. Once Airbyte loads, in the lefthand menu click Sources
  4. Click + add new source
    1. Choose Postgres from the dropdown menu
    2. Host: ❓
    3. Port: 5436
    4. Fill in other fields
    5. Replication Method: Standard
    6. SSH Tunnel Method: No Tunnel
    7. Click Set up source

⚠️ This also did not work ⚠️
Run the Cloud SQL Auth proxy in a Docker container (per https://cloud.google.com/sql/docs/postgres/connect-admin-proxy#connecting-docker) as I couldn't figure out

  1. Which Airbyte Docker container needed to connect to the Proxy Docker container
  2. How to connect them

from write-for-the-community.

RoseateSpoonbill avatar RoseateSpoonbill commented on July 18, 2024

I did get the combo of GCP Compute Engine and Cloud SQL Auth Proxy working and have submitted a PR to update https://docs.airbyte.com/deploying-airbyte/on-gcp-compute-engine for that use case: airbytehq/airbyte#12086

from write-for-the-community.

Related Issues (20)

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.