1
1
FROM quay.io/centos/centos:centos7
2
- LABEL maintainer=
"Deven Phillips <[email protected] >"
3
2
4
3
ARG ZAPROXY_VERSION="2.9.0"
5
- ARG WEBSWING_VERSION="2.5.10 "
4
+ ARG WEBSWING_VERSION="22.2 "
6
5
7
6
RUN yum install -y epel-release && \
8
7
yum clean all && \
@@ -14,7 +13,8 @@ RUN yum install -y epel-release && \
14
13
xorg-x11-server-Xvfb openbox xterm \
15
14
net-tools python-pip \
16
15
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 && \
18
18
yum clean all && \
19
19
curl https://bootstrap.pypa.io/pip/2.7/get-pip.py --output get-pip.py && chmod 755 get-pip.py && ./get-pip.py && \
20
20
pip install --upgrade pip && \
@@ -37,8 +37,11 @@ COPY .xinitrc /var/lib/jenkins/
37
37
38
38
WORKDIR /zap
39
39
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/} && \
42
45
touch AcceptedLicense && \
43
46
git clone --depth 1 --branch v${ZAPROXY_VERSION} https://github.com/zaproxy/zaproxy /tmp/zaproxy && \
44
47
rsync -av /tmp/zaproxy/docker/{policies,scripts,zap*} /zap/ && \
0 commit comments