fix: safer find|xargs
Some checks failed
Docker Image CI / build-and-push (map[build-args:[] context:./ dockerfile:Dockerfile.piped image_name:piped]) (push) Failing after 5s
Docker Image CI / build-and-push (map[build-args:[WITH_JDK=false] context:./ dockerfile:Dockerfile.openj9 image_name:openj9]) (push) Successful in 9m48s

This commit is contained in:
DarkCat09 2025-03-13 20:22:27 +04:00
parent 6b3da81ed3
commit ad6acfeaf9
Signed by: DarkCat09
SSH key fingerprint: SHA256:SnH1iYY/ogxxRmt1I6piy+aVUUzrOWvfksQWfhZ8JUM

View file

@ -18,7 +18,7 @@ RUN mkdir /build/bootjdk /build/dist \
&& tar -xzf jdk21.tar.gz --directory=/build/bootjdk --strip-components=1 \ && tar -xzf jdk21.tar.gz --directory=/build/bootjdk --strip-components=1 \
&& rm -f jdk21.tar.gz && rm -f jdk21.tar.gz
RUN find /build/bootjdk -name '*.so' | xargs execstack -c RUN find /build/bootjdk -name '*.so' -type f -print0 | xargs -0 -- execstack -c
RUN git clone --single-branch --depth 1 \ RUN git clone --single-branch --depth 1 \
https://github.com/ibmruntimes/openj9-openjdk-jdk21.git \ https://github.com/ibmruntimes/openj9-openjdk-jdk21.git \