FROM registry.suse.com/suse/sle15
RUN zypper ref
RUN zypper --non-interactive install iputils
RUN zypper --non-interactive install wget
RUN zypper --non-interactive install curl
RUN zypper --non-interactive install net-tools
RUN zypper --non-interactive install systemd
RUN zypper --non-interactive install udev
RUN zypper --non-interactive install usbutils
RUN zypper --non-interactive install glibc-locale-base
RUN zypper --non-interactive install gawk
RUN zypper --non-interactive install dbus-1
RUN zypper --non-interactive install systemd-sysvinit
RUN zypper --non-interactive install dmidecode
RUN zypper --gpg-auto-import-keys ref
RUN zypper clean --all

#in future ism install from repo can be updated
RUN wget https://linux.dell.com/repo/hardware/ism/bootstrap.cgi
RUN echo y|bash bootstrap.cgi
RUN zypper --non-interactive --ignore-unknown --no-cd install dcism > /dev/null 2>&1

CMD ["/sbin/init"]

