feat: add all packages and files
This commit is contained in:
parent
19bfa6dbb5
commit
310ac97c56
6 changed files with 130 additions and 11 deletions
|
@ -2,7 +2,7 @@
|
|||
# These allow changing the produced image by passing different build args to adjust
|
||||
# the source from which your image is built.
|
||||
# Build args can be provided on the commandline when building locally with:
|
||||
# podman build -f Containerfile --build-arg FEDORA_VERSION=40 -t local-image
|
||||
# podman build -f Containerfile --build-arg FEDORA_MAJOR_VERSION=40 -t local-image
|
||||
|
||||
# SOURCE_IMAGE arg can be anything from ublue upstream which matches your desired version:
|
||||
# See list here: https://github.com/orgs/ublue-os/packages?repo_name=main
|
||||
|
@ -15,7 +15,7 @@
|
|||
# - "base"
|
||||
#
|
||||
# "aurora", "bazzite", "bluefin" or "ucore" may also be used but have different suffixes.
|
||||
ARG SOURCE_IMAGE="silverblue"
|
||||
ARG SOURCE_IMAGE="base"
|
||||
|
||||
## SOURCE_SUFFIX arg should include a hyphen and the appropriate suffix name
|
||||
# These examples all work for silverblue/kinoite/sericea/onyx/lazurite/vauxite/base
|
||||
|
@ -33,25 +33,36 @@ ARG SOURCE_IMAGE="silverblue"
|
|||
# - stable-zfs
|
||||
# - stable-nvidia-zfs
|
||||
# - (and the above with testing rather than stable)
|
||||
ARG SOURCE_SUFFIX="-main"
|
||||
ARG SOURCE_SUFFIX="-nvidia"
|
||||
|
||||
## SOURCE_TAG arg must be a version built for the specific image: eg, 39, 40, gts, latest
|
||||
ARG SOURCE_TAG="latest"
|
||||
|
||||
ARG FEDORA_MAJOR_VERSION="${FEDORA_MAJOR_VERSION:-40}"
|
||||
|
||||
### 2. SOURCE IMAGE
|
||||
## this is a standard Containerfile FROM using the build ARGs above to select the right upstream image
|
||||
FROM ghcr.io/ublue-os/${SOURCE_IMAGE}${SOURCE_SUFFIX}:${SOURCE_TAG}
|
||||
|
||||
ARG FEDORA_MAJOR_VERSION="${FEDORA_MAJOR_VERSION}"
|
||||
|
||||
### 3. MODIFICATIONS
|
||||
## make modifications desired in your image and install packages by modifying the build.sh script
|
||||
## the following RUN directive does all the things required to run "build.sh" as recommended.
|
||||
|
||||
COPY --from=ghcr.io/ublue-os/config:latest /files/ublue-os-just /
|
||||
COPY --from=ghcr.io/ublue-os/config:latest /files/ublue-os-udev-rules /
|
||||
COPY --from=ghcr.io/ublue-os/config:latest /files/ublue-os-update-services /
|
||||
COPY --from=ghcr.io/ublue-os/bluefin:latest /usr/share/fish /usr/share/fish
|
||||
COPY files /
|
||||
COPY build.sh /tmp/build.sh
|
||||
COPY packages /tmp/packages
|
||||
|
||||
RUN mkdir -p /var/lib/alternatives && \
|
||||
/tmp/build.sh && \
|
||||
fc-cache --system-only --really-force --verbose && \
|
||||
mkdir -p /var/tmp && \
|
||||
chmod -R 1777 /var/tmp && \
|
||||
ostree container commit
|
||||
## NOTES:
|
||||
# - /var/lib/alternatives is required to prevent failure with some RPM installs
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue