Skip to content
This repository has been archived by the owner on Jun 16, 2024. It is now read-only.

Add support for services via CI_JOB_SERVICES #5

Open
jonasbb opened this issue Nov 11, 2020 · 5 comments
Open

Add support for services via CI_JOB_SERVICES #5

jonasbb opened this issue Nov 11, 2020 · 5 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@jonasbb
Copy link
Owner

jonasbb commented Nov 11, 2020

Relevant issues for Gitlab

@jonasbb jonasbb added enhancement New feature or request help wanted Extra attention is needed labels Nov 11, 2020
@afro-coder
Copy link

Hey, I was about to build a podman executor for GitLab, glad I found this, I wasn't able to understand what the CI_JOB_SERVICES does could you explain it I'm confused. I'm guessing it's the services option in the YAML file right?

Also, I don't mind helping for anything else too, let me know cause I recently tried to replace docker 1:1 with podman and I got it to work. I've written about it here.
https://dev.to/afrocoder/deploying-a-simple-portfolio-with-argo-tunnels-and-containers-for-fun-part-2-2n8l

I will try to run this directly and see if I can find any issues.

@jonasbb
Copy link
Owner Author

jonasbb commented Oct 12, 2021

Hi @afro-coder, the links above should have examples of what the CI_JOB_SERVICES variable contains when being used. It should contain the information from the services key in the CI config.

@afro-coder
Copy link

afro-coder commented Oct 12, 2021

Hey @jonasbb is this what this variable is? Seems like Gitlab already exports this $CUSTOM_ENV_CI_JOB_SERVICES
https://docs.gitlab.com/runner/executors/custom.html#services

Do we have to pass these to podman to run the containers before we do the image build?

So docker does this by the --link option I'm assuming? Since podman has pods do we launch these services in a pod? I've never worked on such a thing before so I'm quite confused

@jonasbb
Copy link
Owner Author

jonasbb commented Oct 12, 2021

Seems like Gitlab already exports this $CUSTOM_ENV_CI_JOB_SERVICES docs.gitlab.com/runner/executors/custom.html#services

Yes, that is the same variable. GitLab supports it already, that is what the merge request in the first comment is about.

I have no idea how to implement this. I guess you need to start some more containers, connect them via some network, and tear them down in the opposite order.
I am not using services myself, so this is not much of a priority for me.

@afro-coder
Copy link

Yeah, same even I haven't used services.
let me see if I can get some examples if I get time I'll work on it

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants