Skip to content

Commit fff95e0

Browse files
challgrenclaude
andcommitted
Fix: Docker s6 service configuration for s6-overlay v3
- Migrated from s6-overlay v2 to v3 structure - Fixed shebang path from /usr/bin/with-contenv to /command/with-contenv - Removed s6-setuidgid since base image runs as root - Moved service definition to /etc/s6-overlay/s6-rc.d/ - Container now starts successfully and web interface is accessible 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 3e1f2a6 commit fff95e0

5 files changed

Lines changed: 7 additions & 2 deletions

File tree

Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@ RUN python3 -m pip install --no-cache-dir --break-system-packages -r requirement
4747
# Copy rootfs overlay (includes static files)
4848
COPY rootfs/ /
4949

50+
# Ensure scripts are executable
51+
RUN chmod +x /etc/s6-overlay/s6-rc.d/aircraft-circle/run && \
52+
chmod +x /scripts/healthcheck.py
53+
5054
# Expose web port
5155
EXPOSE 8888
5256

rootfs/etc/s6-overlay/s6-rc.d/aircraft-circle/dependencies.d/base

Whitespace-only changes.

rootfs/etc/services.d/aircraft-circle/run renamed to rootfs/etc/s6-overlay/s6-rc.d/aircraft-circle/run

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/with-contenv bash
1+
#!/command/with-contenv bash
22
# shellcheck shell=bash
33

44
# Set defaults if not provided
@@ -41,4 +41,4 @@ echo "Web interface: ${ENABLE_WEB} (port ${WEB_PORT})"
4141

4242
# Run the application
4343
cd /app || exit 1
44-
exec s6-setuidgid abc python3 app.py ${ARGS}
44+
exec python3 app.py ${ARGS}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
longrun

rootfs/etc/s6-overlay/s6-rc.d/user/contents.d/aircraft-circle

Whitespace-only changes.

0 commit comments

Comments
 (0)