mirror of
https://bitbucket.org/shim_/docker-rtm.git
synced 2018-10-04 01:52:08 +02:00
27 lines
868 B
Desktop File
27 lines
868 B
Desktop File
[Unit]
|
|
Documentation=https://hub.docker.com/r/shimun/ovh-rtm/
|
|
Requires=network-online.target
|
|
|
|
[Service]
|
|
Slice=machine.slice
|
|
Delegate=true
|
|
CPUShares=256
|
|
MemoryLimit=128M
|
|
|
|
Environment=RTM_HIDE_PROCESSES=1
|
|
Environment=RTM_HIDE_CONNECTIONS=1
|
|
Environment=RTM_REPORT_INTERVAL=60
|
|
|
|
ExecStart=/usr/bin/rkt --insecure-options=image run --stage1-name=coreos.com/rkt/stage1-fly:1.8.0 \
|
|
--volume resolv,kind=host,source=/etc/resolv.conf,readOnly=true \
|
|
--volume proc,kind=host,source=/proc \
|
|
--volume volume-cache,kind=host,source=/tmp docker://shimun/ovh-rtm \
|
|
--mount volume=resolv,target=/etc/resolv.conf --mount volume=proc,target=/proc
|
|
ExecStopPost=/usr/bin/rkt gc
|
|
KillMode=mixed
|
|
Restart=always
|
|
RestartSec=30
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|