Files
HomeAssistantAddons/gvm/Dockerfile
Martin cf43143810 Add GVM (OpenVAS) add-on initialization script
- Create a new script `run.sh` for initializing and launching the GVM add-on.
- Ensure required environment variables `USERNAME` and `PASSWORD` are set.
- Set the timezone if the `TZ` variable is provided.
- Initialize a data directory at `/data` if it does not exist.
- Launch the GVM service and log output to a file.

fix(sonarqube): fix config.json
2025-05-07 11:01:10 +02:00

22 lines
462 B
Docker

# Use official GVM image
FROM netizensoc/gvm-scanner:latest
LABEL io.hass.name="GVM Scanner"
LABEL io.hass.description="un a GVM (OpenVAS) scanner as a Home Assistant add-on."
LABEL io.hass.arch="amd64|aarch64"
LABEL io.hass.type="addon"
LABEL io.hass.version="0.0.1-beta"
# Set timezone
ENV TZ=Europe/Rome
# Copy the entrypoint script
COPY run.sh /run.sh
RUN chmod +x /run.sh
# Expose default GVM Web UI port
EXPOSE 9392
# Set entrypoint
CMD [ "/run.sh" ]