I have a pipeline with three steps. Two of the steps needs a 5GB DinD, the last one a 1GB DinD. I tried something like
```
Hi Markus,
While it is not possible to use a custom Docker image for the docker service in Pipelines that run in our own infrastructure, it is possible to define two Docker services with different memory limits.
You can see an example in the following blog post:
Is this something that works for you?
Kind regards,
Theodora
While I cannot reach the page you posted, it sounds like exactly what I need.
I will review the documentation again.
Thanks a million :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You are very welcome!
It's strange that you cannot reach the page, it is not restricted as far as I can see.
I am posting the example from that page here, please feel free to reach out if you have any questions!
definitions:
services:
docker:
memory: 512
docker-with-more-memory:
memory: 2048
type: docker
docker-with-large-memory:
memory: 5120
type: docker
pipelines:
custom:
pipeline1:
- step:
services: [docker]
script:
- echo "Docker service with 512 MB memory"
pipeline2:
- step:
services: [docker-with-more-memory]
script:
- echo "Docker service with 2048 MB memory"
pipeline3:
- step:
services: [docker-with-large-memory]
size: 2x
script:
- echo "Docker service with 5120 MB memory"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I tried on my phone. Clicked on the link that was part of the email. Either gmail did something strange, or my phone did. It is reproducible at least. I can view it if I click the link while I'm in the forum.
It seems to work! It's interesting to note that is I name the service "docker5G" I get the error
The name of at least one of the service definitions in your bitbucket-pipelines.yml is invalid. Please make sure that the service names contain only lower case alphanumeric characters and hyphens and that the hyphens are not at the start or the end of the name
But I can live with the name "docker-with-large-memory"
Once again, thanks :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Markus,
It's good to hear that it works!
Renaming the service to docker5g should also be ok, I believe it's the capital G in the name that causes this error.
You are once again welcome, and please feel free to reach out if you need anything else!
Kind regards,
Theodora
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.