FROM openshift/ose-base:ubi8
ENV OS_GIT_MAJOR=4 OS_GIT_MINOR=3 OS_GIT_PATCH=10 OS_GIT_VERSION=4.3.10-202003311428-5f57661 OS_GIT_TREE_STATE=clean SOURCE_GIT_COMMIT=5f57661eaaa3f8714c2b1904313b9ecf1a7bdba4 SOURCE_GIT_TAG=5f57661 SOURCE_GIT_URL=https://github.com/openshift/ironic-hardware-inventory-recorder-image SOURCE_DATE_EPOCH=1576660606 OS_GIT_COMMIT=5f57661 BUILD_VERSION=v4.3.10 BUILD_RELEASE=202003311428

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" \
        version="v4.3.10" \
        release="202003311428" \
        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"

