Skip to content

Fix cross-compile Docker build installation of zap #130

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,13 @@ RUN curl -L https://github.com/plantuml/plantuml/releases/download/v1.2022.0/pla
ENV PLANTUML_JAR_PATH=/opt/plantuml.jar

# Install ZAP and dependencies
RUN wget -O /tmp/zap.deb https://github.com/project-chip/zap/releases/download/v2023.05.04/zap-linux.deb \
&& echo a9ef0608035a106d4df4dd126490546cf8ba5d7cd13039a18d19cd3edd418a47 /tmp/zap.deb > /tmp/zap.deb.sha256 \
&& sha256sum -c /tmp/zap.deb.sha256\
&& apt update \
&& apt install -y --no-install-recommends /tmp/zap.deb \
&& rm -rf /var/lib/apt/lists/*
RUN wget -O /tmp/zap.zip https://github.com/project-chip/zap/releases/download/v2025.06.09/zap-linux-arm64.zip \
Copy link
Collaborator

@rzr rzr Jul 7, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

may the URL passed as docker build --build-arg ZAP_APP_URL

&& echo e0457d340965e153d84ca41addc257a8e4f6b4c1c8dfdb7d105779110e6d8451 /tmp/zap.zip > /tmp/zap.zip.sha256 \
Copy link
Collaborator

@rzr rzr Jul 7, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and ZAP_APP_SHA256

&& sha256sum -c /tmp/zap.zip.sha256 \
&& unzip /tmp/zap.zip -d /opt/ \
&& rm /tmp/zap.zip \
&& mv /opt/zap-* /opt/zap
ENV PATH="/opt/zap/bin:${PATH}"

# Install Clang toolchain
RUN if [ "$CLANG" = true ] ; then \
Expand Down