Add tests for backend asset handling and frontend boot sequence, remove outdated MOTD script, and add icons.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
0ad5b5f44f
commit
7937879ace
34 files changed
+613
-116
No files matched your search
@@ -60,6 +60,14 @@ services:
|
||||
- ${CONTENT_DIR}:/content:ro
|
||||
- ./config:/config:ro
|
||||
- ./runtime/jobs/triggers:/run/jobs/triggers:ro
|
||||
# Healthy means the backend serves and reaches the spawner.
|
||||
healthcheck:
|
||||
test: ["CMD", "wget", "-q", "-O", "/dev/null", "http://127.0.0.1:8080/healthz"]
|
||||
interval: 30s
|
||||
timeout: 5s
|
||||
retries: 3
|
||||
start_period: 30s
|
||||
start_interval: 2s
|
||||
logging:
|
||||
driver: json-file
|
||||
options:
|
||||
@@ -92,6 +100,13 @@ services:
|
||||
- ./jobs:/jobs:ro
|
||||
- ${JOBS_HOST_DIR:-/srv}:/host/srv:ro
|
||||
- ./runtime/jobs:/run/jobs
|
||||
healthcheck:
|
||||
test: ["CMD", "jobctl", "list"]
|
||||
interval: 60s
|
||||
timeout: 5s
|
||||
retries: 3
|
||||
start_period: 30s
|
||||
start_interval: 2s
|
||||
logging:
|
||||
driver: json-file
|
||||
options:
|
||||
|
||||
@@ -6,7 +6,6 @@ SANDBOX_FLAGS=(
|
||||
--security-opt no-new-privileges --user guest
|
||||
--memory 80m --memory-swap 80m --cpus 0.5 --pids-limit 50
|
||||
--ulimit nofile=256:256
|
||||
--tmpfs /home/guest:size=8m,mode=1777,noexec,nosuid
|
||||
--tmpfs /tmp:size=8m,noexec,nosuid
|
||||
--log-driver none
|
||||
--hostname sandbox
|
||||
|
||||
@@ -41,8 +41,8 @@ if [[ $EXPECT_GVISOR == 1 ]]; then
|
||||
fi
|
||||
|
||||
check "rootfs is read only" 'touch /x && echo writable' 'Read-only file system'
|
||||
check "home is writable" 'echo ok > ~/probe && cat ~/probe' '^ok$'
|
||||
check "home is noexec" 'cp /bin/true ~/t && ~/t && echo executed' 'Permission denied'
|
||||
check "home is read only" 'touch ~/x && echo writable' 'Read-only file system'
|
||||
check "tmp is writable" 'echo ok > /tmp/probe && cat /tmp/probe' '^ok$'
|
||||
check "tmp is noexec" 'cp /bin/true /tmp/t && /tmp/t && echo executed' 'Permission denied'
|
||||
check "no network interfaces besides lo" \
|
||||
"tail -n +3 /proc/net/dev | awk '{print \$1}' | grep -v '^lo:' | wc -l" '^0$'
|
||||
|
||||
Reference in new issue
Block a user