feat: publish CodexPi contest snapshot
Some checks are pending
Qualité / tests (push) Waiting to run
Some checks are pending
Qualité / tests (push) Waiting to run
This commit is contained in:
17
deploy/systemd/codexpi-docker-access.service
Normal file
17
deploy/systemd/codexpi-docker-access.service
Normal 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
|
||||
12
deploy/systemd/codexpi-docker-access.timer
Normal file
12
deploy/systemd/codexpi-docker-access.timer
Normal 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
|
||||
19
deploy/systemd/codexpi-host-agent.service
Normal file
19
deploy/systemd/codexpi-host-agent.service
Normal 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
|
||||
24
deploy/systemd/codexpi.service
Normal file
24
deploy/systemd/codexpi.service
Normal 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
|
||||
Reference in New Issue
Block a user