Dear all,
there are some great Docker plugins for Jenkins out there. However, I couldn't find one
that actually solves the following problem:
Let's assume we have a software system consisting of multiple components, e.g,
written in C++, that are _dependent_ on each other.
D is dependent on C, C on B, B on A. Furthermore, they all have operating system
dependencies like Ubuntu packages (that might also change when updated upstream).
Now, you'd like to build ABC and D inside a _fresh_ docker container (job orchestration is solved
by defining an up- and downstream chain). In order to do that, you (Jenkins) would spin up new container
based-on Ubuntu 14.04 for instance install the required packages and then build A,B,C and D
inside that(!) container instance. After all jobs have been run, the container is shutdown.
How can one achieve that? All Docker Plugins either start (and stop) a container _per_ job, which
makes it impossible build all components since they are dependent on each other, or you connect
to a running container (e.g. via SSH). The latter is also not feasible since after the first build the
environment is not clean anymore (remember I want to start in a fresh Ubuntu).
Any suggestions? Thanks!
Cheers,
Florian