FROM openshift/ose-base:rhel8.2.els.rhel
ENV __doozer=update BUILD_RELEASE=202101120700.p0 BUILD_VERSION=v4.6.0 OS_GIT_MAJOR=4 OS_GIT_MINOR=6 OS_GIT_PATCH=0 OS_GIT_TREE_STATE=clean OS_GIT_VERSION=4.6.0-202101120700.p0 SOURCE_GIT_TREE_STATE=clean 
ENV __doozer=merge OS_GIT_COMMIT=2205538 OS_GIT_VERSION=4.6.0-202101120700.p0-2205538 SOURCE_DATE_EPOCH=1598549462 SOURCE_GIT_COMMIT=2205538ae2eec1e1c9ca002011820ab86011b121 SOURCE_GIT_TAG=2205538 SOURCE_GIT_URL=https://github.com/openshift/ironic-hardware-inventory-recorder-image 

RUN yum update -y && \
    yum install -y openstack-ironic-python-agent lshw smartmontools iproute python3-hardware && \
    yum clean all

COPY ./runironic-agent.sh /bin/runironic-agent

ENTRYPOINT ["/bin/runironic-agent"]

LABEL \
        io.openshift.release.operator="true" \
        name="openshift/ose-ironic-hardware-inventory-recorder" \
        com.redhat.component="ironic-hardware-inventory-recorder-image-container" \
        io.openshift.maintainer.product="OpenShift Container Platform" \
        io.openshift.maintainer.component="Bare Metal Hardware Provisioning" \
        io.openshift.maintainer.subcomponent="ironic" \
        release="202101120700.p0" \
        io.openshift.build.commit.id="2205538ae2eec1e1c9ca002011820ab86011b121" \
        io.openshift.build.source-location="https://github.com/openshift/ironic-hardware-inventory-recorder-image" \
        io.openshift.build.commit.url="https://github.com/openshift/ironic-hardware-inventory-recorder-image/commit/2205538ae2eec1e1c9ca002011820ab86011b121" \
        version="v4.6.0"

