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

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

RUN systemctl enable dcismeng.service
ENV CONTAINER_ENV=1
CMD ["/sbin/init"]

