Skip to content

Commit b2c9977

Browse files
committed
Fix: pip installation in smoketest
When using pip it is not as easy as previously to use system packages. Therefore only pip is used.
1 parent b3420d7 commit b2c9977

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

smoketest/Dockerfile

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,10 @@ FROM greenbone/openvas-scanner:unstable
1212
RUN apt-get update && apt-get install --no-install-recommends --no-install-suggests -y \
1313
mosquitto \
1414
redis \
15+
gcc \
16+
python3-dev \
1517
python3 \
1618
python3-pip \
17-
python3-setuptools \
18-
python3-packaging \
19-
python3-wrapt \
20-
python3-cffi \
21-
python3-psutil \
22-
python3-lxml \
23-
python3-defusedxml \
24-
python3-redis \
25-
python3-gnupg \
26-
python3-paho-mqtt \
2719
openssh-server &&\
2820
apt-get remove --purge --auto-remove -y &&\
2921
rm -rf /var/lib/apt/lists/*
@@ -40,7 +32,7 @@ RUN chown gvm:redis /var/run/ospd
4032
RUN touch /etc/openvas/openvas_log.conf
4133
RUN chown gvm:redis /etc/openvas/openvas_log.conf
4234
WORKDIR /usr/local/src/ospd-openvas
43-
RUN python3 -m pip install .
35+
RUN python3 -m pip install --break-system-packages .
4436
RUN chown gvm:redis /var/log/gvm
4537
RUN mkdir /run/mosquitto
4638
RUN echo "allow_anonymous true" >> /etc/mosquitto.conf
@@ -66,7 +58,7 @@ RUN mv /usr/local/src/plugins /var/lib/openvas/plugins
6658
RUN cp -r /usr/local/src/ospd-openvas/smoketest/data/plugins/* /var/lib/openvas/plugins
6759

6860
RUN rm -rf /usr/local/src/ospd-openvas
69-
RUN apt-get remove --purge --auto-remove -y python3-pip python3-packaging
61+
RUN apt-get remove --purge --auto-remove -y python3-pip
7062
RUN chown -R gvm:redis /var/lib/openvas/plugins/
7163
RUN mkdir /run/sshd
7264
# make gvm capable of running sshd

0 commit comments

Comments
 (0)