generated from blue-build/legacy-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Containerfile
62 lines (46 loc) · 1.6 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
ARG OS_VERSION=41
FROM ghcr.io/ublue-os/sericea-main:$OS_VERSION
ARG OS_VERSION
ENV OS_VERSION=$OS_VERSION
ARG GITHUB_SHA
ENV GITHUB_SHA=$GITHUB_SHA
ARG GITHUB_PR_HEAD_SHA
ENV GITHUB_PR_HEAD_SHA=$GITHUB_PR_HEAD_SHA
ARG GITHUB_REF_NAME
ENV GITHUB_REF_NAME=$GITHUB_REF_NAME
COPY files/usr /usr
# Swap SDDM for GDM
RUN \
dnf remove -y sddm sddm-wayland-sway && \
dnf install gdm && \
systemctl enable gdm
# Misc. packages
RUN dnf install \
fish \
kubernetes-client \
grim \
slurp \
swappy \
wf-recorder
# Docker
RUN curl -o "/etc/yum.repos.d/docker.com.linux.fedora.docker-ce.repo" "https://download.docker.com/linux/fedora/docker-ce.repo" && \
dnf install docker-ce docker-ce-cli && \
systemctl enable docker
# Fingerprint reader setup
RUN authselect enable-feature with-fingerprint && \
authselect apply-changes
# Install ublue-update
RUN sh -c "$(curl -fsSL https://raw.githubusercontent.com/blue-build/modules/7ad6f3b1a766508085525cd979430de2639db652/modules/bling/installers/ublue-update.sh)"
# Fonts
COPY --chmod=744 scripts/google-fonts.sh scripts/nerd-fonts.sh /tmp/
RUN /tmp/google-fonts.sh "Roboto" "Open Sans"
RUN /tmp/nerd-fonts.sh "FiraCode" "Hack" "SourceCodePro" "Terminus" "JetBrainsMono" "NerdFontsSymbolsOnly"
# Setup signing
COPY signing/policy.json /usr/etc/containers/
COPY signing/cosign.pub /usr/etc/pki/containers/sediment.pub
COPY signing/registry-config.yaml /usr/etc/containers/registries.d/sediment.yaml
# Set boot entry name
COPY --chmod=700 scripts/set-os-release-pretty-name.sh /tmp/
RUN /tmp/set-os-release-pretty-name.sh
# Finally, validate
RUN ostree container commit