OpenPegasus / OpenPegasusDocker

Apache License 2.0
0 stars 0 forks source link

Use docker compose to execute the run of the build image. #6

Open KSchopmeyer opened 1 year ago

KSchopmeyer commented 1 year ago

This appears to have a significant advantage as it separates the definition of the Openpegasus build images from all of the variables that are required when this image runs and that are required to actually clone open Pegasus,, build Pegasus, test the build and to provision the server for the run image and build the run image.

Instead of being part of the Dockerfile, the many variables are defined in .env files and a yaml file and applies when docker compose starts the build image. Thus, the same build image can be used for a lot of different possible run wbem server images without rebuilding the build image unless the Makefile for the build image is modified. Thus openPegasus git version, compiler versions, etc. could be modified to build a specific image without creating a new build image.

At least one downside is having one more requirement/dependency an apparently one that is not consistently up to date in the linux distributions. It is generally recommended that docker compose be downloaded from the docker github directly and installed in a couple of steps rather than use the get,etc. from ubuntu, debian, etc.