Fixing multiple instances at the same time #2
Pinned
thatkookooguy
started this conversation in
Show and tell
Replies: 1 comment 6 replies
-
|
First, we pasted the action code (the yaml file) and asked it the following question: 🗣️ Question: I have this github action code. please explain to me what it doesThis was done for a baseline, and to check chat GPT understands the code. |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The Power of Chat GPT: Real-Life Usage
Problem
mattes/gce-cloudsql-proxy-action have a few problems for our usage:
The github action was last updated 2 years ago. This might not mean the package is not maintained anymore, but based on the last issue opened (with a PR attached) that wasn't finished, seems like the project is kinda dying.
The original GitHub Action only supports connecting to a single instance per time. that's because the fact the action adds a name attribute to the
docker runcommand, making docker complain with the following error:An issue and a PR were open to fix this, but that code didn't work as well when tested

Solution
It's easy to see from the original code and the PR related to the issue that the action basically runs
docker runand uses a temp folder to store the service account json key for the docker container to use. We need to allow multiple docker run commands to run in parallel with different ports, and different instances. for now, we don't mind sharing the same service account (for our use-case), so this is not a direct goal.Since we understand this, but we don't know bash scripting that well, we decided to ask chat GPT for help! 💬
Beta Was this translation helpful? Give feedback.
All reactions