mirror-ublue-os-akmods/extended.Containerfile
dhoell 4e1267c261 - New akmods build infra
- Builds ublue-os/ublue-akmods-others (just a cache) and ublue-os/{silverblue,...}-extended
- build-others.{sh,Containerfile} work similiar to ublue-os/nvidia
- The akmods signing key is installed with ublue-os-akmods-key.spec, which was previously installed in ublue-os-nvidia-addons.spec
- Just is now installed in -main and wont be build/installed here or in -nvidia, instead the default justfile is extended with justfile-akmods
2023-03-23 17:04:49 +01:00

23 lines
778 B
Text

ARG IMAGE_NAME="${IMAGE_NAME:-silverblue}"
ARG SOURCE_IMAGE="${SOURCE_IMAGE:-silverblue}"
ARG BASE_IMAGE="ghcr.io/dhoell/${SOURCE_IMAGE}"
ARG FEDORA_MAJOR_VERSION="${FEDORA_MAJOR_VERSION:-37}"
FROM ${BASE_IMAGE}:${FEDORA_MAJOR_VERSION} AS builder
ARG IMAGE_NAME="${IMAGE_NAME}"
ARG FEDORA_MAJOR_VERSION="${FEDORA_MAJOR_VERSION}"
ARG AKMOD_OTHERS="ghcr.io/dhoell/ublue-akmod-others"
ARG AKMODS_VERSION="${FEDORA_MAJOR_VERSION}"
COPY --from=${AKMOD_OTHERS}:${AKMODS_VERSION} / .
ADD justfile-akmods /tmp/justfile-akmods
RUN cat /tmp/justfile-akmods >> /usr/share/ublue-os/ublue-os-just/justfile
ADD extended-install.sh /tmp/extended-install.sh
RUN /tmp/extended-install.sh
RUN rm -rf /tmp/* /var/*
RUN ostree container commit
RUN mkdir -p /var/tmp && chmod -R 1777 /var/tmp