robotology-playground / docker_images

This repository stores the Dockerfiles used by the docker images maintained by the IIT iCub Facility
https://hub.docker.com/u/robotology/
3 stars 1 forks source link

Use Travis CI to generate the images #8

Open diegoferigo opened 6 years ago

diegoferigo commented 6 years ago

Despite dockerhub offers a nice interface for handling images, their provided resources for the automatic generation are too restricted and the build times last forever.

We should switch to Travis asap.

diegoferigo commented 6 years ago

A new image based on the robotology-superbuild has been pushed in https://github.com/robotology-playground/docker_images/commit/74157e047b36b6cbacd5dd5e2441271cda6e4037.

A new Travis CI stage for generating the image has been added in https://github.com/robotology-playground/docker_images/commit/35e078909578703b75390a573b47cc90a10989f8. If this pipeline works well, we can exploit stages to build also the other images. This would ensure the order of the Travis jobs, and allows building the entire pipeline yarp > yarp-gazebo > yarp-tdd.

A nice result of this approach is that the Dockerfile can have input arguments. This allows to keep just one file and generate from it many images e.g. for different gazebo versions.

Note: considering that robotology-tdd would be the image used by the CI pipeline of our projects, we can reconsider if it is still worth shipping yarp-tdd and yarp-gazebo.