FROM openshift/ose-base:ubi8
ENV __doozer=update BUILD_RELEASE=202006290519.p0 BUILD_VERSION=v4.3.28 OS_GIT_MAJOR=4 OS_GIT_MINOR=3 OS_GIT_PATCH=28 OS_GIT_TREE_STATE=clean OS_GIT_VERSION=4.3.28-202006290519.p0 
ENV __doozer=merge OS_GIT_COMMIT=5f57661 OS_GIT_VERSION=4.3.28-202006290519.p0-5f57661 SOURCE_DATE_EPOCH=1576660606 SOURCE_GIT_COMMIT=5f57661eaaa3f8714c2b1904313b9ecf1a7bdba4 SOURCE_GIT_TAG=5f57661 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="202006290519.p0" \
        io.openshift.build.commit.id="5f57661eaaa3f8714c2b1904313b9ecf1a7bdba4" \
        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/5f57661eaaa3f8714c2b1904313b9ecf1a7bdba4" \
        version="v4.3.28"

