1
0
mirror of https://github.com/rancher/os.git synced 2025-08-12 20:06:46 +00:00
os/Dockerfile

101 lines
2.3 KiB
Docker
Raw Normal View History

2021-06-25 18:01:35 +00:00
FROM registry.suse.com/suse/sle15:15.3 AS base
2021-06-06 00:31:50 +00:00
ARG ARCH=amd64
ENV ARCH=${ARCH}
2021-06-25 18:01:35 +00:00
ENV LUET_VERSION 0.16.7
RUN zypper rm -y container-suseconnect
RUN zypper ar --priority=200 http://download.opensuse.org/distribution/leap/15.3/repo/oss repo-oss
RUN zypper --no-gpg-checks ref
COPY files/etc/luet/luet.yaml /etc/luet/luet.yaml
RUN zypper in -y curl
RUN curl -sfL -o /usr/bin/luet https://github.com/mudler/luet/releases/download/${LUET_VERSION}/luet-${LUET_VERSION}-linux-${ARCH} && \
chmod +x /usr/bin/luet
FROM base as tools
RUN zypper in -y docker squashfs xorriso
COPY tools /
RUN luet install -y repository/luet repository/mocaccino-repository-index
RUN luet install -y extension/makeiso
FROM base
2021-06-06 00:31:50 +00:00
RUN zypper in -y \
bash-completion \
conntrack-tools \
coreutils \
curl \
device-mapper \
dosfstools \
dracut \
e2fsprogs \
findutils \
gawk \
2021-06-25 18:01:35 +00:00
gptfdisk \
2021-06-06 00:31:50 +00:00
grub2-i386-pc \
grub2-x86_64-efi \
haveged \
iproute2 \
iptables \
2021-06-18 23:48:33 +00:00
iputils \
2021-06-25 18:01:35 +00:00
issue-generator \
2021-06-06 00:31:50 +00:00
jq \
kernel-default \
kernel-firmware-bnx2 \
kernel-firmware-i915 \
kernel-firmware-intel \
kernel-firmware-iwlwifi \
kernel-firmware-mellanox \
kernel-firmware-network \
kernel-firmware-platform \
kernel-firmware-realtek \
less \
lsscsi \
lvm2 \
mdadm \
multipath-tools \
nano \
nfs-utils \
open-iscsi \
open-vm-tools \
parted \
2021-06-25 18:01:35 +00:00
pigz \
policycoreutils \
procps \
2021-06-06 00:31:50 +00:00
python-azure-agent \
qemu-guest-agent \
rng-tools \
rsync \
squashfs \
strace \
systemd \
systemd-sysvinit \
tar \
timezone \
vim \
which
2021-06-25 18:01:35 +00:00
RUN curl -L https://github.com/rancher/rancherd/releases/download/v0.0.1-alpha04/rancherd-${ARCH} > /usr/bin/rancherd && \
2021-06-18 23:48:33 +00:00
chmod +x /usr/bin/rancherd
2021-06-06 00:31:50 +00:00
2021-06-25 18:01:35 +00:00
ARG CACHEBUST
2021-06-06 00:31:50 +00:00
RUN luet install -y \
toolchain/yip \
utils/installer \
2021-06-25 18:01:35 +00:00
system/cloud-config \
2021-06-06 00:31:50 +00:00
system/cos-setup \
system/immutable-rootfs \
system/grub-config \
2021-06-25 18:01:35 +00:00
selinux/k3s \
selinux/rancher \
utils/k9s \
utils/nerdctl
2021-06-06 00:31:50 +00:00
COPY files/ /
RUN mkinitrd
ARG OS_NAME=RancherOS
ARG OS_VERSION=999
ARG OS_GIT=dirty
2021-06-25 18:01:35 +00:00
ARG OS_REPO=norepo/norepo
ARG OS_LABEL=latest
RUN envsubst >/usr/lib/os-release </usr/lib/os-release.tmpl && \
rm /usr/lib/os-release.tmpl