-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathContainerfile
More file actions
77 lines (59 loc) · 1.84 KB
/
Copy pathContainerfile
File metadata and controls
77 lines (59 loc) · 1.84 KB
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
ARG OS_VERSION=44
FROM quay.io/fedora-ostree-desktops/sway-atomic:$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
# Setup automatic updates
RUN systemctl enable system-update.timer
# Swap SDDM for GDM
RUN \
dnf remove -y sddm sddm-wayland-sway && \
dnf install -y gdm && \
systemctl enable gdm
# Misc. packages
RUN dnf install -y \
fish \
distrobox \
kubernetes-client \
grim \
slurp \
swappy \
wf-recorder
# DankMaterial Shell
RUN yes | dnf copr enable avengemedia/dms && \
dnf install -y dms && \
systemctl --global enable dms.service && \
dnf remove -y \
dunst \
network-manager-applet \
rofi \
rofi-themes
RUN systemctl --global is-enabled dms.service
# 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 -y docker-ce docker-ce-cli && \
systemctl enable docker
# Fingerprint reader setup
RUN authselect enable-feature with-fingerprint && \
authselect apply-changes
# 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"
# Enable kanshi service
RUN systemctl --global enable kanshi
# 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