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'
|
# Template file for 'docker'
|
||||||
pkgname=docker
|
pkgname=docker
|
||||||
version=1.2.0
|
version=1.2.0
|
||||||
revision=1
|
revision=2
|
||||||
hostmakedepends="git go>=1.2"
|
hostmakedepends="git go>=1.2"
|
||||||
makedepends="libbtrfs-devel sqlite-devel device-mapper-devel"
|
makedepends="libbtrfs-devel sqlite-devel device-mapper-devel"
|
||||||
short_desc="Easily create lightweight, portable, self-sufficient containers from any application"
|
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.
|
# These are required at run-time.
|
||||||
depends="iptables xz git"
|
depends="iptables xz git"
|
||||||
build_options="systemd"
|
build_options="systemd"
|
||||||
|
replaces="runit-void<20141013_2"
|
||||||
nostrip=yes
|
nostrip=yes
|
||||||
nocross=yes
|
nocross=yes
|
||||||
|
|
||||||
|
@ -33,4 +34,5 @@ do_install() {
|
||||||
if [ "$build_option_systemd" ]; then
|
if [ "$build_option_systemd" ]; then
|
||||||
vinstall contrib/init/systemd/docker.service 644 usr/lib/systemd/system
|
vinstall contrib/init/systemd/docker.service 644 usr/lib/systemd/system
|
||||||
fi
|
fi
|
||||||
|
vsv docker
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue