docker: added runit service.
This commit is contained in:
parent
0ef3e97692
commit
3bea592d6b
3 changed files with 7 additions and 1 deletions
2
srcpkgs/docker/files/docker/log/run
Executable file
2
srcpkgs/docker/files/docker/log/run
Executable file
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
exec logger -t docker
|
2
srcpkgs/docker/files/docker/run
Executable file
2
srcpkgs/docker/files/docker/run
Executable file
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
exec chpst -o 1048576 -p 1048576 docker -d 2>/dev/null
|
|
@ -1,7 +1,7 @@
|
|||
# Template file for 'docker'
|
||||
pkgname=docker
|
||||
version=1.2.0
|
||||
revision=1
|
||||
revision=2
|
||||
hostmakedepends="git go>=1.2"
|
||||
makedepends="libbtrfs-devel sqlite-devel device-mapper-devel"
|
||||
short_desc="Easily create lightweight, portable, self-sufficient containers from any application"
|
||||
|
@ -13,6 +13,7 @@ system_groups="docker"
|
|||
# These are required at run-time.
|
||||
depends="iptables xz git"
|
||||
build_options="systemd"
|
||||
replaces="runit-void<20141013_2"
|
||||
nostrip=yes
|
||||
nocross=yes
|
||||
|
||||
|
@ -33,4 +34,5 @@ do_install() {
|
|||
if [ "$build_option_systemd" ]; then
|
||||
vinstall contrib/init/systemd/docker.service 644 usr/lib/systemd/system
|
||||
fi
|
||||
vsv docker
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue