-
Notifications
You must be signed in to change notification settings - Fork 432
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
Requirements with a specific worker model and a service #5985
Comments
As a workaround, I used a pipeline to login near my Docker registry and then pull the images I am interested in. Nevertheless, it may be really interesting to use Docker images for services as it is implemented for worker models: allow to define a private registry. |
Hi @b2p-fred It's possible to define a private registry on a worker model. Settings -> Worker model -> select type docker -> checked the Private registry. |
Hi @yesnault But a service cannot be pulled from a private nor a public registry. As you suggested, I tried to use redis:6.2.6 as a service but I got an error message: BTW, it is not possible, IMHO, to declare a service requirement if the related Docker image is not yet pulled and available in the hatchery. Else, please, would you mind post an example ? |
This pipeline: version: v1.0
name: issue5985
jobs:
- job: New Job
steps:
- script:
- curl -v -X GET http://my_nginx
requirements:
- model: Debian10-Container
- service:
name: my_nginx
value: nginx:1.11.1
- service:
name: my_pg
value: postgres:9.5.3 POSTGRES_USER=myuser POSTGRES_PASSWORD=mypassword
- service:
name: my_redis
value: redis:6.2.6 is valid. Spawn infos are ok and job too:
Until the next release, if you need to run a service pre-requisite using a private registry, you have to docker login to the private registry on your docker host, this should work. But, here, you don't use private registry and you have an error, some checks to do:
|
Thank you for this information. I made some more tests and I confirm that I cannot Docker pull public images. I will investigate with the hatchery log. |
Feel free to reopen if needed. |
I am trying to create a pipeline where my tests require to use some external services (e.g. database, Redis, ...).
I created a service requiring a worker model and 3 services:
When I run a workflow including my
deploy-backend
pipeline, the result is:It is not able to get the Docker image for the Redis service. One should note that there was no problem with the nginx and postgresql docker images ...
I tried with :
but I always have the same problem ... it looks like only the nginx and postgresql that are used as samples in the tutorials doc are accepted !
What about this ?
[Edit] After some more investigation I found out that the images used as a service are not pulled because of a refused authentication ...
where should I define the credentials for this authentication ?
The text was updated successfully, but these errors were encountered: