Closed riuvshin closed 6 years ago
There's no way to parametrize the Dockerfile itself for the base image, so we don't have to 99.5%-duplicate them for centos vs rhel?
@fche actually, there is a way to doit this way:
ARG BASE_IMAGE=alpine
ARG BASE_TAG=3.4
FROM $BASE_IMAGE:$BASE_TAG
and then using docker build --build-arg BASE_IMAGE=busybox --build-arg BASE_TAG=latest
override defaults, but that was added in very recent docker daemon which is not available for RHEL yet...
anyway @kbsingh decided to keep rhel docker files separately at least for now.
That is a v17 feature, not available in our v12.
Are we expecting ci.centos.org to use the 'rhel' variant toward osio stage (rh-idev) now? I'm seeing the brand new images still being based on centos.
@fche, not enabled yet, we will soon send a PR to change the base images for the pods defined here: https://github.com/redhat-developer/osd-monitor-poc/blob/master/osd-monitor.yml#L29
Once that is changed saasherder will deploy the RHEL based containers
Enable build on RHEL if TARGET=rhel.
The cico environment will continue to build the CentOS based container and in a second step it will build and push a RHEL based container. As of now, the CentOS containers will be the ones being deployed to prod-preview and prod.
cc: @fche