-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathContainerfile
More file actions
42 lines (29 loc) · 1.95 KB
/
Containerfile
File metadata and controls
42 lines (29 loc) · 1.95 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
ARG CORE_BRANCH=main
FROM ghcr.io/commonarch/core:$CORE_BRANCH
ARG CORE_BRANCH=main
ARG VARIANT=general
ARG DESKTOP=nogui
RUN if [ "$VARIANT" != container ]; then install-packages-build linux-zen linux-firmware linux-zen-headers broadcom-wl-dkms dracut; fi
RUN if [ "$DESKTOP" == gnome ]; then install-packages-build gnome; \
elif [ "$DESKTOP" == plasma ]; then install-packages-build plasma kde-utilities-meta kde-accessibility-meta; \
elif [ "$DESKTOP" == xfce ]; then install-packages-build xfce4; \
elif [ "$DESKTOP" == mate ]; then install-packages-build mate mate-extra; \
elif [ "$DESKTOP" == budgie ]; then install-packages-build budgie budgie-desktop-view network-manager-applet materia-gtk-theme papirus-icon-theme; \
fi
RUN if [ "$DESKTOP" == gnome ]; then install-packages-build xorg-server gdm; systemctl enable gdm; \
elif [ "$DESKTOP" == plasma ]; then install-packages-build xorg-server sddm; systemctl enable sddm; \
elif [ "$DESKTOP" == xfce ]; then install-packages-build xorg-server lightdm lightdm-gtk-greeter; systemctl enable lightdm; \
elif [ "$DESKTOP" == mate ]; then install-packages-build xorg-server lightdm lightdm-gtk-greeter; systemctl enable lightdm; \
elif [ "$DESKTOP" == budgie ]; then install-packages-build xorg-server lightdm lightdm-gtk-greeter; systemctl enable lightdm; \
fi
RUN if [ "$VARIANT" == nvidia ]; then install-packages-build nvidia-dkms; fi
RUN install-packages-build grub efibootmgr
RUN install-packages-build python-yaml python-click python-fasteners skopeo umoci jq libnotify wget zip unzip
COPY overlays/common /
ENV CORE_BRANCH=$CORE_BRANCH
RUN wget -O cli.zip https://github.com/CommonArch/system-cli/archive/cbffd78c4c353ceb5dde61636d01fc50d074e60d.zip \
&& unzip cli.zip && mv system-cli-* system-cli && cp -ax system-cli/usr/* /usr && rm -rf system-cli cli.zip
RUN systemctl enable commonarch-update-cleanup
RUN systemctl enable --global commonarch-update-check
# Clean up cache
RUN yes | pacman -Scc