You've already forked fedora-bootc
Initial commit with toolbox-specific changes
This commit is contained in:
@@ -1,24 +1,17 @@
|
||||
ARG FEDORA_BASE=42
|
||||
ARG FEDORA_BASE=43
|
||||
ARG HOST_SPAWN=v1.6.2
|
||||
|
||||
# Allow build scripts to be referenced without being copied into the final image
|
||||
FROM scratch AS ctx
|
||||
|
||||
COPY build_files /
|
||||
COPY /sys_files /sys_files
|
||||
COPY cosign.pub /cosign.pub
|
||||
|
||||
# Base Image
|
||||
FROM quay.io/fedora-ostree-desktops/silverblue:$FEDORA_BASE
|
||||
FROM registry.fedoraproject.org/fedora-toolbox:$FEDORA_BASE
|
||||
|
||||
### [IM]MUTABLE /opt
|
||||
## Some bootable images, like Fedora, have /opt symlinked to /var/opt, in order to
|
||||
## make it mutable/writable for users. However, some packages write files to this directory,
|
||||
## thus its contents might be wiped out when bootc deploys an image, making it troublesome for
|
||||
## some packages. Eg, google-chrome, docker-desktop.
|
||||
##
|
||||
## Uncomment the following line if one desires to make /opt immutable and be able to be used
|
||||
## by the package manager.
|
||||
|
||||
RUN rm /opt && mkdir /opt
|
||||
ENV HOST_SPAWN=$HOST_SPAWN
|
||||
|
||||
### MODIFICATIONS
|
||||
## make modifications desired in your image and install packages by modifying the build.sh script
|
||||
@@ -28,7 +21,7 @@ RUN --mount=type=bind,from=ctx,source=/,target=/ctx \
|
||||
--mount=type=cache,dst=/var/cache \
|
||||
--mount=type=cache,dst=/var/log \
|
||||
--mount=type=tmpfs,dst=/tmp \
|
||||
/ctx/build.sh && /ctx/cleanup.sh
|
||||
/ctx/build.sh
|
||||
|
||||
### LINTING
|
||||
## Verify final image and contents are correct.
|
||||
|
||||
Reference in New Issue
Block a user