We were relying on the script docker-run.py for out Jenkins build. That Python script was using the Docker Python API and was essentially used to launch CI containers, execute instruction, and cleanup (stop and remove containers). It was using a Python dictionary to configure which was quite flexible but needed additional work to be able to extend configuration (to work with NVIDIA plugin for instance).
Here we decide to take advantage of docker-compose which seems to be already doing all I was trying to achieve with our script.
We were relying on the script
docker-run.py
for out Jenkins build. That Python script was using the Docker Python API and was essentially used to launch CI containers, execute instruction, and cleanup (stop and remove containers). It was using a Python dictionary to configure which was quite flexible but needed additional work to be able to extend configuration (to work with NVIDIA plugin for instance). Here we decide to take advantage ofdocker-compose
which seems to be already doing all I was trying to achieve with our script.