2025-06-06 11:11:58 -04:00
|
|
|
# This injects some extra testing stuff into our image
|
2025-05-02 10:56:01 -04:00
|
|
|
|
|
|
|
|
FROM scratch as context
|
|
|
|
|
# We only need this stuff in the initial context
|
|
|
|
|
COPY hack /hack
|
2025-01-17 09:54:35 -05:00
|
|
|
COPY contrib /contrib
|
2025-05-02 10:56:01 -04:00
|
|
|
|
2025-06-06 11:11:58 -04:00
|
|
|
FROM localhost/bootc
|
2024-06-16 12:10:00 +00:00
|
|
|
# We support e.g. adding cloud-init
|
2024-06-09 10:17:55 -04:00
|
|
|
ARG variant=
|
2025-05-02 10:56:01 -04:00
|
|
|
# And this layer has additional stuff for testing, such as nushell etc.
|
|
|
|
|
RUN --mount=type=bind,from=context,target=/run/context <<EORUN
|
|
|
|
|
set -xeuo pipefail
|
|
|
|
|
/run/context/hack/provision-derived.sh "$variant"
|
|
|
|
|
# Add some testing kargs into our dev builds
|
|
|
|
|
install -D -t /usr/lib/bootc/kargs.d /run/context/hack/test-kargs/*
|
2024-06-16 12:10:00 +00:00
|
|
|
# Also copy in some default install configs we use for testing
|
2025-05-02 10:56:01 -04:00
|
|
|
install -D -t /usr/lib/bootc/install/ /run/context/hack/install-test-configs/*
|
|
|
|
|
# Finally, test our own linting
|
|
|
|
|
bootc container lint --fatal-warnings
|
|
|
|
|
EORUN
|