Skip to content

Commit

Permalink
Fix: pip installation in smoketest
Browse files Browse the repository at this point in the history
When using pip it is not as easy as previously to
use system packages. Therefore only pip is used.
  • Loading branch information
nichtsfrei committed Jul 10, 2023
1 parent b3420d7 commit b2c9977
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions smoketest/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,10 @@ FROM greenbone/openvas-scanner:unstable
RUN apt-get update && apt-get install --no-install-recommends --no-install-suggests -y \
mosquitto \
redis \
gcc \
python3-dev \
python3 \
python3-pip \
python3-setuptools \
python3-packaging \
python3-wrapt \
python3-cffi \
python3-psutil \
python3-lxml \
python3-defusedxml \
python3-redis \
python3-gnupg \
python3-paho-mqtt \
openssh-server &&\
apt-get remove --purge --auto-remove -y &&\
rm -rf /var/lib/apt/lists/*
Expand All @@ -40,7 +32,7 @@ RUN chown gvm:redis /var/run/ospd
RUN touch /etc/openvas/openvas_log.conf
RUN chown gvm:redis /etc/openvas/openvas_log.conf
WORKDIR /usr/local/src/ospd-openvas
RUN python3 -m pip install .
RUN python3 -m pip install --break-system-packages .
RUN chown gvm:redis /var/log/gvm
RUN mkdir /run/mosquitto
RUN echo "allow_anonymous true" >> /etc/mosquitto.conf
Expand All @@ -66,7 +58,7 @@ RUN mv /usr/local/src/plugins /var/lib/openvas/plugins
RUN cp -r /usr/local/src/ospd-openvas/smoketest/data/plugins/* /var/lib/openvas/plugins

RUN rm -rf /usr/local/src/ospd-openvas
RUN apt-get remove --purge --auto-remove -y python3-pip python3-packaging
RUN apt-get remove --purge --auto-remove -y python3-pip
RUN chown -R gvm:redis /var/lib/openvas/plugins/
RUN mkdir /run/sshd
# make gvm capable of running sshd
Expand Down

0 comments on commit b2c9977

Please sign in to comment.