FROM openshift/base-rhel8:v4.8.0.20210813.021751
ENV __doozer=update BUILD_RELEASE=202108130208.p0.git.61c4cc7.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-202108130208.p0.git.61c4cc7.assembly.stream SOURCE_GIT_TREE_STATE=clean 
ENV __doozer=merge OS_GIT_COMMIT=61c4cc7 OS_GIT_VERSION=4.8.0-202108130208.p0.git.61c4cc7.assembly.stream-61c4cc7 SOURCE_DATE_EPOCH=1602504173 SOURCE_GIT_COMMIT=61c4cc7dc99601fe32b239be8923a6ed693908b0 SOURCE_GIT_TAG=61c4cc7 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="202108130208.p0.git.61c4cc7.assembly.stream" \
        io.openshift.build.commit.id="61c4cc7dc99601fe32b239be8923a6ed693908b0" \
        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/61c4cc7dc99601fe32b239be8923a6ed693908b0" \
        version="v4.8.0"

