File Dockerfile of Package ironic-ipa-downloader

# SPDX-License-Identifier: MIT

#!BuildTag: suse/ironic-ipa-downloader:latest
#!BuildVersion: 15.4


FROM suse/sle15:15.4

MAINTAINER SUSE LLC (https://www.suse.com/)

RUN sed -i -e 's%^# rpm.install.excludedocs = no.*%rpm.install.excludedocs = yes%g' /etc/zypp/zypp.conf

# python3.9
RUN set -euo pipefail; zypper -n in --no-recommends python39-devel python39 python39-pip git curl; zypper -n clean; rm -rf /var/log/*
RUN set -euo pipefail; ln -s /usr/bin/python3.9 /usr/local/bin/python3; \
    ln -s /usr/bin/pydoc3.9 /usr/local/bin/pydoc

RUN set -euo pipefail; zypper -n  in --no-recommends sles-release

#IPA image
RUN set -euo pipefail; zypper -n  in --no-recommends openstack-ironic-image-x86_64 tar gawk; zypper -n clean; rm -rf /var/log/*
RUN cp /srv/tftpboot/openstack-ironic-image/initrd.xz /tmp
RUN cp /srv/tftpboot/openstack-ironic-image/openstack-ironic-image.*.kernel /tmp

COPY get-resource.sh /usr/local/bin/get-resource.sh

RUN set -euo pipefail; chmod +x /usr/local/bin/get-resource.sh
openSUSE Build Service is sponsored by