Skip to content

Commit

Permalink
Keep using leap as tool image while building qcows
Browse files Browse the repository at this point in the history
Signed-off-by: Ettore Di Giacinto <edigiacinto@suse.com>
  • Loading branch information
mudler committed May 13, 2022
1 parent cb1d9aa commit be3621b
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions ros-image-build
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,18 @@ ARG IMAGE=rancher/os2:dev
FROM ${IMAGE} AS os
FROM quay.io/costoolkit/elemental:v0.0.14-5bdba36 AS tools
FROM quay.io/costoolkit/elemental:v0.0.14-5bdba36 AS elemental
# Keep using leap 15.3. libslirp looks broken and incompatible with packer
FROM opensuse/leap:15.3 AS tools
COPY --from=elemental /usr/bin/elemental /usr/bin
RUN sed -i -s 's/^# rpm.install.excludedocs/rpm.install.excludedocs/' /etc/zypp/zypp.conf
RUN zypper ref
ENV LUET_NOLOCK=true
# Copy luet from the official images
RUN zypper in -y squashfs xorriso curl unzip git qemu-arm qemu-x86 qemu-tools tar pigz go1.16 qemu-uefi-aarch64 mtools rsync
RUN zypper in -y squashfs xorriso curl unzip git qemu-arm qemu-x86 qemu-tools tar e2fsprogs dosfstools pigz go1.16 qemu-uefi-aarch64 mtools rsync
RUN cd /usr/sbin && \
rm packer && \
SUFFIX=amd64 && \
Expand Down

0 comments on commit be3621b

Please sign in to comment.