Skip to content

Commit

Permalink
Use wildcard to avoid missing directory errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Stringy committed Nov 30, 2023
1 parent b6b752c commit 1c9bac7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 13 deletions.
2 changes: 1 addition & 1 deletion ansible/group_vars/all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ virtual_machines:
rhel:
project: rhel-cloud
families:
- rhel-8
#- rhel-8
- rhel-9

rhel-arm64:
Expand Down
21 changes: 9 additions & 12 deletions kernel-modules/container/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,33 +21,30 @@ RUN /partition-probes.py "0" "${max_layer_size}" "." "/layers" && \
xargs -a "$i" mv -t "$(basename "$i")" ; \
done

FROM ${base_image} as probe-layer-0
RUN echo "Zero drivers layer"

# Probes are split across multiple layers to limit blob size
FROM ${base_image} AS probe-layer-1
COPY --from=kernel-modules /kernel-modules/0 /kernel-modules/
COPY --from=kernel-modules /kernel-modules/0* /kernel-modules/

FROM probe-layer-1 AS probe-layer-2
COPY --from=kernel-modules /kernel-modules/1 /kernel-modules/
COPY --from=kernel-modules /kernel-modules/1* /kernel-modules/

FROM probe-layer-2 AS probe-layer-3
COPY --from=kernel-modules /kernel-modules/2 /kernel-modules/
COPY --from=kernel-modules /kernel-modules/2* /kernel-modules/

FROM probe-layer-3 AS probe-layer-4
COPY --from=kernel-modules /kernel-modules/3 /kernel-modules/
COPY --from=kernel-modules /kernel-modules/3* /kernel-modules/

FROM probe-layer-4 AS probe-layer-5
COPY --from=kernel-modules /kernel-modules/4 /kernel-modules/
COPY --from=kernel-modules /kernel-modules/4* /kernel-modules/

FROM probe-layer-5 AS probe-layer-6
COPY --from=kernel-modules /kernel-modules/5 /kernel-modules/
COPY --from=kernel-modules /kernel-modules/5* /kernel-modules/

FROM probe-layer-6 AS probe-layer-7
COPY --from=kernel-modules /kernel-modules/6 /kernel-modules/
COPY --from=kernel-modules /kernel-modules/6* /kernel-modules/

FROM probe-layer-7 AS probe-layer-8
COPY --from=kernel-modules /kernel-modules/7 /kernel-modules/
COPY --from=kernel-modules /kernel-modules/7* /kernel-modules/

FROM probe-layer-8 AS probe-layer-9
COPY --from=kernel-modules /kernel-modules/8 /kernel-modules/
COPY --from=kernel-modules /kernel-modules/8* /kernel-modules/

0 comments on commit 1c9bac7

Please sign in to comment.