Add tool-image

This commit is contained in:
Ettore Di Giacinto
2022-09-13 20:41:45 +00:00
parent 2997c7aa2f
commit 29da8c271e
4 changed files with 95 additions and 0 deletions

21
tools-image/Dockerfile Normal file
View File

@@ -0,0 +1,21 @@
ARG ELEMENTAL_CLI_VERSION=v0.0.15-ae4f000
ARG LEAP_VERSION=15.4
FROM quay.io/costoolkit/elemental-cli:$ELEMENTAL_CLI_VERSION AS elemental
FROM quay.io/costoolkit/releases-teal:grub2-live-0.0.3-2 AS grub2
FROM quay.io/costoolkit/releases-teal:grub2-efi-image-live-0.0.2-2 AS efi
FROM opensuse/leap:$LEAP_VERSION
COPY --from=elemental /usr/bin/elemental /usr/bin/elemental
COPY --from=grub2 / /grub2
COPY --from=efi / /efi
RUN zypper ref && zypper dup -y
RUN zypper ref && zypper in -y xfsprogs parted util-linux-systemd e2fsprogs util-linux udev rsync grub2 dosfstools grub2-x86_64-efi squashfs mtools xorriso lvm2
RUN mkdir /config
COPY ./config.yaml /config/manifest.yaml
COPY ./entrypoint.sh /entrypoint.sh
ENTRYPOINT [ "/entrypoint.sh" ]

6
tools-image/config.yaml Normal file
View File

@@ -0,0 +1,6 @@
iso:
uefi:
- dir:/efi
image:
- dir:/efi
- dir:/grub2

5
tools-image/entrypoint.sh Executable file
View File

@@ -0,0 +1,5 @@
#!/bin/bash
set -ex
elemental --config-dir /config $@