CI; gain some time by using some pre-updated image server/client
I was thinking to a way to increase our time of CI.
Major part of the build time is taken by apt-get update & installation of third-party softwares as a base image before pull vidjil content.
We could probably split our Dockerfile as base/top image that we will be able to speed up build time.
Problem is that if we change content of dockerfile, we will have error. We could probably use branch name to take that into account.
- build a first image for that, push it as vidjil/vidjil-{client/server}:latest-base
- have a new branche type
docker
that will launch a job to build a new base image and propagate it to his derived CI jobs to ensure that everything work well - Other branch will use default latest-base image
- When merge in dev, we could detect a change in file to launch jobs to build latest-base images.
... Something like that I think...