FROM openshift/base-rhel8:v4.8.0.20220126.114919
ENV __doozer=update BUILD_RELEASE=202201261123.p0.gb3ecae8.assembly.stream BUILD_VERSION=v4.8.0 OS_GIT_MAJOR=4 OS_GIT_MINOR=8 OS_GIT_PATCH=0 OS_GIT_TREE_STATE=clean OS_GIT_VERSION=4.8.0-202201261123.p0.gb3ecae8.assembly.stream SOURCE_GIT_TREE_STATE=clean 
ENV __doozer=merge OS_GIT_COMMIT=b3ecae8 OS_GIT_VERSION=4.8.0-202201261123.p0.gb3ecae8.assembly.stream-b3ecae8 SOURCE_DATE_EPOCH=1635181253 SOURCE_GIT_COMMIT=b3ecae8d1c6cd84a8784cf3dd17532797af7b724 SOURCE_GIT_TAG=b3ecae8 SOURCE_GIT_URL=https://github.com/openshift/ironic-hardware-inventory-recorder-image 

RUN dnf update -y && \
    dnf install -y openstack-ironic-python-agent lshw smartmontools iproute python3-hardware && \
    dnf clean all && \
    rm -rf /var/cache/{yum,dnf}/*

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="202201261123.p0.gb3ecae8.assembly.stream" \
        io.openshift.build.commit.id="b3ecae8d1c6cd84a8784cf3dd17532797af7b724" \
        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/b3ecae8d1c6cd84a8784cf3dd17532797af7b724" \
        version="v4.8.0"

