I have an application called doccano that's built with docker/docker compose and spins up a series of different containers to run the application. I have a package that is a client for interacting with the doccano application that I wish to test. I'm looking at spinning up the doccano application as a service for the pipeline. In the steps, I would like to be able to build my client package and test it against the running doccano service. If someone can just get me to being able to ping the service container from the step, the rest is trivial. This was very simple with github actions.
....
services:
doccano:
image:
name: doccano/doccano
...
- step:
name: test
services:
- doccano
script:
- export COMPOSER_ALLOW_SUPERUSER=1
- apt-get update -qq
- apt-get install apt-transport-https ca-certificates gnupg lsb-release git curl iputils-ping -y
- ping -c 1 doccano