Namespaces, assemblies, projects and directories, the solution, binaries, images, systemd units, config paths, environment variables, protocol method names, the media type and the raw chunk magic all move to MoShiro/moshiro. Existing data and deployments are not compatible and must be recreated. Also fix the architecture tests after the solution layout change and make the update tests independent of their order.
17 lines
831 B
Desktop File
17 lines
831 B
Desktop File
[Unit]
|
|
Description=MoShiro Agent (Docker container)
|
|
After=network-online.target
|
|
Wants=network-online.target
|
|
|
|
[Service]
|
|
EnvironmentFile=/etc/moshiro-update/agent.image
|
|
Restart=always
|
|
RestartSec=5
|
|
TimeoutStopSec=30
|
|
ExecStartPre=-/usr/bin/docker rm -f moshiro-agent
|
|
ExecStart=/usr/bin/docker run --rm --name moshiro-agent --network host --read-only --security-opt no-new-privileges --security-opt label=disable --cap-drop all --tmpfs /tmp:rw,noexec,nosuid,size=64m,mode=1777 -v /etc/os-release:/etc/os-release:ro -v /proc:/host/proc:ro -v /sys:/host/sys:ro -v /:/host/root:ro -e HOST_PROC=/host/proc -e HOST_SYS=/host/sys -e HOST_ROOT=/host/root -v moshiro-agent-config:/etc/moshiro -v moshiro-agent-status:/etc/moshiro/update-status:ro ${IMAGE}
|
|
ExecStop=/usr/bin/docker stop -t 20 moshiro-agent
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|