BeyondTheClouds / enos

Experimental eNvironment for OpenStack :monkey:
https://beyondtheclouds.github.io/enos/
GNU General Public License v3.0
30 stars 22 forks source link

Implement `enos build <provider> [--options]` to install once and use many times a base image #325

Closed msimonin closed 5 years ago

msimonin commented 5 years ago

Rationale:

  1. I don't want the docker images to be pulled every single time I use Enos
  2. The same for any dependency pulled from internet (apt, pip...)

Note that, for 1., another solution would be to use a persistent registry or a registry backed by a rbd (ceph on g5k only). These solutions don't seem to be convenient for most users and difficult to setup in a dynamic environment such as G5K.

Action Items:

msimonin commented 5 years ago

I merged this in EnOSlib : https://gitlab.inria.fr/discovery/enoslib/commit/c66bddbbab3d2316442e1e4a39c88d28048136e4

In short, I suggest to generate a working_dir on the frontend (e.g using the current directory) to ease the use of the build process for the VMonG5K provider.

msimonin commented 5 years ago

I also merged this: https://gitlab.inria.fr/discovery/enoslib/commit/b2ed4b3e33fd3c5cdbf9f3bf65a6c01616472238

So, I suggest to generate strategy=copy so that, for vmong5k, the disk image is directly reusable (without the qemu-img commit step).

jrbalderrama commented 5 years ago

We can also add a post build option to commit the results: