-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathContainerfile
82 lines (73 loc) · 2.54 KB
/
Containerfile
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
# potential issues with 6.12 Kernel and COSMIC. Rawhide currently shipping with 6.13.0 as at Dec 24.
FROM quay.io/fedora/fedora-bootc:41
COPY etc etc
RUN ln -sr /etc/containers/systemd/*.container /usr/lib/bootc/bound-images.d/ && \
# mkdir -p /var/tmp && chmod -R 1777 /var/tmp && \
mkdir -p /var/roothome /data /var/home /root/.cache/dconf
# Add third party RPM repo & packages needed to use COPR from DNF5
RUN dnf5 install -y \
https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm \
https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
# dnf5-plugins \
# copr
#RUN dnf5 copr enable -y ryanabx/cosmic-epoch
RUN dnf5 -y install @gnome-desktop \
@multimedia \
@networkmanager-submodules \
@base-graphical \
@container-management \
@core \
@fonts \
@guest-desktop-agents \
@virtualization \
@workstation-product \
@hardware-support \
fwupd \
gnome-keyring \
gdm \
ptyxis \
cockpit \
cockpit-podman \
cockpit-storaged \
cockpit-machines \
cockpit-networkmanager \
cockpit-files \
strace \
qemu-kvm \
crun-vm \
git \
gh \
neovim \
vim-enhanced \
tmux \
bash-completion \
flatpak \
flatpak-builder \
toolbox \
fedora-release-ostree-desktop \
gnome-shell-extension-appindicator \
gnome-shell-extension-dash-to-dock \
gnome-tweaks \
tuned-ppd \
python3.11 \
osbuild-selinux \
xclip \
&& dnf5 clean all
# Flatpak install
COPY flatpak.toml .
RUN flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo && \
wget https://codeberg.org/HeliumOS/flatpak-readonlyroot/raw/branch/master/flatpak-readonlyroot.py && \
chmod +x flatpak-readonlyroot.py && \
python3.11 flatpak-readonlyroot.py flatpak.toml && \
dnf remove -y python3.11 && \
rm -rdf flatpak-readonlyroot.py flatpak.toml /var/roothome
RUN systemctl enable graphical.target && \
systemctl set-default graphical.target && \
systemctl enable fstrim.timer && \
systemctl enable cockpit.socket && \
systemctl enable podman.socket && \
systemctl enable podman-auto-update.timer && \
systemctl enable fwupd.service && \
systemctl disable abrtd.service && \
systemctl disable auditd.service
RUN bootc container lint