-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add services support #5
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is very neat! LGTM
Just an update on where I am with reviewing this. A few months ago I worked through the tutorial "DevOps with GitLab CI Course - Build Pipelines and Deploy to AWS" -- and I finally got around to cleaning up the leftover resources on AWS and cloud.gov for this, and eliminating the bitrot. So it now deploys to https://peterb-gl-proud-wombat-qc.app.cloud.gov/ when using the GitLab instance runners. But when I switch from GitLab Instance Runners to the cloud.gov Runner-Manager in
... so, just naively switching from instance runners to project runners on cloud.gov is not turnkey. I'll work on this more in the morning. |
This should handle service lifecycle but does not provide services using easily known names or deal with interservice network communications.
Able to connect to a test service using the alias name. This method is not workable as-is since multiple services with the same alias may be running in a space at once.
e4b5c95
to
80f2ead
Compare
Created issue to track this: #9 |
* Launches services as separate applications with the same initial name as the "worker" instances * Creates a route in the apps.internal domain to allow the main worker to connect to the service(s) * Adds a network policy to allow access from the worker to the service(s) * Allows each worker to have separate services, avoiding collision * Cleans up after itself like a responsible runner
Addresses https://github.com/GSA-TTS/devtools-program/issues/47
Here is some selected output using this .gitlab-ci.yml showing an "echo" service being contacted from an main worker step:
For context, the relevant
.gitlab-ci.yml
: