Refactor build process to use loop for scripts
Replaced individual RUN commands for build scripts with a loop to execute all scripts in the /ctx/build directory.
This commit is contained in:
+1
-24
@@ -60,31 +60,8 @@ RUN --mount=type=bind,from=ctx,source=/,target=/ctx \
|
|||||||
--mount=type=cache,dst=/var/cache \
|
--mount=type=cache,dst=/var/cache \
|
||||||
--mount=type=cache,dst=/var/log \
|
--mount=type=cache,dst=/var/log \
|
||||||
--mount=type=tmpfs,dst=/tmp \
|
--mount=type=tmpfs,dst=/tmp \
|
||||||
/ctx/build/10-repos.sh
|
for s in /ctx/build/*.sh; do echo "Running $s" && sh "$s" || exit 1; done
|
||||||
|
|
||||||
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/20-multimedia.sh
|
|
||||||
|
|
||||||
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/30-virt.sh
|
|
||||||
|
|
||||||
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/40-steam.sh
|
|
||||||
|
|
||||||
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/50-remove-packages-and-enable-Services.sh
|
|
||||||
|
|
||||||
# Deklaration der Verzeichnisse für systemd-tmpfiles, um bootc-Linting-Warnungen zu vermeiden.
|
# Deklaration der Verzeichnisse für systemd-tmpfiles, um bootc-Linting-Warnungen zu vermeiden.
|
||||||
# Dies stellt sicher, dass /var/lib/dnf und /var/lib/rpm beim Booten sauber existieren.
|
# Dies stellt sicher, dass /var/lib/dnf und /var/lib/rpm beim Booten sauber existieren.
|
||||||
|
|||||||
Reference in New Issue
Block a user