2026-04-03 11:34:39 -08:00
|
|
|
ARG BASE_IMAGE_ORG
|
|
|
|
|
ARG BASE_IMAGE_NAME
|
2026-02-27 08:51:50 -09:00
|
|
|
ARG BASE_IMAGE="${BASE_IMAGE_ORG}/${BASE_IMAGE_NAME}"
|
2026-04-03 11:34:39 -08:00
|
|
|
ARG FEDORA_MAJOR_VERSION
|
|
|
|
|
ARG AKMODS_FLAVOR
|
|
|
|
|
ARG KERNEL
|
2026-06-13 08:17:24 -08:00
|
|
|
ARG COMMON
|
|
|
|
|
ARG BREW
|
2026-02-27 08:51:50 -09:00
|
|
|
|
2026-06-13 08:17:24 -08:00
|
|
|
FROM ${COMMON} AS common
|
|
|
|
|
FROM ${BREW} AS brew
|
2026-02-27 08:51:50 -09:00
|
|
|
|
|
|
|
|
FROM ghcr.io/ublue-os/akmods:${AKMODS_FLAVOR}-${FEDORA_MAJOR_VERSION}-${KERNEL} AS akmods
|
|
|
|
|
|
|
|
|
|
#if defined(NVIDIA)
|
|
|
|
|
FROM ghcr.io/ublue-os/akmods-nvidia-open:${AKMODS_FLAVOR}-${FEDORA_MAJOR_VERSION}-${KERNEL} AS akmods-nvidia-open
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
FROM scratch AS ctx
|
2026-08-08 21:58:24 -08:00
|
|
|
COPY /build_scripts /build_scripts
|
2026-09-12 08:02:11 -08:00
|
|
|
COPY /build_files /build_files
|
2026-02-27 08:51:50 -09:00
|
|
|
|
|
|
|
|
# /* https://github.com/get-aurora-dev/common */
|
|
|
|
|
COPY --from=common /logos /system_files/shared
|
|
|
|
|
COPY --from=common /system_files /system_files
|
|
|
|
|
COPY --from=common /wallpapers /system_files/shared
|
|
|
|
|
|
|
|
|
|
# /* https://github.com/ublue-os/brew */
|
|
|
|
|
COPY --from=brew /system_files /system_files/shared
|
|
|
|
|
|
|
|
|
|
COPY /system_files /system_files
|
|
|
|
|
|
|
|
|
|
# /* aurora image section */
|
|
|
|
|
FROM ${BASE_IMAGE}:${FEDORA_MAJOR_VERSION} AS base
|
|
|
|
|
|
|
|
|
|
ARG AKMODS_FLAVOR="main"
|
|
|
|
|
ARG BASE_IMAGE_NAME="${BASE_IMAGE_NAME}"
|
|
|
|
|
ARG FEDORA_MAJOR_VERSION=""
|
|
|
|
|
ARG IMAGE_NAME="aurora"
|
|
|
|
|
ARG IMAGE_VENDOR="ublue-os"
|
|
|
|
|
ARG KERNEL=""
|
2026-06-07 08:15:54 -08:00
|
|
|
ARG SHA_HEAD_SHORT=""
|
2026-02-27 08:51:50 -09:00
|
|
|
ARG UBLUE_IMAGE_TAG="latest"
|
|
|
|
|
ARG VERSION=""
|
|
|
|
|
ARG IMAGE_FLAVOR=""
|
|
|
|
|
|
|
|
|
|
# /* so ghcurl wrapper is available to all later RUNs */
|
|
|
|
|
ENV PATH="/tmp/scripts/helpers:${PATH}"
|
|
|
|
|
|
|
|
|
|
# /* Install Packages, miscellaneous things that need a network */
|
|
|
|
|
|
2026-09-25 07:05:12 -08:00
|
|
|
# /* aurora, no nvidia */
|
|
|
|
|
#if !defined(NVIDIA)
|
2026-02-27 08:51:50 -09:00
|
|
|
RUN --mount=type=tmpfs,dst=/boot \
|
|
|
|
|
--mount=type=tmpfs,dst=/var \
|
|
|
|
|
--mount=type=bind,from=ctx,source=/,target=/ctx \
|
|
|
|
|
--mount=type=cache,dst=/var/cache/libdnf5 \
|
|
|
|
|
--mount=type=bind,from=akmods,src=/kernel-rpms,dst=/tmp/kernel-rpms \
|
|
|
|
|
--mount=type=bind,from=akmods,src=/rpms/common,dst=/tmp/rpms/common \
|
|
|
|
|
--mount=type=bind,from=akmods,src=/rpms/kmods,dst=/tmp/rpms/kmods \
|
|
|
|
|
--mount=type=secret,id=GITHUB_TOKEN \
|
2026-08-09 11:11:44 -08:00
|
|
|
/ctx/build_scripts/shared/build-prep.sh && \
|
2026-08-08 21:58:24 -08:00
|
|
|
/ctx/build_scripts/base/01-packages.sh && \
|
|
|
|
|
/ctx/build_scripts/base/02-install-common-kernel-akmods.sh && \
|
|
|
|
|
/ctx/build_scripts/base/03-fetch.sh
|
2026-02-27 08:51:50 -09:00
|
|
|
#endif
|
|
|
|
|
|
2026-09-25 07:05:12 -08:00
|
|
|
# /* aurora-nvidia-open */
|
|
|
|
|
#if defined(NVIDIA)
|
2026-02-27 08:51:50 -09:00
|
|
|
RUN --mount=type=tmpfs,dst=/boot \
|
|
|
|
|
--mount=type=tmpfs,dst=/var \
|
|
|
|
|
--mount=type=bind,from=ctx,source=/,target=/ctx \
|
|
|
|
|
--mount=type=cache,dst=/var/cache/libdnf5 \
|
|
|
|
|
--mount=type=bind,from=akmods,src=/kernel-rpms,dst=/tmp/kernel-rpms \
|
|
|
|
|
--mount=type=bind,from=akmods,src=/rpms/common,dst=/tmp/rpms/common \
|
|
|
|
|
--mount=type=bind,from=akmods,src=/rpms/kmods,dst=/tmp/rpms/kmods \
|
|
|
|
|
--mount=type=bind,from=akmods-nvidia-open,src=/rpms,dst=/tmp/rpms/nvidia \
|
|
|
|
|
--mount=type=secret,id=GITHUB_TOKEN \
|
2026-08-09 11:11:44 -08:00
|
|
|
/ctx/build_scripts/shared/build-prep.sh && \
|
2026-08-08 21:58:24 -08:00
|
|
|
/ctx/build_scripts/base/01-packages.sh && \
|
|
|
|
|
/ctx/build_scripts/base/02-install-common-kernel-akmods.sh && \
|
|
|
|
|
/ctx/build_scripts/base/03-fetch.sh && \
|
|
|
|
|
/ctx/build_scripts/base/04-nvidia.sh
|
2026-02-27 08:51:50 -09:00
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
# /* Everything that can be done offline after things are in place should be done here */
|
|
|
|
|
RUN --network=none \
|
|
|
|
|
--mount=type=tmpfs,dst=/boot \
|
|
|
|
|
--mount=type=bind,from=ctx,source=/,target=/ctx \
|
2026-08-08 21:58:24 -08:00
|
|
|
/ctx/build_scripts/base/16-override-install.sh && \
|
|
|
|
|
/ctx/build_scripts/base/17-cleanup.sh && \
|
|
|
|
|
/ctx/build_scripts/base/18-image-info.sh && \
|
|
|
|
|
/ctx/build_scripts/base/19-initramfs.sh && \
|
|
|
|
|
/ctx/build_scripts/shared/validate-repos.sh && \
|
|
|
|
|
/ctx/build_scripts/shared/clean-stage.sh && \
|
2026-08-09 11:11:44 -08:00
|
|
|
/ctx/build_scripts/shared/chunkah-xattr.sh && \
|
2026-08-08 21:58:24 -08:00
|
|
|
/ctx/build_scripts/base/20-tests.sh
|
2026-02-27 08:51:50 -09:00
|
|
|
|
|
|
|
|
CMD ["/sbin/init"]
|
|
|
|
|
|
2026-03-06 08:28:19 -09:00
|
|
|
RUN --network=none \
|
2026-07-25 19:27:44 -08:00
|
|
|
bootc container lint --fatal-warnings --no-truncate
|