feat: publish CodexPi contest snapshot
Some checks are pending
Qualité / tests (push) Waiting to run

This commit is contained in:
CodexPi
2026-11-14 20:23:59 +01:00
commit 995b17a6e2
295 changed files with 36803 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
[Unit]
Description=Repair CodexPi access to the Docker socket
Documentation=file:///home/config/CodexPi/docs/installation.md
After=docker.service
ConditionPathIsSocket=/var/run/docker.sock
[Service]
Type=oneshot
User=__CODEXPI_UID__
Group=__CODEXPI_GID__
SupplementaryGroups=__DOCKER_GROUP__
WorkingDirectory=/home/config/CodexPi
ExecStart=/home/config/CodexPi/scripts/ensure-docker-access.sh
NoNewPrivileges=true
PrivateTmp=true
UMask=0077
TimeoutStartSec=180

View File

@@ -0,0 +1,12 @@
[Unit]
Description=Regularly verify CodexPi access to Docker
Documentation=file:///home/config/CodexPi/docs/installation.md
[Timer]
OnBootSec=30s
OnUnitActiveSec=60s
AccuracySec=10s
Unit=codexpi-docker-access.service
[Install]
WantedBy=timers.target

View File

@@ -0,0 +1,19 @@
[Unit]
Description=CodexPi private host agent channel
After=network-online.target
[Service]
Type=simple
User=__CODEXPI_USER__
Group=__CODEXPI_GROUP__
WorkingDirectory=__CODEXPI_ROOT__
ExecStart=/usr/bin/python3 __CODEXPI_ROOT__/scripts/codexpi_host_agent.py --socket __CODEXPI_ROOT__/data/host-agent/agent.sock --token-file __CODEXPI_ROOT__/data/host-agent/agent.token
Restart=on-failure
RestartSec=5
NoNewPrivileges=false
PrivateTmp=true
ProtectHome=false
ProtectSystem=false
[Install]
WantedBy=multi-user.target

View File

@@ -0,0 +1,24 @@
[Unit]
Description=CodexPi private development platform
Documentation=file:///home/config/CodexPi/README.md
Requires=docker.service
BindsTo=docker.service
PartOf=docker.service
After=docker.service network-online.target
Wants=network-online.target
[Service]
Type=oneshot
RemainAfterExit=yes
User=__CODEXPI_UID__
Group=__CODEXPI_GID__
SupplementaryGroups=__DOCKER_GROUP__
WorkingDirectory=/home/config/CodexPi
ExecStart=/home/config/CodexPi/scripts/compose.sh up -d
ExecStop=/home/config/CodexPi/scripts/compose.sh stop -t 30
UMask=0077
TimeoutStartSec=180
TimeoutStopSec=90
[Install]
WantedBy=multi-user.target