-
-
Notifications
You must be signed in to change notification settings - Fork 105
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
5 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -90,14 +90,14 @@ RUN bash /branding/branding.sh | |
COPY scripts/* /scripts/ | ||
#RUN apt update && apt install libcap2-bin net-tools -y | ||
# allow openvas to access raw sockets and all kind of network related tasks | ||
RUN setcap cap_net_raw,cap_net_admin+eip /usr/local/sbin/openvas | ||
#RUN setcap cap_net_raw,cap_net_admin+eip /usr/local/sbin/openvas | ||
# allow nmap to send e.g. UDP or TCP SYN probes without root permissions | ||
ENV NMAP_PRIVILEGED=1 | ||
RUN setcap cap_net_raw,cap_net_admin,cap_net_bind_service+eip /usr/bin/nmap | ||
#ENV NMAP_PRIVILEGED=1 | ||
#RUN setcap cap_net_raw,cap_net_admin,cap_net_bind_service+eip /usr/bin/nmap | ||
|
||
# Healthcheck needs be an on image script that will know what service is running and check it. | ||
# Current image function stored in /usr/local/etc/running-as | ||
HEALTHCHECK --interval=60s --start-period=300s --timeout=10s \ | ||
HEALTHCHECK --interval=300s --start-period=300s --timeout=120s \ | ||
CMD /scripts/healthcheck.sh || exit 1 | ||
ENTRYPOINT [ "/scripts/start.sh" ] | ||
|
||
|
@@ -109,12 +109,9 @@ LABEL maintainer="[email protected]" \ | |
|
||
COPY base.sql.xz /usr/lib/base.sql.xz | ||
COPY var-lib.tar.xz /usr/lib/var-lib.tar.xz | ||
# packages to add to ovasbase | ||
#RUN apt-get update && apt-get -y install libpaho-mqtt-dev python3-paho-mqtt gir1.2-json-1.0 libjson-glib-1.0-0 libjson-glib-1.0-common | ||
COPY scripts/* /scripts/ | ||
#RUN apt update && apt -y install libmicrohttpd12 libnet1 libgssapi3-heimdal libhdb9-heimdal libical3 libpaho-mqtt1.3 libradcli4 libssh-gcrypt-4 libhiredis0.14 | ||
# Healthcheck needs be an on image script that will know what service is running and check it. | ||
# Current image function stored in /usr/local/etc/running-as | ||
HEALTHCHECK --interval=300s --start-period=300s --timeout=120s \ | ||
CMD /scripts/healthcheck.sh || exit 1 | ||
ENTRYPOINT [ "/scripts/start.sh" ] | ||
ENTRYPOINT [ "/scripts/start.sh" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,6 @@ libradcli4 | |
libssh-gcrypt-4 | ||
mosquitto | ||
net-tools | ||
net-tools | ||
nmap | ||
nsis | ||
openssh-client | ||
|