.gitlab-ci.yml -- support for "services" port mapping, name aliasing - like docker-compose.yml
Need CI support for multiple named services using same image file and different port mappings. Docker-compose and Docker-swarm support this feature.
Currently https://gitlab.com/ci/lint:
use-case:
services:
- postgres:latest
- caching:
image: redis:alpine
ports:
- "6380:6379"
- queuing:
image: redis:alpine
ports:
- "6381:6379"
yields
Status: syntax is incorrect
Error: jobs:setup-test-env:services config should be an array of strings
an array of strings
does not allow for port mapping, image naming, and other features found in docker-compose and docker-swarm.
From an OO design perspective, currently - service "is a" image_name_string
-- direction would be to have service "has a" image_name_string
and service has a
many other things, such as labels [groups, masters, peers], aliases, port mappings,