-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
66 lines (57 loc) · 1.46 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
ARG ELEMENTAL_IMAGE
FROM ${ELEMENTAL_IMAGE} AS elemental-cli
FROM registry.opensuse.org/opensuse/tumbleweed:latest as default
RUN ARCH=$(uname -m); \
if [[ $ARCH == "aarch64" ]]; then ARCH="arm64"; fi; \
zypper --non-interactive install --no-recommends -- \
kernel-default \
device-mapper \
dracut \
grub2 \
grub2-${ARCH}-efi \
shim \
haveged \
systemd \
NetworkManager \
openssh-server \
openssh-clients \
timezone \
parted \
e2fsprogs \
dosfstools \
mtools \
xorriso \
findutils \
gptfdisk \
rsync \
squashfs \
lvm2 \
tar \
gzip \
neovim \
which \
less \
sudo \
curl \
ca-certificates \
ca-certificates-mozilla \
iproute2 \
iputils \
cryptsetup \
wget \
jq \
lsof \
sed
COPY --from=elemental-cli /usr/bin/elemental /usr/bin/elemental
COPY files/ /
RUN echo "PermitRootLogin yes" > /etc/ssh/sshd_config.d/rootlogin.conf
ARG REPO
ARG VERSION
RUN echo IMAGE_REPO=\"${REPO}\" >> /etc/os-release && \
echo IMAGE_TAG=\"${VERSION}\" >> /etc/os-release && \
echo IMAGE=\"${REPO}:${VERSION}\" >> /etc/os-release && \
echo TIMESTAMP="`date +'%Y%m%d%H%M%S'`" >> /etc/os-release && \
echo GRUB_ENTRY_NAME=\"Tangent\" >> /etc/os-release
RUN systemctl enable NetworkManager
RUN elemental init -f --debug
COPY files/system /system