-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
175 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
ARG IMAGE_MAJOR_VERSION=39 | ||
ARG BASE_IMAGE_URL=quay.io/fedora-ostree-desktops/base | ||
|
||
FROM registry.fedoraproject.org/fedora:${IMAGE_MAJOR_VERSION} AS cosmic-builder | ||
|
||
RUN dnf update -y | ||
RUN dnf install -y git \ | ||
make \ | ||
which \ | ||
just \ | ||
rustc \ | ||
libglvnd-devel \ | ||
libseat-devel \ | ||
libxkbcommon-devel \ | ||
lld \ | ||
libinput-devel \ | ||
glib2-devel \ | ||
gtk3-devel \ | ||
dbus-devel \ | ||
wayland-devel \ | ||
clang-devel \ | ||
cargo \ | ||
mesa-libgbm-devel \ | ||
pipewire-devel \ | ||
pam-devel \ | ||
flatpak-devel | ||
RUN git clone --recurse-submodules https://github.com/pop-os/cosmic-epoch | ||
RUN cd cosmic-epoch && just sysext && rm -rf cosmic-sysext/usr/lib/extension-release.d | ||
|
||
|
||
FROM registry.fedoraproject.org/fedora:${IMAGE_MAJOR_VERSION} AS launcher-builder | ||
|
||
RUN dnf update -y | ||
RUN dnf install -y git \ | ||
just \ | ||
rustc \ | ||
cargo \ | ||
libglvnd-devel \ | ||
libxkbcommon-devel | ||
RUN git clone --recurse-submodules https://github.com/pop-os/launcher | ||
RUN cd launcher && just build-release | ||
|
||
|
||
FROM registry.fedoraproject.org/fedora:${IMAGE_MAJOR_VERSION} AS wallpapers-builder | ||
RUN dnf update -y | ||
RUN dnf install -y git | ||
RUN git clone --recurse-submodules https://github.com/pop-os/system76-wallpapers | ||
|
||
|
||
FROM ${BASE_IMAGE_URL}:${IMAGE_MAJOR_VERSION} | ||
|
||
|
||
# Cosmic dependencies | ||
RUN rpm-ostree install \ | ||
libseat \ | ||
pop-icon-theme \ | ||
greetd \ | ||
greetd-selinux \ | ||
cage \ | ||
mozilla-fira-mono-fonts \ | ||
mozilla-fira-sans-fonts | ||
|
||
# Copy COSMIC | ||
COPY --from=cosmic-builder /cosmic-epoch/cosmic-sysext/usr /usr | ||
COPY --from=cosmic-builder /cosmic-epoch/cosmic-comp/config.ron /usr/etc/cosmic-comp/config.ron | ||
COPY --from=cosmic-builder /cosmic-epoch/cosmic-greeter/cosmic-greeter.toml /usr/etc/greetd/cosmic-greeter.toml | ||
COPY --from=cosmic-builder /cosmic-epoch/cosmic-greeter/debian/cosmic-greeter.service /usr/lib/systemd/system/cosmic-greeter.service | ||
|
||
COPY --from=launcher-builder /launcher/target/release/pop-launcher-bin /usr/bin/pop-launcher | ||
COPY --from=launcher-builder /launcher/plugins/src/calc/plugin.ron /usr/lib/pop-launcher/plugins/calc/plugin.ron | ||
RUN ln -s /usr/bin/pop-launcher /usr/lib/pop-launcher/plugins/calc/calc | ||
COPY --from=launcher-builder /launcher/plugins/src/cosmic_toplevel/plugin.ron /usr/lib/pop-launcher/plugins/cosmic_toplevel/plugin.ron | ||
RUN ln -s /usr/bin/pop-launcher /usr/lib/pop-launcher/plugins/cosmic_toplevel/cosmic-toplevel | ||
COPY --from=launcher-builder /launcher/plugins/src/desktop_entries/plugin.ron /usr/lib/pop-launcher/plugins/desktop_entries/plugin.ron | ||
RUN ln -s /usr/bin/pop-launcher /usr/lib/pop-launcher/plugins/desktop_entries/desktop-entries | ||
COPY --from=launcher-builder /launcher/plugins/src/files/plugin.ron /usr/lib/pop-launcher/plugins/files/plugin.ron | ||
RUN ln -s /usr/bin/pop-launcher /usr/lib/pop-launcher/plugins/files/files | ||
COPY --from=launcher-builder /launcher/plugins/src/find/plugin.ron /usr/lib/pop-launcher/plugins/find/plugin.ron | ||
RUN ln -s /usr/bin/pop-launcher /usr/lib/pop-launcher/plugins/find/find | ||
COPY --from=launcher-builder /launcher/plugins/src/pulse/plugin.ron /usr/lib/pop-launcher/plugins/pulse/plugin.ron | ||
RUN ln -s /usr/bin/pop-launcher /usr/lib/pop-launcher/plugins/pulse/pulse | ||
COPY --from=launcher-builder /launcher/plugins/src/recent/plugin.ron /usr/lib/pop-launcher/plugins/recent/plugin.ron | ||
RUN ln -s /usr/bin/pop-launcher /usr/lib/pop-launcher/plugins/recent/recent | ||
COPY --from=launcher-builder /launcher/plugins/src/scripts/plugin.ron /usr/lib/pop-launcher/plugins/scripts/plugin.ron | ||
RUN ln -s /usr/bin/pop-launcher /usr/lib/pop-launcher/plugins/scripts/scripts | ||
COPY --from=launcher-builder /launcher/plugins/src/terminal/plugin.ron /usr/lib/pop-launcher/plugins/terminal/plugin.ron | ||
RUN ln -s /usr/bin/pop-launcher /usr/lib/pop-launcher/plugins/terminal/terminal | ||
COPY --from=launcher-builder /launcher/plugins/src/web/plugin.ron /usr/lib/pop-launcher/plugins/web/plugin.ron | ||
RUN ln -s /usr/bin/pop-launcher /usr/lib/pop-launcher/plugins/web/web | ||
|
||
COPY --from=wallpapers-builder /system76-wallpapers/backgrounds /usr/share/backgrounds/pop | ||
|
||
RUN ln -s /usr/lib/systemd/system/cosmic-greeter.service /etc/systemd/system/display-manager.service | ||
RUN rm -rf /var/lib/greetd | ||
|
||
RUN rpm-ostree cleanup -m && ostree container commit | ||
|