summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Houdebert2015-06-29 13:08:16 +0200
committerKevin Houdebert2015-06-29 13:08:16 +0200
commit617ee75f8a8be05e0b799f390dadba4f825d95ce (patch)
treeb583f28914a76e8a41461b794d92c596b34856f2
downloadaur-docker-experimental-git.tar.gz
Initial commit from docker-git
-rw-r--r--.SRCINFO32
-rw-r--r--PKGBUILD64
-rw-r--r--docker.conf2
-rw-r--r--docker.install33
-rw-r--r--docker.service11
5 files changed, 142 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..1765f872463
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,32 @@
+pkgbase = docker-experimental-git
+ pkgdesc = Pack, ship and run any application as a lightweight container (Experimental)
+ pkgver = 1.8.0.dev.40a41ff
+ pkgrel = 1
+ url = https://github.com/docker/docker
+ install = docker.install
+ arch = i686
+ arch = x86_64
+ license = Apache
+ makedepends = git
+ makedepends = go
+ makedepends = btrfs-progs
+ depends = bridge-utils
+ depends = iproute2
+ depends = device-mapper
+ depends = sqlite
+ depends = systemd
+ provides = docker
+ conflicts = docker
+ options = !strip
+ backup = etc/sysctl.d/docker.conf
+ source = git+https://github.com/docker/docker.git
+ source = docker.service
+ source = docker.install
+ source = docker.conf
+ md5sums = SKIP
+ md5sums = 3f7ccab915fb1942f06e18946c2811d2
+ md5sums = 1a8e60447794b3c4f87a2272cc9f144f
+ md5sums = 9bce988683771fb8262197f2d8196202
+
+pkgname = docker-experimental-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..1588f5464b9
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,64 @@
+# Maintainer: Kevin Houdebert <kevin@qwazerty.eu>
+# Contributor: Ido Rosen <ido@kernel.org>
+# Contributor: S├ębastien "Seblu" Luttringer
+# Contributor: Marcel Wysocki <maci@satgnu.net>
+# Contributor: Daniel YC Lin <dlin.tw@gmail>
+#
+# Inspired by docker-git PKGBUILD
+
+pkgname=docker-experimental-git
+pkgver=1.8.0.dev.40a41ff
+pkgrel=1
+pkgdesc='Pack, ship and run any application as a lightweight container (Experimental)'
+arch=('i686' 'x86_64')
+url="https://github.com/docker/docker"
+license=('Apache')
+depends=('bridge-utils' 'iproute2' 'device-mapper' 'sqlite' 'systemd')
+makedepends=('git' 'go' 'btrfs-progs')
+backup=(etc/sysctl.d/docker.conf)
+provides=('docker')
+conflicts=('docker')
+# don't strip binaries! A sha1 is used to check binary consistency.
+options=('!strip')
+source=("git+https://github.com/docker/docker.git"
+ 'docker.service'
+ 'docker.install'
+ 'docker.conf')
+md5sums=('SKIP'
+ '3f7ccab915fb1942f06e18946c2811d2'
+ '1a8e60447794b3c4f87a2272cc9f144f'
+ '9bce988683771fb8262197f2d8196202')
+install='docker.install'
+
+pkgver() {
+ cd "${srcdir}/docker"
+ _dockerver="$(cat VERSION)"
+ echo "${_dockerver//-/.}.$(git rev-parse --short HEAD)"
+}
+
+build() {
+ cd "${srcdir}/docker"
+ export AUTO_GOPATH=1
+ export DOCKER_EXPERIMENTAL=1
+ ./hack/make.sh dynbinary
+}
+
+#check() {
+# cd "${srcdir}/docker"
+# ./hack/make.sh dyntest
+#}
+
+package() {
+ cd "${srcdir}/docker"
+ _dockerver="$(cat VERSION)"
+ install -Dm755 "bundles/$_dockerver/dynbinary/docker-$_dockerver" "$pkgdir/usr/bin/docker"
+ install -Dm755 "bundles/$_dockerver/dynbinary/dockerinit-$_dockerver" "$pkgdir/usr/lib/docker/dockerinit"
+ # completion
+ install -Dm644 "contrib/completion/bash/docker" "$pkgdir/usr/share/bash-completion/completions/docker"
+ install -Dm644 "contrib/completion/zsh/_docker" "$pkgdir/usr/share/zsh/site-functions/_docker"
+ # systemd
+ install -Dm644 "$srcdir/docker.service" "$pkgdir/usr/lib/systemd/system/docker.service"
+ install -Dm644 "$srcdir/docker.conf" "$pkgdir/etc/sysctl.d/docker.conf"
+}
+
+# vim:set ts=2 sw=2 et:
diff --git a/docker.conf b/docker.conf
new file mode 100644
index 00000000000..8e6edb58011
--- /dev/null
+++ b/docker.conf
@@ -0,0 +1,2 @@
+## disable ALL packet forwarding (not a router, disable it) (default)
+#net.ipv4.ip_forward = 0
diff --git a/docker.install b/docker.install
new file mode 100644
index 00000000000..1ad012a398b
--- /dev/null
+++ b/docker.install
@@ -0,0 +1,33 @@
+post_install() {
+ grep -q '^docker:' /etc/group || groupadd --system docker
+ systemctl daemon-reload
+ echo "To make Docker fully functional, consider performing the following actions:"
+ echo " + Start the docker daemon:"
+ echo " $ sudo systemctl start docker"
+ echo " + (OPTIONAL) Start the docker daemon at boot:"
+ echo " $ sudo systemctl enable docker"
+ echo " + Add your user to the docker group to run the docker client without sudo:"
+ echo " $ sudo usermod -a -G docker <username>"
+ echo " Login again for the change to take effect or run the following command"
+ echo " for a change affecting only the current shell:"
+ echo " $ newgrp docker"
+ echo " + Enable IPv4 forwarding to allow internet connections inside the containers."
+ echo " See /etc/sysctl.d/docker.conf for WARNING and instructions."
+}
+
+pre_upgrade() {
+ systemctl stop docker
+}
+
+post_upgrade() {
+ systemctl daemon-reload
+}
+
+pre_remove() {
+ systemctl stop docker
+ grep -q '^docker:' /etc/group && groupdel docker
+}
+
+post_remove() {
+ systemctl daemon-reload
+}
diff --git a/docker.service b/docker.service
new file mode 100644
index 00000000000..b96d19ddb06
--- /dev/null
+++ b/docker.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=Docker Application Container Engine
+Documentation=http://docs.docker.io
+After=network.target
+
+[Service]
+ExecStartPre=/usr/bin/mount --make-rprivate /
+ExecStart=/usr/bin/docker -d
+
+[Install]
+WantedBy=multi-user.target