You need to sign in or sign up before continuing.
Link docker services together before the build.
Docker integration reminder in CI:
Create any service container: mysql, postgresql, mongodb, redis.
Create cache container to store all volumes as defined in config.toml and Dockerfile of build image (ruby:2.1 as in above example).
Create build container and link any service container to build container.
Start build container and send build script to the container.
Run build script.
I would like to be able to link service containers to an other service container before launching the build container.
My use case: I use CI to perform selenium tests. My specif runners are hosted on a node where a selenium service is deployed. Selenium works like this : a hub and many nodes linked to the hub. I would like to spawn the docker selenium integrated stack from GitLab-CI.
An idea of what we could write in the .gitlab-ci.yml
master_services:
- selenium/hub:latest
slave_services:
- selenium/node-chrome:latest
- selenium/node-firefox:latest
services:
- mysql
and the new behavior:
Create any master service container
Create any slave_service container and link any slave_service container to master container.
Create cache container to store all volumes as defined in config.toml and Dockerfile of build image
Create build container and link any service and master_service container to build container (not slave_services)
Start build container and send build script to the container.
Run build script.
I am not sure if we can have several masters, only one could be a very good start.