- 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
22 lines
462 B
Docker
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" ]
|