ruby-docker | Ruby runtime for Google Cloud Platform | GCP library
kandi X-RAY | ruby-docker Summary
kandi X-RAY | ruby-docker Summary
Ruby runtime for Google Cloud Platform
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of ruby-docker
ruby-docker Key Features
ruby-docker Examples and Code Snippets
Community Discussions
Trending Discussions on ruby-docker
QUESTION
I am trying to automate the process of building a Django app on Google Cloud Build. This app has to communicate with a PostgreSQL DB hosted on Cloud SQL and there're three stages I would like to complete:
- Building the image with a Dockerfile
- Pushing the image to Artifact Registry
- Running Django migrations
python manage.py migrate
by connecting to Cloud PostgreSQL through Cloud SQL Proxy
I have successfully made the first two stages work with these configuration files:
cloudbuild.yaml
...ANSWER
Answered 2021-Jun-25 at 20:46According to the documentation, the exec-wrapper simulate an App Engine flex environment.
Therefore, it expects only a Cloud SQL connection ID and not more (not the tcp:127.0.0.1:3306
at the end as you can put in Cloud SQL proxy). That also means it create a unix socket and not a TCP port to connect to the database.
I recommend you to review your script and to use unix socket connection and to give it another try.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install ruby-docker
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page