mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2026-04-03 00:31:35 -07:00
Improving mount diagnostics
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
# Expected outcome: Mounts table shows /tmp/api is mounted and writable but NOT readable (R=❌, W=✅)
|
||||
# Note: This is a diagnostic-only container (entrypoint sleeps); the test chmods/chowns /tmp/api to mode 0300.
|
||||
services:
|
||||
netalertx:
|
||||
network_mode: host
|
||||
build:
|
||||
context: ../../../
|
||||
dockerfile: Dockerfile
|
||||
image: netalertx-test
|
||||
container_name: netalertx-test-mount-api_noread
|
||||
entrypoint: ["sh", "-lc", "sleep infinity"]
|
||||
cap_drop:
|
||||
- ALL
|
||||
cap_add:
|
||||
- NET_ADMIN
|
||||
- NET_RAW
|
||||
- NET_BIND_SERVICE
|
||||
environment:
|
||||
NETALERTX_DEBUG: 0
|
||||
NETALERTX_DATA: /data
|
||||
NETALERTX_DB: /data/db
|
||||
NETALERTX_CONFIG: /data/config
|
||||
SYSTEM_SERVICES_RUN_TMP: /tmp
|
||||
NETALERTX_API: /tmp/api
|
||||
NETALERTX_LOG: /tmp/log
|
||||
SYSTEM_SERVICES_RUN: /tmp/run
|
||||
SYSTEM_SERVICES_ACTIVE_CONFIG: /tmp/nginx/active-config
|
||||
|
||||
volumes:
|
||||
- type: volume
|
||||
source: test_netalertx_data
|
||||
target: /data
|
||||
read_only: false
|
||||
|
||||
tmpfs:
|
||||
- "/tmp:uid=20211,gid=20211,mode=1700,rw,noexec,nosuid,nodev,async,noatime,nodiratime"
|
||||
|
||||
volumes:
|
||||
test_netalertx_data:
|
||||
@@ -0,0 +1,39 @@
|
||||
# Expected outcome: Mounts table shows /data is mounted and writable but NOT readable (R=❌, W=✅)
|
||||
# Note: This is a diagnostic-only container (entrypoint sleeps); the test chmods/chowns /data to mode 0300.
|
||||
services:
|
||||
netalertx:
|
||||
network_mode: host
|
||||
build:
|
||||
context: ../../../
|
||||
dockerfile: Dockerfile
|
||||
image: netalertx-test
|
||||
container_name: netalertx-test-mount-data_noread
|
||||
entrypoint: ["sh", "-lc", "sleep infinity"]
|
||||
cap_drop:
|
||||
- ALL
|
||||
cap_add:
|
||||
- NET_ADMIN
|
||||
- NET_RAW
|
||||
- NET_BIND_SERVICE
|
||||
environment:
|
||||
NETALERTX_DEBUG: 0
|
||||
NETALERTX_DATA: /data
|
||||
NETALERTX_DB: /data/db
|
||||
NETALERTX_CONFIG: /data/config
|
||||
SYSTEM_SERVICES_RUN_TMP: /tmp
|
||||
NETALERTX_API: /tmp/api
|
||||
NETALERTX_LOG: /tmp/log
|
||||
SYSTEM_SERVICES_RUN: /tmp/run
|
||||
SYSTEM_SERVICES_ACTIVE_CONFIG: /tmp/nginx/active-config
|
||||
|
||||
volumes:
|
||||
- type: volume
|
||||
source: test_netalertx_data
|
||||
target: /data
|
||||
read_only: false
|
||||
|
||||
tmpfs:
|
||||
- "/tmp:uid=20211,gid=20211,mode=1700,rw,noexec,nosuid,nodev,async,noatime,nodiratime"
|
||||
|
||||
volumes:
|
||||
test_netalertx_data:
|
||||
@@ -0,0 +1,39 @@
|
||||
# Expected outcome: Mounts table shows /data/db is mounted and writable but NOT readable (R=❌, W=✅)
|
||||
# Note: This is a diagnostic-only container (entrypoint sleeps); the test chmods/chowns /data/db to mode 0300.
|
||||
services:
|
||||
netalertx:
|
||||
network_mode: host
|
||||
build:
|
||||
context: ../../../
|
||||
dockerfile: Dockerfile
|
||||
image: netalertx-test
|
||||
container_name: netalertx-test-mount-db_noread
|
||||
entrypoint: ["sh", "-lc", "sleep infinity"]
|
||||
cap_drop:
|
||||
- ALL
|
||||
cap_add:
|
||||
- NET_ADMIN
|
||||
- NET_RAW
|
||||
- NET_BIND_SERVICE
|
||||
environment:
|
||||
NETALERTX_DEBUG: 0
|
||||
NETALERTX_DATA: /data
|
||||
NETALERTX_DB: /data/db
|
||||
NETALERTX_CONFIG: /data/config
|
||||
SYSTEM_SERVICES_RUN_TMP: /tmp
|
||||
NETALERTX_API: /tmp/api
|
||||
NETALERTX_LOG: /tmp/log
|
||||
SYSTEM_SERVICES_RUN: /tmp/run
|
||||
SYSTEM_SERVICES_ACTIVE_CONFIG: /tmp/nginx/active-config
|
||||
|
||||
volumes:
|
||||
- type: volume
|
||||
source: test_netalertx_data
|
||||
target: /data
|
||||
read_only: false
|
||||
|
||||
tmpfs:
|
||||
- "/tmp:uid=20211,gid=20211,mode=1700,rw,noexec,nosuid,nodev,async,noatime,nodiratime"
|
||||
|
||||
volumes:
|
||||
test_netalertx_data:
|
||||
@@ -0,0 +1,39 @@
|
||||
# Expected outcome: Mounts table shows /tmp is mounted and writable but NOT readable (R=❌, W=✅)
|
||||
# Note: This is a diagnostic-only container (entrypoint sleeps); the test chmods/chowns /tmp to mode 0300.
|
||||
services:
|
||||
netalertx:
|
||||
network_mode: host
|
||||
build:
|
||||
context: ../../../
|
||||
dockerfile: Dockerfile
|
||||
image: netalertx-test
|
||||
container_name: netalertx-test-mount-tmp_noread
|
||||
entrypoint: ["sh", "-lc", "sleep infinity"]
|
||||
cap_drop:
|
||||
- ALL
|
||||
cap_add:
|
||||
- NET_ADMIN
|
||||
- NET_RAW
|
||||
- NET_BIND_SERVICE
|
||||
environment:
|
||||
NETALERTX_DEBUG: 0
|
||||
NETALERTX_DATA: /data
|
||||
NETALERTX_DB: /data/db
|
||||
NETALERTX_CONFIG: /data/config
|
||||
SYSTEM_SERVICES_RUN_TMP: /tmp
|
||||
NETALERTX_API: /tmp/api
|
||||
NETALERTX_LOG: /tmp/log
|
||||
SYSTEM_SERVICES_RUN: /tmp/run
|
||||
SYSTEM_SERVICES_ACTIVE_CONFIG: /tmp/nginx/active-config
|
||||
|
||||
volumes:
|
||||
- type: volume
|
||||
source: test_netalertx_data
|
||||
target: /data
|
||||
read_only: false
|
||||
|
||||
tmpfs:
|
||||
- "/tmp:uid=20211,gid=20211,mode=1700,rw,noexec,nosuid,nodev,async,noatime,nodiratime"
|
||||
|
||||
volumes:
|
||||
test_netalertx_data:
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user