-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
138 lines (128 loc) · 3.36 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
FROM quay.io/fedora/fedora-silverblue:40
RUN rpm-ostree install \
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 \
# dnf gets pulled in somewhere in the later install. Would be better to ensure it's excluded.
# Not quite sure how to do that so for now force it to be installed *now*, and then force the
# /usr/bin/dnf symlink to dnf5.
dnf \
dnf5 \
dnf5-plugins
# That hacky symlink fix mentioned a few lines earlier.
RUN ln -sf /usr/bin/dnf5 /usr/bin/dnf
COPY *.repo /etc/yum.repos.d/
RUN dnf copr enable -y gmaglione/podman-bootc
RUN dnf copr enable -y samcday/phrog
RUN dnf install -y \
age \
android-tools \
apk-tools \
bat \
bind-utils \
bison \
bootc \
butane \
cage \
cargo \
cloc \
cmake \
copr-cli \
codium \
docker \
fcgiwrap \
fedora-packager \
fedora-repos-rawhide \
fedora-review \
flex \
ftp \
fzf \
gcc \
gcc-c++ \
gcc-gnat \
gdb \
git-credential-libsecret \
git-lfs \
git-subtree \
glibc-devel.i686 \
gnome-bluetooth-libs-devel \
gnome-console \
gnome-tweaks \
golang \
golang-bin \
greetd \
greetd-fakegreet \
gsound-devel \
gtkgreet \
hcloud \
heimdall \
helm \
htop \
iperf3 \
java-21-openjdk-devel \
kubeadm \
kubectl \
kubelet \
libavcodec-freeworld \
libnotify-devel \
meson \
mpv \
ncurses-devel \
neofetch \
net-tools \
nginx \
nodejs \
openssl \
openssl-devel \
packit \
perl-FindBin \
phrog \
podman-bootc \
postgresql \
python3-pygments \
python3-typogrify \
rclone \
restic \
ripgrep \
rust-packaging \
rust2rpm \
rustup \
screen \
seatd \
strace \
tailscale \
tcpdump \
tio \
tofu \
tpm2-tss-engine \
tpm2-tss-engine-utilities \
usbip \
vim \
virt-install \
virt-manager \
wl-clipboard \
wf-recorder \
xmlstarlet \
yt-dlp \
yq \
zsh \
https://github.com/derailed/k9s/releases/download/v0.32.5/k9s_linux_amd64.rpm \
https://github.com/getsops/sops/releases/download/v3.9.0/sops-3.9.0-1.x86_64.rpm
RUN dnf builddep -y phosh
RUN dnf builddep -y phrog
RUN dnf upgrade -y --enablerepo=rawhide gmobile
RUN dnf upgrade -y --enablerepo=rawhide phoc
# Alternatives are broken. Should figure out why.
# for now: hax.
RUN ln -sf /usr/bin/ld.bfd /usr/bin/ld
RUN ln -sf /usr/lib/golang/bin/go /usr/bin/go
# Disable SELinux for now until the underlying relabelling issues are resolved
# (#2)
RUN echo 'SELINUX=disabled' > /etc/selinux/config
# Update initrd to include TPM2 disk unlock and include vfio-pci early (to denylist PCI devices,
# like NVIDIA GPU on my desktop)
COPY dracut.conf /usr/lib/dracut/dracut.conf.d/10-sam.conf
RUN export KERNEL_VERSION="$(rpm -qa kernel --queryformat '%{VERSION}-%{RELEASE}.%{ARCH}')" && \
stock_arguments=$(lsinitrd "/lib/modules/${KERNEL_VERSION}/initramfs.img" | grep '^Arguments: ' | sed 's/^Arguments: //') && \
mkdir -p /tmp/dracut /var/roothome && \
bash <(/usr/bin/echo "dracut -f /lib/modules/${KERNEL_VERSION}/initramfs.img $stock_arguments") && \
rm -rf /var/* /tmp/* && \
ostree container commit