Systemd init with /sbin/init, services for vpnagentd and entrypoint
Some checks failed
Test / test (push) Has been cancelled
Some checks failed
Test / test (push) Has been cancelled
This commit is contained in:
@@ -29,20 +29,8 @@
|
||||
"readOnly": true,
|
||||
"shared": false,
|
||||
"private": false
|
||||
},
|
||||
{
|
||||
"hostPath": "/sys/fs/cgroup",
|
||||
"containerPath": "/sys/fs/cgroup",
|
||||
"readOnly": false,
|
||||
"shared": false,
|
||||
"private": false
|
||||
}
|
||||
],
|
||||
"tmpfsMounts": [
|
||||
"/run",
|
||||
"/run/lock"
|
||||
],
|
||||
"cgroupParent": "host",
|
||||
"devices": [
|
||||
"/dev/net/tun:/dev/net/tun"
|
||||
],
|
||||
@@ -58,4 +46,4 @@
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -15,12 +15,6 @@ services:
|
||||
volumes:
|
||||
- ${APP_DATA_DIR}/data:/data
|
||||
- /etc/runtipi/repos/runtipi/apps/rego-tunnel-linux/source:/config:ro
|
||||
- /sys/fs/cgroup:/sys/fs/cgroup:rw
|
||||
tmpfs:
|
||||
- /run
|
||||
- /run/lock
|
||||
cgroupns_mode: host
|
||||
stop_signal: SIGRTMIN+3
|
||||
labels:
|
||||
generated: true
|
||||
traefik.enable: true
|
||||
|
||||
@@ -67,6 +67,9 @@ COPY cisco-vpnagentd.service /etc/systemd/system/cisco-vpnagentd.service
|
||||
RUN systemctl enable rego-vpn.service && \
|
||||
systemctl enable cisco-vpnagentd.service
|
||||
|
||||
# Create cgroup directory for systemd
|
||||
RUN mkdir -p /sys/fs/cgroup
|
||||
|
||||
VOLUME [ "/sys/fs/cgroup" ]
|
||||
EXPOSE 8806
|
||||
|
||||
|
||||
Reference in New Issue
Block a user