Skip to content

Commit 8cf5000

Browse files
authored
fix: Add updated and supported Webswing to jenkins-agent-zap (#589)
1 parent 32de881 commit 8cf5000

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

jenkins-agents/jenkins-agent-zap/Dockerfile

+8-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
FROM quay.io/centos/centos:centos7
2-
LABEL maintainer="Deven Phillips <[email protected]>"
32

43
ARG ZAPROXY_VERSION="2.9.0"
5-
ARG WEBSWING_VERSION="2.5.10"
4+
ARG WEBSWING_VERSION="22.2"
65

76
RUN yum install -y epel-release && \
87
yum clean all && \
@@ -14,7 +13,8 @@ RUN yum install -y epel-release && \
1413
xorg-x11-server-Xvfb openbox xterm \
1514
net-tools python-pip \
1615
firefox nss_wrapper java-1.8.0-openjdk-headless \
17-
java-1.8.0-openjdk-devel nss_wrapper && \
16+
java-1.8.0-openjdk-devel nss_wrapper \
17+
unzip && \
1818
yum clean all && \
1919
curl https://bootstrap.pypa.io/pip/2.7/get-pip.py --output get-pip.py && chmod 755 get-pip.py && ./get-pip.py && \
2020
pip install --upgrade pip && \
@@ -37,8 +37,11 @@ COPY .xinitrc /var/lib/jenkins/
3737

3838
WORKDIR /zap
3939
RUN curl -sL https://github.com/zaproxy/zaproxy/releases/download/v${ZAPROXY_VERSION}/ZAP_${ZAPROXY_VERSION}_Linux.tar.gz | tar zx --strip-components=1 && \
40-
curl -sL https://bitbucket.org/meszarv/webswing/get/${WEBSWING_VERSION}.tar.gz | tar zx --strip-components=1 -C webswing && \
41-
rm -rf webswing/demo && \
40+
curl -sL -o /tmp/webswing.zip https://dev.webswing.org/files/public/webswing-examples-eval-${WEBSWING_VERSION}-distribution.zip && \
41+
UNZIP_DISABLE_ZIPBOMB_DETECTION=TRUE unzip /tmp/webswing.zip && \
42+
rm /tmp/webswing.zip && \
43+
mv webswing-* webswing && \
44+
rm -rf webswing/{demo,apps/} && \
4245
touch AcceptedLicense && \
4346
git clone --depth 1 --branch v${ZAPROXY_VERSION} https://github.com/zaproxy/zaproxy /tmp/zaproxy && \
4447
rsync -av /tmp/zaproxy/docker/{policies,scripts,zap*} /zap/ && \

0 commit comments

Comments
 (0)