[arch-commits] Commit in (9 files)

Alexander Rødseth arodseth at nymeria.archlinux.org
Wed Nov 27 10:14:00 UTC 2013


    Date: Wednesday, November 27, 2013 @ 11:14:00
  Author: arodseth
Revision: 101542

Moving docker to [community]. 30 votes. APACHE license.

Added:
  lxc-docker/
  lxc-docker/repos/
  lxc-docker/repos/community-i686/
  lxc-docker/repos/community-x86_64/
  lxc-docker/trunk/
  lxc-docker/trunk/PKGBUILD
  lxc-docker/trunk/docker.install
  lxc-docker/trunk/docker.service
  lxc-docker/trunk/docker.sysctl

----------------+
 PKGBUILD       |   37 +++++++++++++++++++++++++++++++++++++
 docker.install |   37 +++++++++++++++++++++++++++++++++++++
 docker.service |   10 ++++++++++
 docker.sysctl  |   13 +++++++++++++
 4 files changed, 97 insertions(+)

Added: lxc-docker/trunk/PKGBUILD
===================================================================
--- lxc-docker/trunk/PKGBUILD	                        (rev 0)
+++ lxc-docker/trunk/PKGBUILD	2013-11-27 10:14:00 UTC (rev 101542)
@@ -0,0 +1,37 @@
+# $Id$
+# Maintainer: Alexander Rødseth <rodseth at gmail.com>
+# Contributor: Nicolas Dudebout <nicolas.dudebout at gatech.edu>
+# Contributor: Ido Rosen <ido at kernel.org>
+# Contributor: frio <development at frio.name>
+
+# TODO: Build from source instead of using the binary release
+
+pkgname=lxc-docker
+pkgver=0.7.0
+pkgrel=1
+pkgdesc='Pack, ship and run any application as a lightweight container'
+arch=('x86_64' 'i686')
+url='https://github.com/dotcloud/docker'
+license=('APACHE')
+depends=('bridge-utils' 'iproute2' 'device-mapper' 'lxc' 'git')
+backup=('etc/sysctl.d/docker.conf')
+source=("docker.elf::https://get.docker.io/builds/Linux/x86_64/docker-$pkgver"
+        'docker.service'
+        'docker.sysctl'
+        'docker.bash::https://raw.github.com/dotcloud/docker/master/contrib/completion/bash/docker'
+        'docker.zsh::https://raw.github.com/dotcloud/docker/master/contrib/completion/zsh/_docker')
+sha256sums=('41aa07c6292135f67eb7a1d0fc5656521622732f7db57bab3c8006a8b2cec8a1'
+            '633f67629c9a49af7b203da736d39270586ebf5edf4c0a2641be7ff4d1623d0f'
+            '1384108f7176b2325893ad010649f1cbeab23143d8cd5f068de91291a9b54c36'
+            '5f1ce099ffa21288a38786615732cf51749e850d4187ac5b729cfda1f9ffc733'
+            '8751db6fe138be46e242af47ed17ef9a8a3f528bd7ee50c1f937bc9a3c6d2c6d')
+
+package() {
+  install -Dm755 "docker.elf" "$pkgdir/usr/bin/docker"
+  install -Dm644 "docker.service" "$pkgdir/usr/lib/systemd/system/docker.service"
+  install -Dm644 "docker.sysctl" "$pkgdir/etc/sysctl.d/docker.conf"
+  install -Dm644 "docker.bash" "$pkgdir/usr/share/bash-completion/completions/docker"
+  install -Dm644 "docker.zsh" "$pkgdir/usr/share/zsh/site-functions/_docker"
+}
+
+# vim:set ts=2 sw=2 et:


Property changes on: lxc-docker/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Added: lxc-docker/trunk/docker.install
===================================================================
--- lxc-docker/trunk/docker.install	                        (rev 0)
+++ lxc-docker/trunk/docker.install	2013-11-27 10:14:00 UTC (rev 101542)
@@ -0,0 +1,37 @@
+# Contributor: Nicolas Dudebout <nicolas.dudebout at gatech.edu>
+
+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
+}
+
+# vim:set ts=2 sw=2 et:

Added: lxc-docker/trunk/docker.service
===================================================================
--- lxc-docker/trunk/docker.service	                        (rev 0)
+++ lxc-docker/trunk/docker.service	2013-11-27 10:14:00 UTC (rev 101542)
@@ -0,0 +1,10 @@
+[Unit]
+Description=Docker Daemon
+After=network.target
+
+[Service]
+Type=simple
+ExecStart=/usr/bin/docker -d
+
+[Install]
+WantedBy=multi-user.target

Added: lxc-docker/trunk/docker.sysctl
===================================================================
--- lxc-docker/trunk/docker.sysctl	                        (rev 0)
+++ lxc-docker/trunk/docker.sysctl	2013-11-27 10:14:00 UTC (rev 101542)
@@ -0,0 +1,13 @@
+## WARNING: Enabling IPv4 forwarding has potential security implications.
+## Setting up a proper firewall with iptables is highly recommended before
+## enabling the forwarding.
+##
+## Enable IPv4 forwarding until the next reboot with the following command:
+##   $ sudo sysctl -w net.ipv4.ip_forward=1
+##
+## To enable IPv4 forwarding permanently, modify this file and reload the sysctl
+## configuration files  with the following command:
+##   $ sudo sysctl --system
+
+## Uncomment the next line to enable IPv4 forwarding
+# net.ipv4.ip_forward=1




More information about the arch-commits mailing list