Merge pull request #72 from philips/docker-0.7.1

chore(app-emulation/docker): moving to coreos-overlay
This commit is contained in:
Brandon Philips 2013-12-07 22:10:28 -08:00
commit c6d0d0df45
13 changed files with 0 additions and 1142 deletions

View File

@ -1,37 +0,0 @@
# ChangeLog for app-emulation/docker
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/app-emulation/docker/ChangeLog,v 1.6 2013/11/26 15:17:48 gregkh Exp $
*docker-0.7.0 (26 Nov 2013)
26 Nov 2013; Greg Kroah-Hartman <gregkh@gentoo.org> +docker-0.7.0.ebuild,
metadata.xml:
add 0.7.0 release
*docker-0.6.7 (23 Nov 2013)
23 Nov 2013; Greg Kroah-Hartman <gregkh@gentoo.org> +docker-0.6.7.ebuild:
0.6.7 version bump
*docker-0.6.6 (11 Nov 2013)
11 Nov 2013; Greg Kroah-Hartman <gregkh@gentoo.org> +docker-0.6.6.ebuild:
0.6.6 version bump
*docker-0.6.5 (31 Oct 2013)
31 Oct 2013; Greg Kroah-Hartman <gregkh@gentoo.org> +docker-0.6.5.ebuild:
version bump to 0.6.5
*docker-0.6.3-r1 (05 Oct 2013)
05 Oct 2013; Greg Kroah-Hartman <gregkh@gentoo.org> +docker-0.6.3-r1.ebuild:
add dependancy on app-arch/xz-utils as it is needed
*docker-0.6.3 (25 Sep 2013)
25 Sep 2013; Greg Kroah-Hartman <gregkh@gentoo.org> +docker-0.6.3.ebuild,
+files/docker-r2.confd, +files/docker-r2.initd, +files/docker.initd,
+files/docker.service, +metadata.xml:
initial docker ebuild taken (with permission) from git@github.com:tianon
/docker-overlay.git

View File

@ -1,12 +0,0 @@
AUX docker-r2.confd 581 SHA256 94e1c07b09701f3b0b1c4f6f917206da3b32f8d7e961c3850c4391ebd59df0b4 SHA512 5838270ff9ce7b9a562b2449ba5f4ad72db956dd03f6a1b006c8019ff43fea1c4ae1e2a4818fb092b6096cff6bd9ce539b05b7940412c55b3bb3e30c356da944 WHIRLPOOL a8e3759b6c86855afa7e784d50a7926fc888d50ec03dc2d9dcd70c3f2dd11caf6670196d91f383cab1d603f32a968bed4b3a0668ec1a38d41dc1142ec92235cc
AUX docker-r2.initd 1767 SHA256 0cb83137cf3d37aadf450dd30ec9e0ceca3d865867f7fe64a43a1d5f42d2ecf8 SHA512 1250f8b16ded27877cf2759fca1d69f37ce308d4d5e5a29438210e847894617fa088260b0cfd87e1ee65ed26a4293d98c79462c1ccc93aac14203fbfed4b69a2 WHIRLPOOL 272f04feb587a0f91079f41ad90868f99c28a21a5ec35876f38dbbd342a53796dd4ec822fa2cd3506f22485b6a0147d24da2e7ab89da7875f84e3e9fab50c3c8
AUX docker.initd 881 SHA256 c9ac677a9a4a8f3dd74fa79b458b06cf10760bc5df44f14067dd34da78b1dcd7 SHA512 ffa6893b3d9e001c1938e917db91d60f4e6c39954cdc97d9851eded64f6ac0efa7c03c48a5d26370e028236f54258e832f991f9ca099c0cc434ebb55e731adf2 WHIRLPOOL 93218226393b24bf5786cc0f4eb6090f5977d33aa4c8316886a77494d347fc5dd78013df121f442121870f7c0f430183e6ccdc29c2f79c6c085882d6bd327cf1
AUX docker.service 249 SHA256 ddf23c8bd07303a87f7e76881b14c023c54835feba575998d6f5a9a7ec8a0a0a SHA512 d7564489486b3547cb79057fa44cb3eb0aa6c50ec47eca12579748170d62ab435395d173fdf39fcec8e86f4778db7413b7fa0ab85dbbd2fc1636164d4aad8b37 WHIRLPOOL 553f8a93a5d7cb6cc037a2004e19efa06520eba363e12574a5d251d10b23d9f24d1a023eb9915968a9bb661bddb577163948fb180a85ca9c916cac5c6680b1df
EBUILD docker-0.6.3-r1.ebuild 4432 SHA256 22602753383c95c36105593fb0dbe35a69b18cf02c6694590a94c097da985434 SHA512 a4a923b085368be7f6339f461fc037c38fb6b465cadf4e7264c4f3806b3b46713f85ac5b77bf3d469eebaa91f3d3e22ea3ec275abe38686b3004a7acf6b967cd WHIRLPOOL 74082aca50521ca405994ed15e04b9fc8f1c8485a7a0e00af6bb47c717dd3ea35341d946d88a01148fd8c23d083ed4fe1d73be33de92547cdbafa3d2183f0001
EBUILD docker-0.6.3.ebuild 4404 SHA256 2e38617c57dfe48c270f026c7870de2b83abcfb4d07c40537e5672f389fe630b SHA512 ab108c310a1fd017bf18446ff490b6699d3503b4efcaaba809acee6f4a70be35aea119268ece608111c614f1a214324319af6673bddc0377debc92dd6345ca86 WHIRLPOOL f6dcc4dcffa7d9bee4a74a9f819ca461c68e9ec779818da0bc311ecb1ad5b8b74e6df4c9612b6dd8d6d33e04d55c6c87818491042d1fc00cdd5577a004e6163e
EBUILD docker-0.6.5.ebuild 3663 SHA256 b6caa9294deb3507c7348b7754189249918442a953bced569d17874ba62e7464 SHA512 940e029632d8bd9c4e8cff57fa39607479e60546250d690c5eed4fbba5b603c4f1b6ef73ea79855d7bfb3c12d7797d091aa38fb368c985b038e5ab6d6385a846 WHIRLPOOL 0be135887e0bdb0820d8f98f7c4997981548c3a3c648da8048d7be349c0aa62c572d6f0df8259164909523ef471a7e7832ab7c738990da24e2c6420c6acac9ef
EBUILD docker-0.6.6.ebuild 3663 SHA256 226206b737be09b63fc37446b519f36939fef2324247a5062a90bd565aef2d0c SHA512 794851abd01a565d74fb60ce03ad27094920ce2bbbb11a13420c9810f708659d575f81d98e62eea721da1dc29b6bc63d25f43c5a9f2b30dfe757b6fa71e607a3 WHIRLPOOL e53e8ca71d2c19a6fdbaceb3854d7bdfbe850e742d97c9430999fb8c43bd8a4b54bc54d74aa859d32e9994ae814e7b523bf92689459115928ed3199aa685ffa5
EBUILD docker-0.6.7.ebuild 3693 SHA256 600a6fdade431c283c4229e6740020925f4af4c7309cc43924f0c0e0c60d6b96 SHA512 317a5235cf5a1b39b3aef3535d3564422e839e1279d7d6574e0bbcbe65906547c5475db91fb14ec7a53520c5594564f0eb9f4ae770aa312ffcd632e286395b7c WHIRLPOOL a935d52fd2d42d241c5c33f9665797cc8e730c26794d7a6304fd8420ecf19397cacb30b76b6a9fa42f75017d3ef173d1e74b1d4aec7029616d71c44bfaa1ddd5
EBUILD docker-0.7.0.ebuild 3846 SHA256 3fe946e872d4dea18334587f756069ecd533be6dbd1bf59c49db34222bd8e44e SHA512 736266d54c92c34e487392aa46477d2298ce96159205f00786bffdf107a3b1b5a88da4e5ae0ddca8fc29d4ebb09dcc4d06d635273dcf72ffceddfc79d9462fe7 WHIRLPOOL 3d0a2596129c1ae2f5af007cf0caa13e9a0b949bf30344fa0eb7f63ab820d9c4ac505830573dd14925d4c010d571455012690475239ad7efb92850b0c125f715
MISC ChangeLog 1218 SHA256 c3a831b8cee688d22faeafb3337b4cc5b96f43d87377c50318fae5e3d8592fb5 SHA512 644bd9499f2a1b2d078cb78a988b7b01115a84dec2c03409de33e4ca2d2e6b5ded0d7d99e668bc0947c99d37c5cab3e0c759e48a4163dc987a50ac3daca214a7 WHIRLPOOL b70eb91b10d48d496c7128e74d073ee5c1f29fc744e3f784e73c08b86f42eced91ed941d55b4ad0108465c7e04a5a1d7b6bddaba9b84dc63ba91f943c05e6656
MISC metadata.xml 839 SHA256 5404323c6318eea6a2ad31f370ee8b698503c421532ed6341062262bf8b4d243 SHA512 afde4228cad6131fec7d91ecd85829f3917497fd67618137b008993912c564159855c1ddc054343bc3f49b0bd27610d5daf5afede3d1a4a81ac14f7e7638ca3f WHIRLPOOL 71ed16244de522827c9beab96b76b211a00ddbb750c1080074951522691424cebf08af116119e5ebdb1a98823e95735dfb27586396846dd9c5ff2a9f1dac6254

View File

@ -1,164 +0,0 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-emulation/docker/docker-0.6.3-r1.ebuild,v 1.1 2013/10/05 17:41:13 gregkh Exp $
EAPI=5
DESCRIPTION="Docker complements LXC with a high-level API which operates at the process level."
HOMEPAGE="http://www.docker.io/"
SRC_URI=""
EGIT_REPO_URI="git://github.com/dotcloud/docker.git"
if [[ ${PV} == *9999 ]]; then
KEYWORDS=""
else
EGIT_COMMIT="v${PV}"
KEYWORDS="~amd64"
fi
inherit bash-completion-r1 git-2 linux-info systemd user
LICENSE="Apache-2.0"
SLOT="0"
IUSE="doc vim-syntax"
DEPEND="
>=dev-lang/go-1.1.2
dev-vcs/git
dev-vcs/mercurial
doc? (
dev-python/sphinx
dev-python/sphinxcontrib-httpdomain
)
"
RDEPEND="
!app-emulation/lxc-docker-bin
>=app-arch/tar-1.26
>=sys-apps/iproute2-3.5
>=net-firewall/iptables-1.4
>=app-emulation/lxc-0.8
>=dev-vcs/git-1.7
>=app-arch/xz-utils-4.9
|| (
sys-fs/aufs3
sys-kernel/aufs-sources
)
"
RESTRICT="strip"
DOCKERFILE_VIM_S="${WORKDIR}/dockerfile.vim"
# TODO AUFS will be replaced with device-mapper (sys-fs/lvm2[static-libs]) in 0.7
ERROR_AUFS_FS="AUFS_FS is required to be set if and only if aufs-sources are used"
ERROR_MEMCG_SWAP="MEMCG_SWAP is required if you wish to limit swap usage of containers"
pkg_setup() {
CONFIG_CHECK+=" ~AUFS_FS ~BRIDGE ~MEMCG_SWAP ~NETFILTER_XT_MATCH_ADDRTYPE ~NF_NAT ~NF_NAT_NEEDED"
check_extra_config
}
src_unpack() {
git-2_src_unpack
if use vim-syntax; then
( # subshell to prevent environment leakage (and confusion of smart-live-rebuild)
EGIT_SOURCEDIR="${DOCKERFILE_VIM_S}"
EGIT_PROJECT="honza-dockerfile.vim.git"
EGIT_REPO_URI="https://github.com/honza/dockerfile.vim.git"
EGIT_MASTER="master"
EGIT_BRANCH="${EGIT_MASTER}"
EGIT_COMMIT="${EGIT_BRANCH}"
EGIT_NOUNPACK="true"
git-2_src_unpack
)
fi
}
src_compile() {
export CGO_ENABLED=0 # we need static linking!
export GOPATH="${WORKDIR}/gopath"
mkdir -p "$GOPATH" || die
# copy GOROOT so we can build it without cgo and not modify anything in the REAL_GOROOT
REAL_GOROOT="$(go env GOROOT)"
export GOROOT="${WORKDIR}/goroot"
rm -rf "$GOROOT" || die
cp -R "$REAL_GOROOT" "$GOROOT" || die
# recompile GOROOT to be cgo-less and thus static-able (especially net package)
go install -a -v std || die
# make sure docker itself is in our shiny new GOPATH
mkdir -p "${GOPATH}/src/github.com/dotcloud" || die
ln -sf "$(pwd -P)" "${GOPATH}/src/github.com/dotcloud/docker" || die
# we need our vendored deps, too
export GOPATH="$GOPATH:$(pwd -P)/vendor"
# time to build!
./hack/make.sh binary || die
# now copy the binary to a consistent location that doesn't involve the current version number
mkdir -p bin || die
VERSION=$(cat ./VERSION)
cp -v bundles/$VERSION/binary/docker-$VERSION bin/docker || die
if use doc; then
emake -C docs docs man || die
fi
}
src_install() {
dobin bin/docker
dodoc AUTHORS CONTRIBUTING.md CHANGELOG.md MAINTAINERS NOTICE README.md
newinitd "${FILESDIR}/docker-r2.initd" docker
newconfd "${FILESDIR}/docker-r2.confd" docker
systemd_dounit "${FILESDIR}/docker.service"
insinto /usr/share/${P}/contrib
doins contrib/README
cp -R "${S}/contrib"/* "${D}/usr/share/${P}/contrib/"
newbashcomp contrib/docker.bash docker
if use doc; then
dohtml -r docs/_build/html/*
doman docs/_build/man/*
fi
if use vim-syntax; then
insinto /usr/share/vim/vimfiles
doins -r "${DOCKERFILE_VIM_S}/ftdetect"
doins -r "${DOCKERFILE_VIM_S}/syntax"
fi
}
pkg_postinst() {
elog ""
elog "To use docker, the docker daemon must be running as root. To automatically"
elog "start the docker daemon at boot, add docker to the default runlevel:"
elog " rc-update add docker default"
elog "Similarly for systemd:"
elog " systemctl enable docker.service"
elog ""
# create docker group if the code checking for it in /etc/group exists
enewgroup docker
elog "To use docker as a non-root user, add yourself to the docker group."
elog ""
ewarn ""
ewarn "If you want your containers to have access to the public internet or even"
ewarn "the existing private network, IP Forwarding must be enabled:"
ewarn " sysctl -w net.ipv4.ip_forward=1"
ewarn "or more permanently:"
ewarn " echo net.ipv4.ip_forward = 1 > /etc/sysctl.d/${PN}.conf"
ewarn "Please be mindful of the security implications of enabling IP Forwarding."
ewarn ""
}

View File

@ -1,163 +0,0 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-emulation/docker/docker-0.6.3.ebuild,v 1.1 2013/09/25 03:22:15 gregkh Exp $
EAPI=5
DESCRIPTION="Docker complements LXC with a high-level API which operates at the process level."
HOMEPAGE="http://www.docker.io/"
SRC_URI=""
EGIT_REPO_URI="git://github.com/dotcloud/docker.git"
if [[ ${PV} == *9999 ]]; then
KEYWORDS=""
else
EGIT_COMMIT="v${PV}"
KEYWORDS="~amd64"
fi
inherit bash-completion-r1 git-2 linux-info systemd user
LICENSE="Apache-2.0"
SLOT="0"
IUSE="doc vim-syntax"
DEPEND="
>=dev-lang/go-1.1.2
dev-vcs/git
dev-vcs/mercurial
doc? (
dev-python/sphinx
dev-python/sphinxcontrib-httpdomain
)
"
RDEPEND="
!app-emulation/lxc-docker-bin
>=app-arch/tar-1.26
>=sys-apps/iproute2-3.5
>=net-firewall/iptables-1.4
>=app-emulation/lxc-0.8
>=dev-vcs/git-1.7
|| (
sys-fs/aufs3
sys-kernel/aufs-sources
)
"
RESTRICT="strip"
DOCKERFILE_VIM_S="${WORKDIR}/dockerfile.vim"
# TODO AUFS will be replaced with device-mapper (sys-fs/lvm2[static-libs]) in 0.7
ERROR_AUFS_FS="AUFS_FS is required to be set if and only if aufs-sources are used"
ERROR_MEMCG_SWAP="MEMCG_SWAP is required if you wish to limit swap usage of containers"
pkg_setup() {
CONFIG_CHECK+=" ~AUFS_FS ~BRIDGE ~MEMCG_SWAP ~NETFILTER_XT_MATCH_ADDRTYPE ~NF_NAT ~NF_NAT_NEEDED"
check_extra_config
}
src_unpack() {
git-2_src_unpack
if use vim-syntax; then
( # subshell to prevent environment leakage (and confusion of smart-live-rebuild)
EGIT_SOURCEDIR="${DOCKERFILE_VIM_S}"
EGIT_PROJECT="honza-dockerfile.vim.git"
EGIT_REPO_URI="https://github.com/honza/dockerfile.vim.git"
EGIT_MASTER="master"
EGIT_BRANCH="${EGIT_MASTER}"
EGIT_COMMIT="${EGIT_BRANCH}"
EGIT_NOUNPACK="true"
git-2_src_unpack
)
fi
}
src_compile() {
export CGO_ENABLED=0 # we need static linking!
export GOPATH="${WORKDIR}/gopath"
mkdir -p "$GOPATH" || die
# copy GOROOT so we can build it without cgo and not modify anything in the REAL_GOROOT
REAL_GOROOT="$(go env GOROOT)"
export GOROOT="${WORKDIR}/goroot"
rm -rf "$GOROOT" || die
cp -R "$REAL_GOROOT" "$GOROOT" || die
# recompile GOROOT to be cgo-less and thus static-able (especially net package)
go install -a -v std || die
# make sure docker itself is in our shiny new GOPATH
mkdir -p "${GOPATH}/src/github.com/dotcloud" || die
ln -sf "$(pwd -P)" "${GOPATH}/src/github.com/dotcloud/docker" || die
# we need our vendored deps, too
export GOPATH="$GOPATH:$(pwd -P)/vendor"
# time to build!
./hack/make.sh binary || die
# now copy the binary to a consistent location that doesn't involve the current version number
mkdir -p bin || die
VERSION=$(cat ./VERSION)
cp -v bundles/$VERSION/binary/docker-$VERSION bin/docker || die
if use doc; then
emake -C docs docs man || die
fi
}
src_install() {
dobin bin/docker
dodoc AUTHORS CONTRIBUTING.md CHANGELOG.md MAINTAINERS NOTICE README.md
newinitd "${FILESDIR}/docker-r2.initd" docker
newconfd "${FILESDIR}/docker-r2.confd" docker
systemd_dounit "${FILESDIR}/docker.service"
insinto /usr/share/${P}/contrib
doins contrib/README
cp -R "${S}/contrib"/* "${D}/usr/share/${P}/contrib/"
newbashcomp contrib/docker.bash docker
if use doc; then
dohtml -r docs/_build/html/*
doman docs/_build/man/*
fi
if use vim-syntax; then
insinto /usr/share/vim/vimfiles
doins -r "${DOCKERFILE_VIM_S}/ftdetect"
doins -r "${DOCKERFILE_VIM_S}/syntax"
fi
}
pkg_postinst() {
elog ""
elog "To use docker, the docker daemon must be running as root. To automatically"
elog "start the docker daemon at boot, add docker to the default runlevel:"
elog " rc-update add docker default"
elog "Similarly for systemd:"
elog " systemctl enable docker.service"
elog ""
# create docker group if the code checking for it in /etc/group exists
enewgroup docker
elog "To use docker as a non-root user, add yourself to the docker group."
elog ""
ewarn ""
ewarn "If you want your containers to have access to the public internet or even"
ewarn "the existing private network, IP Forwarding must be enabled:"
ewarn " sysctl -w net.ipv4.ip_forward=1"
ewarn "or more permanently:"
ewarn " echo net.ipv4.ip_forward = 1 > /etc/sysctl.d/${PN}.conf"
ewarn "Please be mindful of the security implications of enabling IP Forwarding."
ewarn ""
}

View File

@ -1,151 +0,0 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-emulation/docker/docker-0.6.5.ebuild,v 1.1 2013/10/31 20:47:50 gregkh Exp $
EAPI=5
DESCRIPTION="Docker complements LXC with a high-level API which operates at the process level."
HOMEPAGE="http://www.docker.io/"
SRC_URI=""
EGIT_REPO_URI="git://github.com/dotcloud/docker.git"
if [[ ${PV} == *9999 ]]; then
KEYWORDS=""
else
EGIT_COMMIT="v${PV}"
KEYWORDS="~amd64"
fi
inherit bash-completion-r1 git-2 linux-info systemd user
LICENSE="Apache-2.0"
SLOT="0"
IUSE="doc vim-syntax"
CDEPEND="
>=dev-db/sqlite-3.7.9:3
"
DEPEND="
${CDEPEND}
>=dev-lang/go-1.1.2
dev-vcs/git
dev-vcs/mercurial
doc? (
dev-python/sphinx
dev-python/sphinxcontrib-httpdomain
)
"
RDEPEND="
${CDEPEND}
!app-emulation/lxc-docker-bin
>=app-arch/tar-1.26
>=sys-apps/iproute2-3.5
>=net-firewall/iptables-1.4
>=app-emulation/lxc-0.8
>=dev-vcs/git-1.7
>=app-arch/xz-utils-4.9
|| (
sys-fs/aufs3
sys-kernel/aufs-sources
)
"
RESTRICT="strip"
CONFIG_CHECK="
~AUFS_FS
~BRIDGE
~MEMCG_SWAP
~NETFILTER_XT_MATCH_ADDRTYPE
~NF_NAT
~NF_NAT_NEEDED
"
# TODO AUFS will be replaced with device-mapper (requires sys-fs/lvm2[thin]) in 0.7
ERROR_AUFS_FS="AUFS_FS is required to be set if and only if aufs-sources are used"
ERROR_MEMCG_SWAP="MEMCG_SWAP is required if you wish to limit swap usage of containers"
pkg_setup() {
check_extra_config
}
src_unpack() {
git-2_src_unpack
}
src_compile() {
export GOPATH="${WORKDIR}/gopath"
mkdir -p "$GOPATH" || die
# make sure docker itself is in our shiny new GOPATH
mkdir -p "${GOPATH}/src/github.com/dotcloud" || die
ln -sf "$(pwd -P)" "${GOPATH}/src/github.com/dotcloud/docker" || die
# we need our vendored deps, too
export GOPATH="$GOPATH:$(pwd -P)/vendor"
# time to build!
./hack/make.sh dynbinary || die
if use doc; then
emake -C docs docs || die
fi
}
src_install() {
VERSION=$(cat VERSION)
newbin bundles/$VERSION/dynbinary/docker-$VERSION docker
exeinto /usr/libexec/docker
newexe bundles/$VERSION/dynbinary/dockerinit-$VERSION dockerinit
newinitd contrib/init/openrc/docker.initd docker
newconfd contrib/init/openrc/docker.confd docker
systemd_dounit contrib/init/systemd/docker.service
dodoc AUTHORS CONTRIBUTING.md CHANGELOG.md NOTICE README.md
if use doc; then
dohtml -r docs/_build/html/*
fi
dobashcomp contrib/completion/bash/*
insinto /usr/share/zsh/site-functions
doins contrib/completion/zsh/*
if use vim-syntax; then
insinto /usr/share/vim/vimfiles
doins -r contrib/vim-syntax/ftdetect
doins -r contrib/vim-syntax/syntax
fi
insinto /usr/share/${P}/contrib
doins contrib/README
cp -R "${S}/contrib"/* "${D}/usr/share/${P}/contrib/"
}
pkg_postinst() {
elog ""
elog "To use docker, the docker daemon must be running as root. To automatically"
elog "start the docker daemon at boot, add docker to the default runlevel:"
elog " rc-update add docker default"
elog "Similarly for systemd:"
elog " systemctl enable docker.service"
elog ""
# create docker group if the code checking for it in /etc/group exists
enewgroup docker
elog "To use docker as a non-root user, add yourself to the docker group."
elog ""
ewarn ""
ewarn "If you want your containers to have access to the public internet or even"
ewarn "the existing private network, IP Forwarding must be enabled:"
ewarn " sysctl -w net.ipv4.ip_forward=1"
ewarn "or more permanently:"
ewarn " echo net.ipv4.ip_forward = 1 > /etc/sysctl.d/${PN}.conf"
ewarn "Please be mindful of the security implications of enabling IP Forwarding."
ewarn ""
}

View File

@ -1,151 +0,0 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-emulation/docker/docker-0.6.6.ebuild,v 1.1 2013/11/11 06:19:00 gregkh Exp $
EAPI=5
DESCRIPTION="Docker complements LXC with a high-level API which operates at the process level."
HOMEPAGE="http://www.docker.io/"
SRC_URI=""
EGIT_REPO_URI="git://github.com/dotcloud/docker.git"
if [[ ${PV} == *9999 ]]; then
KEYWORDS=""
else
EGIT_COMMIT="v${PV}"
KEYWORDS="~amd64"
fi
inherit bash-completion-r1 git-2 linux-info systemd user
LICENSE="Apache-2.0"
SLOT="0"
IUSE="doc vim-syntax"
CDEPEND="
>=dev-db/sqlite-3.7.9:3
"
DEPEND="
${CDEPEND}
>=dev-lang/go-1.1.2
dev-vcs/git
dev-vcs/mercurial
doc? (
dev-python/sphinx
dev-python/sphinxcontrib-httpdomain
)
"
RDEPEND="
${CDEPEND}
!app-emulation/lxc-docker-bin
>=app-arch/tar-1.26
>=sys-apps/iproute2-3.5
>=net-firewall/iptables-1.4
>=app-emulation/lxc-0.8
>=dev-vcs/git-1.7
>=app-arch/xz-utils-4.9
|| (
sys-fs/aufs3
sys-kernel/aufs-sources
)
"
RESTRICT="strip"
CONFIG_CHECK="
~AUFS_FS
~BRIDGE
~MEMCG_SWAP
~NETFILTER_XT_MATCH_ADDRTYPE
~NF_NAT
~NF_NAT_NEEDED
"
# TODO AUFS will be replaced with device-mapper (requires sys-fs/lvm2[thin]) in 0.7
ERROR_AUFS_FS="AUFS_FS is required to be set if and only if aufs-sources are used"
ERROR_MEMCG_SWAP="MEMCG_SWAP is required if you wish to limit swap usage of containers"
pkg_setup() {
check_extra_config
}
src_unpack() {
git-2_src_unpack
}
src_compile() {
export GOPATH="${WORKDIR}/gopath"
mkdir -p "$GOPATH" || die
# make sure docker itself is in our shiny new GOPATH
mkdir -p "${GOPATH}/src/github.com/dotcloud" || die
ln -sf "$(pwd -P)" "${GOPATH}/src/github.com/dotcloud/docker" || die
# we need our vendored deps, too
export GOPATH="$GOPATH:$(pwd -P)/vendor"
# time to build!
./hack/make.sh dynbinary || die
if use doc; then
emake -C docs docs || die
fi
}
src_install() {
VERSION=$(cat VERSION)
newbin bundles/$VERSION/dynbinary/docker-$VERSION docker
exeinto /usr/libexec/docker
newexe bundles/$VERSION/dynbinary/dockerinit-$VERSION dockerinit
newinitd contrib/init/openrc/docker.initd docker
newconfd contrib/init/openrc/docker.confd docker
systemd_dounit contrib/init/systemd/docker.service
dodoc AUTHORS CONTRIBUTING.md CHANGELOG.md NOTICE README.md
if use doc; then
dohtml -r docs/_build/html/*
fi
dobashcomp contrib/completion/bash/*
insinto /usr/share/zsh/site-functions
doins contrib/completion/zsh/*
if use vim-syntax; then
insinto /usr/share/vim/vimfiles
doins -r contrib/vim-syntax/ftdetect
doins -r contrib/vim-syntax/syntax
fi
insinto /usr/share/${P}/contrib
doins contrib/README
cp -R "${S}/contrib"/* "${D}/usr/share/${P}/contrib/"
}
pkg_postinst() {
elog ""
elog "To use docker, the docker daemon must be running as root. To automatically"
elog "start the docker daemon at boot, add docker to the default runlevel:"
elog " rc-update add docker default"
elog "Similarly for systemd:"
elog " systemctl enable docker.service"
elog ""
# create docker group if the code checking for it in /etc/group exists
enewgroup docker
elog "To use docker as a non-root user, add yourself to the docker group."
elog ""
ewarn ""
ewarn "If you want your containers to have access to the public internet or even"
ewarn "the existing private network, IP Forwarding must be enabled:"
ewarn " sysctl -w net.ipv4.ip_forward=1"
ewarn "or more permanently:"
ewarn " echo net.ipv4.ip_forward = 1 > /etc/sysctl.d/${PN}.conf"
ewarn "Please be mindful of the security implications of enabling IP Forwarding."
ewarn ""
}

View File

@ -1,152 +0,0 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-emulation/docker/docker-0.6.7.ebuild,v 1.1 2013/11/23 23:13:28 gregkh Exp $
EAPI=5
DESCRIPTION="Docker complements LXC with a high-level API which operates at the process level."
HOMEPAGE="http://www.docker.io/"
SRC_URI=""
EGIT_REPO_URI="git://github.com/dotcloud/docker.git"
if [[ ${PV} == *9999 ]]; then
KEYWORDS=""
else
EGIT_COMMIT="v${PV}"
KEYWORDS="~amd64"
fi
inherit bash-completion-r1 git-2 linux-info systemd user
LICENSE="Apache-2.0"
SLOT="0"
IUSE="doc vim-syntax"
CDEPEND="
>=dev-db/sqlite-3.7.9:3
"
DEPEND="
${CDEPEND}
>=dev-lang/go-1.1.2
dev-vcs/git
dev-vcs/mercurial
doc? (
dev-python/sphinx
dev-python/sphinxcontrib-httpdomain
)
"
RDEPEND="
${CDEPEND}
!app-emulation/lxc-docker-bin
>=app-arch/tar-1.26
>=sys-apps/iproute2-3.5
>=net-firewall/iptables-1.4
>=app-emulation/lxc-0.8
>=dev-vcs/git-1.7
>=app-arch/xz-utils-4.9
|| (
sys-fs/aufs3
sys-kernel/aufs-sources
)
"
RESTRICT="strip"
CONFIG_CHECK="
~AUFS_FS
~BRIDGE
~MEMCG_SWAP
~NETFILTER_XT_MATCH_ADDRTYPE
~NF_NAT
~NF_NAT_NEEDED
"
# TODO AUFS will be replaced with device-mapper (requires sys-fs/lvm2[thin]) in 0.7
ERROR_AUFS_FS="AUFS_FS is required to be set if and only if aufs-sources are used"
ERROR_MEMCG_SWAP="MEMCG_SWAP is required if you wish to limit swap usage of containers"
pkg_setup() {
check_extra_config
}
src_unpack() {
git-2_src_unpack
}
src_compile() {
export GOPATH="${WORKDIR}/gopath"
mkdir -p "$GOPATH" || die
# make sure docker itself is in our shiny new GOPATH
mkdir -p "${GOPATH}/src/github.com/dotcloud" || die
ln -sf "$(pwd -P)" "${GOPATH}/src/github.com/dotcloud/docker" || die
# we need our vendored deps, too
export GOPATH="$GOPATH:$(pwd -P)/vendor"
# time to build!
./hack/make.sh dynbinary || die
if use doc; then
emake -C docs docs man || die
fi
}
src_install() {
VERSION=$(cat VERSION)
newbin bundles/$VERSION/dynbinary/docker-$VERSION docker
exeinto /usr/libexec/docker
newexe bundles/$VERSION/dynbinary/dockerinit-$VERSION dockerinit
newinitd contrib/init/openrc/docker.initd docker
newconfd contrib/init/openrc/docker.confd docker
systemd_dounit contrib/init/systemd/docker.service
dodoc AUTHORS CONTRIBUTING.md CHANGELOG.md NOTICE README.md
if use doc; then
dohtml -r docs/_build/html/*
doman docs/_build/man/*
fi
dobashcomp contrib/completion/bash/*
insinto /usr/share/zsh/site-functions
doins contrib/completion/zsh/*
if use vim-syntax; then
insinto /usr/share/vim/vimfiles
doins -r contrib/vim-syntax/ftdetect
doins -r contrib/vim-syntax/syntax
fi
insinto /usr/share/${P}/contrib
doins contrib/README
cp -R "${S}/contrib"/* "${D}/usr/share/${P}/contrib/"
}
pkg_postinst() {
elog ""
elog "To use docker, the docker daemon must be running as root. To automatically"
elog "start the docker daemon at boot, add docker to the default runlevel:"
elog " rc-update add docker default"
elog "Similarly for systemd:"
elog " systemctl enable docker.service"
elog ""
# create docker group if the code checking for it in /etc/group exists
enewgroup docker
elog "To use docker as a non-root user, add yourself to the docker group."
elog ""
ewarn ""
ewarn "If you want your containers to have access to the public internet or even"
ewarn "the existing private network, IP Forwarding must be enabled:"
ewarn " sysctl -w net.ipv4.ip_forward=1"
ewarn "or more permanently:"
ewarn " echo net.ipv4.ip_forward = 1 > /etc/sysctl.d/${PN}.conf"
ewarn "Please be mindful of the security implications of enabling IP Forwarding."
ewarn ""
}

View File

@ -1,169 +0,0 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-emulation/docker/docker-0.7.0.ebuild,v 1.1 2013/11/26 15:17:48 gregkh Exp $
EAPI=5
DESCRIPTION="Docker complements LXC with a high-level API which operates at the process level."
HOMEPAGE="http://www.docker.io/"
SRC_URI=""
EGIT_REPO_URI="git://github.com/dotcloud/docker.git"
if [[ ${PV} == *9999 ]]; then
KEYWORDS=""
else
EGIT_COMMIT="v${PV}"
KEYWORDS="~amd64"
fi
inherit bash-completion-r1 git-2 linux-info systemd user
LICENSE="Apache-2.0"
SLOT="0"
IUSE="aufs +device-mapper doc vim-syntax"
CDEPEND="
>=dev-db/sqlite-3.7.9:3
device-mapper? (
sys-fs/lvm2[thin]
)
"
DEPEND="
${CDEPEND}
>=dev-lang/go-1.1.2
dev-vcs/git
dev-vcs/mercurial
doc? (
dev-python/sphinx
dev-python/sphinxcontrib-httpdomain
)
"
RDEPEND="
${CDEPEND}
!app-emulation/docker-bin
>=app-arch/tar-1.26
>=sys-apps/iproute2-3.5
>=net-firewall/iptables-1.4
>=app-emulation/lxc-0.8
>=dev-vcs/git-1.7
>=app-arch/xz-utils-4.9
aufs? (
|| (
sys-fs/aufs3
sys-kernel/aufs-sources
)
)
"
RESTRICT="strip"
pkg_setup() {
CONFIG_CHECK+="
~BRIDGE
~MEMCG_SWAP
~NETFILTER_XT_MATCH_ADDRTYPE
~NF_NAT
~NF_NAT_NEEDED
"
ERROR_MEMCG_SWAP="MEMCG_SWAP is required if you wish to limit swap usage of containers"
if use aufs; then
CONFIG_CHECK+="
~AUFS_FS
"
ERROR_AUFS_FS="AUFS_FS is required to be set if and only if aufs-sources are used"
fi
if use device-mapper; then
CONFIG_CHECK+="
~BLK_DEV_DM
~DM_THIN_PROVISIONING
~EXT4_FS
"
fi
check_extra_config
}
src_unpack() {
git-2_src_unpack
}
src_compile() {
export GOPATH="${WORKDIR}/gopath"
mkdir -p "$GOPATH" || die
# make sure docker itself is in our shiny new GOPATH
mkdir -p "${GOPATH}/src/github.com/dotcloud" || die
ln -sf "$(pwd -P)" "${GOPATH}/src/github.com/dotcloud/docker" || die
# we need our vendored deps, too
export GOPATH="$GOPATH:$(pwd -P)/vendor"
# time to build!
export CGO_CFLAGS="-I${ROOT}/usr/include"
export CGO_LDFLAGS="-L${ROOT}/usr/lib"
./hack/make.sh dynbinary || die
if use doc; then
emake -C docs docs man || die
fi
}
src_install() {
VERSION=$(cat VERSION)
newbin bundles/$VERSION/dynbinary/docker-$VERSION docker
exeinto /usr/libexec/docker
newexe bundles/$VERSION/dynbinary/dockerinit-$VERSION dockerinit
newinitd contrib/init/openrc/docker.initd docker
newconfd contrib/init/openrc/docker.confd docker
systemd_dounit contrib/init/systemd/docker.service
dodoc AUTHORS CONTRIBUTING.md CHANGELOG.md NOTICE README.md
if use doc; then
dohtml -r docs/_build/html/*
doman docs/_build/man/*
fi
dobashcomp contrib/completion/bash/*
insinto /usr/share/zsh/site-functions
doins contrib/completion/zsh/*
if use vim-syntax; then
insinto /usr/share/vim/vimfiles
doins -r contrib/vim-syntax/ftdetect
doins -r contrib/vim-syntax/syntax
fi
insinto /usr/share/${P}/contrib
doins contrib/README
cp -R "${S}/contrib"/* "${D}/usr/share/${P}/contrib/"
}
pkg_postinst() {
elog ""
elog "To use docker, the docker daemon must be running as root. To automatically"
elog "start the docker daemon at boot, add docker to the default runlevel:"
elog " rc-update add docker default"
elog "Similarly for systemd:"
elog " systemctl enable docker.service"
elog ""
# create docker group if the code checking for it in /etc/group exists
enewgroup docker
elog "To use docker as a non-root user, add yourself to the docker group."
elog ""
ewarn ""
ewarn "If you want your containers to have access to the public internet or even"
ewarn "the existing private network, IP Forwarding must be enabled:"
ewarn " sysctl -w net.ipv4.ip_forward=1"
ewarn "or more permanently:"
ewarn " echo net.ipv4.ip_forward = 1 > /etc/sysctl.d/${PN}.conf"
ewarn "Please be mindful of the security implications of enabling IP Forwarding."
ewarn ""
}

View File

@ -1,18 +0,0 @@
# /etc/conf.d/docker: config file for /etc/init.d/docker
# where the docker daemon output gets piped
#DOCKER_LOGFILE="/var/log/docker.log"
# where docker's pid get stored
#DOCKER_PIDFILE="/run/docker.pid"
# where the docker daemon itself is run from
#DOCKER_BINARY="/usr/bin/docker"
# uncomment this for a simple workaround to
# https://github.com/dotcloud/docker/issues/1422
#DOCKER_WORKAROUND_1422="1"
# if you find that the default DOCKER_WORKAROUND_1422 delay of one second
# is not sufficient, try uncommenting and increasing this value
#DOCKER_WORKAROUND_1422_DELAY="1"

View File

@ -1,56 +0,0 @@
#!/sbin/runscript
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-emulation/docker/files/docker-r2.initd,v 1.1 2013/09/25 03:22:15 gregkh Exp $
DOCKER_LOGFILE=${DOCKER_LOGFILE:-/var/log/${SVCNAME}.log}
DOCKER_PIDFILE=${DOCKER_PIDFILE:-/run/${SVCNAME}.pid}
DOCKER_BINARY=${DOCKER_BINARY:-/usr/bin/docker}
DOCKER_WORKAROUND_1422=${DOCKER_WORKAROUND_1422:-0}
DOCKER_WORKAROUND_1422_DELAY=${DOCKER_WORKAROUND_1422_DELAY:-1}
start() {
touch "$DOCKER_LOGFILE"
chown root:docker "$DOCKER_LOGFILE"
chmod 0644 "$DOCKER_LOGFILE"
ebegin "Starting docker daemon"
start-stop-daemon --start --background \
--exec "$DOCKER_BINARY" \
--pidfile "$DOCKER_PIDFILE" \
--stdout "$DOCKER_LOGFILE" \
--stderr "$DOCKER_LOGFILE" \
-- -d -p "$DOCKER_PIDFILE"
eend $?
ret=$?
if [ $ret -eq 0 ] \
&& [ "$DOCKER_WORKAROUND_1422" ] \
&& [ "$DOCKER_WORKAROUND_1422" -gt 0 ] \
; then
# see https://github.com/dotcloud/docker/issues/1422
ewarn "Working around gh#1422 (via busybox image); this may take a moment"
# we were calling "docker run" more quickly than "docker -d" could get
# fired up, so our workaround wasn't successful without a short delay
sleep $DOCKER_WORKAROUND_1422_DELAY
# TODO when we get https://github.com/dotcloud/docker/pull/1589, these
# both need -rm so we clean up after ourselves (thanks, @eliasp!)
docker run -i -t busybox true &> /dev/null || true
# first run will fail, so we ignore its output and result and run again
docker run -i -t busybox true
ewend $?
fi
return $ret
}
stop() {
ebegin "Stopping docker daemon"
start-stop-daemon --stop \
--exec "$DOCKER_BINARY" \
--pidfile "$DOCKER_PIDFILE"
eend $?
}

View File

@ -1,31 +0,0 @@
#!/sbin/runscript
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-emulation/docker/files/docker.initd,v 1.1 2013/09/25 03:22:15 gregkh Exp $
DOCKER_LOGFILE=${DOCKER_LOGFILE:-/var/log/${SVCNAME}.log}
DOCKER_PIDFILE=${DOCKER_PIDFILE:-/run/${SVCNAME}.pid}
DOCKER_BINARY=${DOCKER_BINARY:-/usr/bin/docker}
start() {
touch "$DOCKER_LOGFILE"
chown root:docker "$DOCKER_LOGFILE"
chmod 0644 "$DOCKER_LOGFILE"
ebegin "Starting docker daemon"
start-stop-daemon --start --background \
--exec "$DOCKER_BINARY" \
--pidfile "$DOCKER_PIDFILE" \
--stdout "$DOCKER_LOGFILE" \
--stderr "$DOCKER_LOGFILE" \
-- -d -p "$DOCKER_PIDFILE"
eend $?
}
stop() {
ebegin "Stopping docker daemon"
start-stop-daemon --stop \
--exec "$DOCKER_BINARY" \
--pidfile "$DOCKER_PIDFILE"
eend $?
}

View File

@ -1,13 +0,0 @@
[Unit]
Description=Docker - The Linux Container Engine
Requires=network.target
After=multi-user.target
[Service]
Type=simple
ExecStartPre=/bin/mount --make-rprivate /
ExecStart=/usr/bin/docker -d
TimeoutSec=60
[Install]
WantedBy=multi-user.target

View File

@ -1,25 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<longdescription>
Docker is an open-source project to easily create lightweight,
portable, self-sufficient containers from any application. The same
container that a developer builds and tests on a laptop can run at
scale, in production, on VMs, bare metal, OpenStack clusters, public
clouds and more.
</longdescription>
<maintainer status="active">
<email>admwiggin@gmail.com</email>
<name>Tianon</name>
</maintainer>
<use>
<flag name="aufs">
Enables dependencies for the "aufs" driver, including necessary
kernel flags.
</flag>
<flag name="device-mapper">
Enables dependencies for the "device-mapper" driver, including
necessary kernel flags.
</flag>
</use>
</pkgmetadata>