mirror of
https://github.com/ublue-os/bazzite.git
synced 2025-01-29 18:32:48 +00:00
Merge branch 'testing'
This commit is contained in:
commit
c4079d7711
239
Containerfile
239
Containerfile
@ -7,8 +7,9 @@ ARG SOURCE_IMAGE="${SOURCE_IMAGE:-$BASE_IMAGE_NAME-$BASE_IMAGE_FLAVOR}"
|
||||
ARG BASE_IMAGE="ghcr.io/ublue-os/${SOURCE_IMAGE}"
|
||||
ARG FEDORA_MAJOR_VERSION="${FEDORA_MAJOR_VERSION:-40}"
|
||||
|
||||
FROM ghcr.io/ublue-os/akmods:${KERNEL_FLAVOR}-${FEDORA_MAJOR_VERSION} as akmods
|
||||
FROM ghcr.io/ublue-os/akmods-extra:${KERNEL_FLAVOR}-${FEDORA_MAJOR_VERSION} as akmods-extra
|
||||
FROM ghcr.io/ublue-os/akmods:${KERNEL_FLAVOR}-${FEDORA_MAJOR_VERSION} AS akmods
|
||||
FROM ghcr.io/ublue-os/akmods-extra:${KERNEL_FLAVOR}-${FEDORA_MAJOR_VERSION} AS akmods-extra
|
||||
FROM ghcr.io/ublue-os/fsync:latest AS fsync
|
||||
|
||||
FROM ${BASE_IMAGE}:${FEDORA_MAJOR_VERSION} AS bazzite
|
||||
|
||||
@ -23,6 +24,109 @@ ARG JUPITER_KERNEL_VERSION="${JUPITER_KERNEL_VERSION:-jupiter-20240605.1}"
|
||||
|
||||
COPY system_files/desktop/shared system_files/desktop/${BASE_IMAGE_NAME} /
|
||||
|
||||
# Update packages that commonly cause build issues
|
||||
RUN rpm-ostree override replace \
|
||||
--experimental \
|
||||
--from repo=updates \
|
||||
vulkan-loader \
|
||||
|| true && \
|
||||
rpm-ostree override replace \
|
||||
--experimental \
|
||||
--from repo=updates \
|
||||
alsa-lib \
|
||||
|| true && \
|
||||
rpm-ostree override replace \
|
||||
--experimental \
|
||||
--from repo=updates \
|
||||
gnutls \
|
||||
|| true && \
|
||||
rpm-ostree override replace \
|
||||
--experimental \
|
||||
--from repo=updates \
|
||||
glib2 \
|
||||
|| true && \
|
||||
rpm-ostree override replace \
|
||||
--experimental \
|
||||
--from repo=updates \
|
||||
gtk3 \
|
||||
|| true && \
|
||||
rpm-ostree override replace \
|
||||
--experimental \
|
||||
--from repo=updates \
|
||||
atk \
|
||||
at-spi2-atk \
|
||||
|| true && \
|
||||
rpm-ostree override replace \
|
||||
--experimental \
|
||||
--from repo=updates \
|
||||
libaom \
|
||||
|| true && \
|
||||
rpm-ostree override replace \
|
||||
--experimental \
|
||||
--from repo=updates \
|
||||
gstreamer1 \
|
||||
gstreamer1-plugins-base \
|
||||
|| true && \
|
||||
rpm-ostree override replace \
|
||||
--experimental \
|
||||
--from repo=updates \
|
||||
libdecor \
|
||||
|| true && \
|
||||
rpm-ostree override replace \
|
||||
--experimental \
|
||||
--from repo=updates \
|
||||
libtirpc \
|
||||
|| true && \
|
||||
rpm-ostree override replace \
|
||||
--experimental \
|
||||
--from repo=updates \
|
||||
libuuid \
|
||||
|| true && \
|
||||
rpm-ostree override replace \
|
||||
--experimental \
|
||||
--from repo=updates \
|
||||
libblkid \
|
||||
|| true && \
|
||||
rpm-ostree override replace \
|
||||
--experimental \
|
||||
--from repo=updates \
|
||||
libmount \
|
||||
|| true && \
|
||||
rpm-ostree override replace \
|
||||
--experimental \
|
||||
--from repo=updates \
|
||||
cups-libs \
|
||||
|| true && \
|
||||
rpm-ostree override replace \
|
||||
--experimental \
|
||||
--from repo=updates \
|
||||
libinput \
|
||||
|| true && \
|
||||
rpm-ostree override replace \
|
||||
--experimental \
|
||||
--from repo=updates \
|
||||
libopenmpt \
|
||||
|| true && \
|
||||
rpm-ostree override replace \
|
||||
--experimental \
|
||||
--from repo=updates \
|
||||
llvm-libs \
|
||||
|| true && \
|
||||
rpm-ostree override replace \
|
||||
--experimental \
|
||||
--from repo=updates \
|
||||
zlib-ng-compat \
|
||||
|| true && \
|
||||
rpm-ostree override replace \
|
||||
--experimental \
|
||||
--from repo=updates \
|
||||
fontconfig \
|
||||
|| true && \
|
||||
rpm-ostree override remove \
|
||||
glibc32 \
|
||||
|| true && \
|
||||
ostree container commit
|
||||
|
||||
# Setup Copr repos
|
||||
RUN curl -Lo /usr/bin/copr https://raw.githubusercontent.com/ublue-os/COPR-command/main/copr && \
|
||||
chmod +x /usr/bin/copr && \
|
||||
@ -50,19 +154,16 @@ RUN curl -Lo /usr/bin/copr https://raw.githubusercontent.com/ublue-os/COPR-comma
|
||||
ostree container commit
|
||||
|
||||
# Install kernel-fsync
|
||||
COPY --from=fsync /tmp/rpms /tmp/fsync-rpms
|
||||
RUN rpm-ostree cliwrap install-to-root / && \
|
||||
if [[ "${KERNEL_FLAVOR}" =~ "fsync" ]]; then \
|
||||
echo "will install ${KERNEL_FLAVOR} kernel from COPR" && \
|
||||
curl -Lo /etc/yum.repos.d/_copr_sentry-kernel-fsync.repo https://copr.fedorainfracloud.org/coprs/sentry/kernel-fsync/repo/fedora-$(rpm -E %fedora)/sentry-kernel-fsync-fedora-$(rpm -E %fedora).repo && \
|
||||
echo "Will install ${KERNEL_FLAVOR} kernel" && \
|
||||
rpm-ostree override replace \
|
||||
--experimental \
|
||||
--from repo=copr:copr.fedorainfracloud.org:sentry:kernel-fsync \
|
||||
kernel \
|
||||
kernel-core \
|
||||
kernel-modules \
|
||||
kernel-modules-core \
|
||||
kernel-modules-extra \
|
||||
kernel-uki-virt \
|
||||
/tmp/fsync-rpms/kernel-6*.rpm \
|
||||
/tmp/fsync-rpms/kernel-core-*.rpm \
|
||||
/tmp/fsync-rpms/kernel-modules-*.rpm \
|
||||
/tmp/fsync-rpms/kernel-uki-virt-*.rpm \
|
||||
; else \
|
||||
echo "will use kernel from ${KERNEL_FLAVOR} images" \
|
||||
; fi && \
|
||||
@ -129,115 +230,6 @@ RUN sed -i 's@enabled=0@enabled=1@g' /etc/yum.repos.d/_copr_ublue-os-akmods.repo
|
||||
sed -i 's@enabled=1@enabled=0@g' /etc/yum.repos.d/negativo17-fedora-multimedia.repo && \
|
||||
ostree container commit
|
||||
|
||||
# Update packages that commonly cause build issues
|
||||
RUN rpm-ostree override replace \
|
||||
--experimental \
|
||||
--from repo=updates \
|
||||
vulkan-loader \
|
||||
|| true && \
|
||||
rpm-ostree override replace \
|
||||
--experimental \
|
||||
--from repo=updates \
|
||||
alsa-lib \
|
||||
|| true && \
|
||||
rpm-ostree override replace \
|
||||
--experimental \
|
||||
--from repo=updates \
|
||||
gnutls \
|
||||
|| true && \
|
||||
rpm-ostree override replace \
|
||||
--experimental \
|
||||
--from repo=updates \
|
||||
glib2 \
|
||||
|| true && \
|
||||
rpm-ostree override replace \
|
||||
--experimental \
|
||||
--from repo=updates \
|
||||
gtk3 \
|
||||
|| true && \
|
||||
rpm-ostree override replace \
|
||||
--experimental \
|
||||
--from repo=updates \
|
||||
atk \
|
||||
at-spi2-atk \
|
||||
|| true && \
|
||||
rpm-ostree override replace \
|
||||
--experimental \
|
||||
--from repo=updates \
|
||||
libaom \
|
||||
|| true && \
|
||||
rpm-ostree override replace \
|
||||
--experimental \
|
||||
--from repo=updates \
|
||||
gstreamer1 \
|
||||
gstreamer1-plugins-base \
|
||||
|| true && \
|
||||
rpm-ostree override replace \
|
||||
--experimental \
|
||||
--from repo=updates \
|
||||
python3 \
|
||||
python3-libs \
|
||||
|| true && \
|
||||
rpm-ostree override replace \
|
||||
--experimental \
|
||||
--from repo=updates \
|
||||
libdecor \
|
||||
|| true && \
|
||||
rpm-ostree override replace \
|
||||
--experimental \
|
||||
--from repo=updates \
|
||||
libtirpc \
|
||||
|| true && \
|
||||
rpm-ostree override replace \
|
||||
--experimental \
|
||||
--from repo=updates \
|
||||
libuuid \
|
||||
|| true && \
|
||||
rpm-ostree override replace \
|
||||
--experimental \
|
||||
--from repo=updates \
|
||||
libblkid \
|
||||
|| true && \
|
||||
rpm-ostree override replace \
|
||||
--experimental \
|
||||
--from repo=updates \
|
||||
libmount \
|
||||
|| true && \
|
||||
rpm-ostree override replace \
|
||||
--experimental \
|
||||
--from repo=updates \
|
||||
cups-libs \
|
||||
|| true && \
|
||||
rpm-ostree override replace \
|
||||
--experimental \
|
||||
--from repo=updates \
|
||||
libinput \
|
||||
|| true && \
|
||||
rpm-ostree override replace \
|
||||
--experimental \
|
||||
--from repo=updates \
|
||||
libopenmpt \
|
||||
|| true && \
|
||||
rpm-ostree override replace \
|
||||
--experimental \
|
||||
--from repo=updates \
|
||||
llvm-libs \
|
||||
|| true && \
|
||||
rpm-ostree override replace \
|
||||
--experimental \
|
||||
--from repo=updates \
|
||||
zlib-ng-compat \
|
||||
|| true && \
|
||||
rpm-ostree override replace \
|
||||
--experimental \
|
||||
--from repo=updates \
|
||||
fontconfig \
|
||||
|| true && \
|
||||
rpm-ostree override remove \
|
||||
glibc32 \
|
||||
|| true && \
|
||||
ostree container commit
|
||||
|
||||
# Install Valve's patched Mesa, Pipewire, Bluez, and Xwayland
|
||||
# Install patched switcheroo control with proper discrete GPU support
|
||||
RUN rpm-ostree override remove \
|
||||
@ -635,7 +627,7 @@ RUN rm -f /etc/profile.d/toolbox.sh && \
|
||||
/usr/libexec/containerbuild/build-initramfs && \
|
||||
ostree container commit
|
||||
|
||||
FROM bazzite as bazzite-deck
|
||||
FROM bazzite AS bazzite-deck
|
||||
|
||||
ARG IMAGE_NAME="${IMAGE_NAME:-bazzite-deck}"
|
||||
ARG IMAGE_VENDOR="${IMAGE_VENDOR:-ublue-os}"
|
||||
@ -775,8 +767,9 @@ RUN /usr/libexec/containerbuild/image-info && \
|
||||
systemctl disable batterylimit.service && \
|
||||
ostree container commit
|
||||
|
||||
FROM ghcr.io/ublue-os/akmods-nvidia:${KERNEL_FLAVOR}-${FEDORA_MAJOR_VERSION} as nvidia-akmods
|
||||
FROM bazzite as bazzite-nvidia
|
||||
FROM ghcr.io/ublue-os/akmods-nvidia:${KERNEL_FLAVOR}-${FEDORA_MAJOR_VERSION} AS nvidia-akmods
|
||||
|
||||
FROM bazzite AS bazzite-nvidia
|
||||
|
||||
ARG IMAGE_NAME="${IMAGE_NAME:-bazzite-nvidia}"
|
||||
ARG IMAGE_VENDOR="${IMAGE_VENDOR:-ublue-os}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user