[#389] house naming: container_name for all 21 GVM services (ukrrs-oam-gvm-*)
ci / audit (push) Successful in 23s

https://projects.knownelement.com/issues/389
This commit is contained in:
2026-09-05 07:27:05 -05:00
parent 70142d8f60
commit 2d75a3865f
2 changed files with 22 additions and 1 deletions
+21
View File
@@ -3,6 +3,7 @@ name: greenbone-community-edition
services: services:
vulnerability-tests: vulnerability-tests:
image: registry.community.greenbone.net/community/vulnerability-tests image: registry.community.greenbone.net/community/vulnerability-tests
container_name: ukrrs-oam-gvm-vulnerability-tests
environment: environment:
FEED_RELEASE: "24.10" FEED_RELEASE: "24.10"
KEEP_ALIVE: 1 KEEP_ALIVE: 1
@@ -11,6 +12,7 @@ services:
notus-data: notus-data:
image: registry.community.greenbone.net/community/notus-data image: registry.community.greenbone.net/community/notus-data
container_name: ukrrs-oam-gvm-notus-data
environment: environment:
KEEP_ALIVE: 1 KEEP_ALIVE: 1
volumes: volumes:
@@ -18,6 +20,7 @@ services:
scap-data: scap-data:
image: registry.community.greenbone.net/community/scap-data image: registry.community.greenbone.net/community/scap-data
container_name: ukrrs-oam-gvm-scap-data
environment: environment:
KEEP_ALIVE: 1 KEEP_ALIVE: 1
volumes: volumes:
@@ -25,6 +28,7 @@ services:
cert-bund-data: cert-bund-data:
image: registry.community.greenbone.net/community/cert-bund-data image: registry.community.greenbone.net/community/cert-bund-data
container_name: ukrrs-oam-gvm-cert-bund-data
environment: environment:
KEEP_ALIVE: 1 KEEP_ALIVE: 1
volumes: volumes:
@@ -32,6 +36,7 @@ services:
dfn-cert-data: dfn-cert-data:
image: registry.community.greenbone.net/community/dfn-cert-data image: registry.community.greenbone.net/community/dfn-cert-data
container_name: ukrrs-oam-gvm-dfn-cert-data
environment: environment:
KEEP_ALIVE: 1 KEEP_ALIVE: 1
volumes: volumes:
@@ -42,6 +47,7 @@ services:
data-objects: data-objects:
image: registry.community.greenbone.net/community/data-objects image: registry.community.greenbone.net/community/data-objects
container_name: ukrrs-oam-gvm-data-objects
environment: environment:
FEED_RELEASE: "24.10" FEED_RELEASE: "24.10"
KEEP_ALIVE: 1 KEEP_ALIVE: 1
@@ -50,6 +56,7 @@ services:
report-formats: report-formats:
image: registry.community.greenbone.net/community/report-formats image: registry.community.greenbone.net/community/report-formats
container_name: ukrrs-oam-gvm-report-formats
environment: environment:
FEED_RELEASE: "24.10" FEED_RELEASE: "24.10"
KEEP_ALIVE: 1 KEEP_ALIVE: 1
@@ -61,11 +68,13 @@ services:
gpg-data: gpg-data:
image: registry.community.greenbone.net/community/gpg-data image: registry.community.greenbone.net/community/gpg-data
container_name: ukrrs-oam-gvm-gpg-data
volumes: volumes:
- gpg_data_vol:/mnt - gpg_data_vol:/mnt
redis-server: redis-server:
image: registry.community.greenbone.net/community/redis-server image: registry.community.greenbone.net/community/redis-server
container_name: ukrrs-oam-gvm-redis-server
deploy: deploy:
restart_policy: restart_policy:
condition: any condition: any
@@ -74,6 +83,7 @@ services:
pg-gvm: pg-gvm:
image: registry.community.greenbone.net/community/pg-gvm:stable image: registry.community.greenbone.net/community/pg-gvm:stable
container_name: ukrrs-oam-gvm-pg-gvm
deploy: deploy:
restart_policy: restart_policy:
condition: any condition: any
@@ -86,6 +96,7 @@ services:
pg-gvm-migrator: pg-gvm-migrator:
image: registry.community.greenbone.net/community/pg-gvm-migrator:stable image: registry.community.greenbone.net/community/pg-gvm-migrator:stable
container_name: ukrrs-oam-gvm-pg-gvm-migrator
deploy: deploy:
restart_policy: restart_policy:
condition: none condition: none
@@ -95,6 +106,7 @@ services:
gvmd: gvmd:
image: registry.community.greenbone.net/community/gvmd:stable image: registry.community.greenbone.net/community/gvmd:stable
container_name: ukrrs-oam-gvm-gvmd
deploy: deploy:
restart_policy: restart_policy:
condition: any condition: any
@@ -124,6 +136,7 @@ services:
gsa: gsa:
image: registry.community.greenbone.net/community/gsa:stable-slim image: registry.community.greenbone.net/community/gsa:stable-slim
container_name: ukrrs-oam-gvm-gsa
environment: environment:
MOUNT_PATH: "/mnt/web" MOUNT_PATH: "/mnt/web"
KEEP_ALIVE: 1 KEEP_ALIVE: 1
@@ -135,6 +148,7 @@ services:
gsad: gsad:
image: registry.community.greenbone.net/community/gsad:stable image: registry.community.greenbone.net/community/gsad:stable
container_name: ukrrs-oam-gvm-gsad
deploy: deploy:
restart_policy: restart_policy:
condition: any condition: any
@@ -150,6 +164,7 @@ services:
gvm-config: gvm-config:
image: registry.community.greenbone.net/community/gvm-config@sha256:a83d05963ad5cd15099257baf704c16323cbc9a370e25e6a016a897fbccb43c2 image: registry.community.greenbone.net/community/gvm-config@sha256:a83d05963ad5cd15099257baf704c16323cbc9a370e25e6a016a897fbccb43c2
container_name: ukrrs-oam-gvm-gvm-config
environment: environment:
ENABLE_NGINX_CONFIG: true ENABLE_NGINX_CONFIG: true
ENABLE_TLS_GENERATION: true ENABLE_TLS_GENERATION: true
@@ -159,6 +174,7 @@ services:
nginx: nginx:
image: registry.community.greenbone.net/community/nginx@sha256:53bfde7e5db20cef57c2b8a9ca654a08803614193c929248f43dfd8293fd34d1 image: registry.community.greenbone.net/community/nginx@sha256:53bfde7e5db20cef57c2b8a9ca654a08803614193c929248f43dfd8293fd34d1
container_name: ukrrs-oam-gvm-nginx
ports: ports:
- 127.0.0.1:443:443 - 127.0.0.1:443:443
- 127.0.0.1:9392:9392 - 127.0.0.1:9392:9392
@@ -182,6 +198,7 @@ services:
# to reduce likelihood of unwanted log interferences # to reduce likelihood of unwanted log interferences
configure-openvas: configure-openvas:
image: registry.community.greenbone.net/community/openvas-scanner:stable image: registry.community.greenbone.net/community/openvas-scanner:stable
container_name: ukrrs-oam-gvm-configure-openvas
volumes: volumes:
- openvas_data_vol:/mnt - openvas_data_vol:/mnt
- openvas_log_data_vol:/var/log/openvas - openvas_log_data_vol:/var/log/openvas
@@ -199,6 +216,7 @@ services:
# shows logs of openvas # shows logs of openvas
openvas: openvas:
image: registry.community.greenbone.net/community/openvas-scanner:stable image: registry.community.greenbone.net/community/openvas-scanner:stable
container_name: ukrrs-oam-gvm-openvas
volumes: volumes:
- openvas_data_vol:/etc/openvas - openvas_data_vol:/etc/openvas
- openvas_log_data_vol:/var/log/openvas - openvas_log_data_vol:/var/log/openvas
@@ -214,6 +232,7 @@ services:
openvasd: openvasd:
image: registry.community.greenbone.net/community/openvas-scanner:stable image: registry.community.greenbone.net/community/openvas-scanner:stable
container_name: ukrrs-oam-gvm-openvasd
deploy: deploy:
restart_policy: restart_policy:
condition: any condition: any
@@ -247,6 +266,7 @@ services:
ospd-openvas: ospd-openvas:
image: registry.community.greenbone.net/community/ospd-openvas:stable image: registry.community.greenbone.net/community/ospd-openvas:stable
container_name: ukrrs-oam-gvm-ospd-openvas
deploy: deploy:
restart_policy: restart_policy:
condition: any condition: any
@@ -290,6 +310,7 @@ services:
gvm-tools: gvm-tools:
image: registry.community.greenbone.net/community/gvm-tools image: registry.community.greenbone.net/community/gvm-tools
container_name: ukrrs-oam-gvm-gvm-tools
volumes: volumes:
- gvmd_socket_vol:/run/gvmd - gvmd_socket_vol:/run/gvmd
- ospd_openvas_socket_vol:/run/ospd - ospd_openvas_socket_vol:/run/ospd
+1 -1
View File
@@ -87,7 +87,7 @@ if [ -n "$COMPOSE_FILES" ]; then
# Count top-level service keys (2-space indent under services:) and # Count top-level service keys (2-space indent under services:) and
# compare against the number of container_name: declarations. # compare against the number of container_name: declarations.
svc_count=$(awk '/^services:/{f=1;next} f&&/^[^[:space:]]/{f=0} f&&/^[[:space:]]{2}[[:alnum:]_-]+:[[:space:]]*$/{c++} END{print c+0}' "$cf") svc_count=$(awk '/^services:/{f=1;next} f&&/^[^[:space:]]/{f=0} f&&/^[[:space:]]{2}[[:alnum:]_-]+:[[:space:]]*$/{c++} END{print c+0}' "$cf")
cn_count=$(grep -cE '^[[:space:]]*container_name:' "$cf" 2>/dev/null || echo 0) cn_count=$(grep -cE '^[[:space:]]*container_name:' "$cf" 2>/dev/null || true)
if [ "${svc_count:-0}" -gt 0 ] && [ "$cn_count" -lt "$svc_count" ]; then if [ "${svc_count:-0}" -gt 0 ] && [ "$cn_count" -lt "$svc_count" ]; then
BAD=$((BAD + 1)) BAD=$((BAD + 1))
fi fi