IBM / cloud-pak-deployer

Configuration-based installation of OpenShift and Cloud Pak for Data/Integration/Watson AIOps on various private and public cloud infrastructure providers. Deployment attempts to achieve the end-state defined in the configuration. If something fails along the way, you only need to restart the process to continue the deployment.
https://ibm.github.io/cloud-pak-deployer/
Apache License 2.0
140 stars 69 forks source link

Set default build ARGs in Dockerfile #814

Closed argeiger closed 1 month ago

argeiger commented 1 month ago

Describe the bug

Would like to set default ARG values within the Dockerfile. These values can be overridden via the --build-args argument which the cp-deploy script does. This will allow the building of the container without the cp-deploy script which would allow code engine to build it.

https://docs.docker.com/build/building/variables/

# Container image including olm-utils
ARG CPD_OLM_UTILS_V2_IMAGE="icr.io/cpopen/cpd/olm-utils-v2:latest"
ARG CPD_OLM_UTILS_V3_IMAGE="icr.io/cpopen/cpd/olm-utils-v3:latest"