aboutsummaryrefslogtreecommitdiffstats
path: root/community/docker/APKBUILD
diff options
context:
space:
mode:
authorGennady Feldman <gena01@gmail.com>2017-02-16 07:13:49 -0500
committerNatanael Copa <ncopa@alpinelinux.org>2017-03-24 15:04:32 +0000
commitb53f565813bb524acaf5903966b52865dbef7071 (patch)
treec7720ec0fbcbb28cc8de6fa0c5efb1834585fc20 /community/docker/APKBUILD
parentdc0b1d08ae6405c9cc2ff6503ef726453fd912e7 (diff)
downloadaports-b53f565813bb524acaf5903966b52865dbef7071.tar.bz2
aports-b53f565813bb524acaf5903966b52865dbef7071.tar.xz
community/docker: Fixing APKBUILD, adding tini.
* Trying to fix broken APKBUILD. (Wasn't catching package errors) * Adding tini (docker-init binary) * Added fish completion sub-package * Re-enabled aufs and devicemapper
Diffstat (limited to 'community/docker/APKBUILD')
-rw-r--r--community/docker/APKBUILD58
1 files changed, 40 insertions, 18 deletions
diff --git a/community/docker/APKBUILD b/community/docker/APKBUILD
index 88c48a6e53..58cd992feb 100644
--- a/community/docker/APKBUILD
+++ b/community/docker/APKBUILD
@@ -1,33 +1,36 @@
# Maintainer: Eivind Uggedal <eivind@uggedal.com>
pkgname=docker
-pkgver=1.13.1
-_ver=${pkgver/_/-}
+pkgver=17.03.0
+_ver=${pkgver/_/-}-ce
pkgrel=0
_gitcommit=v$_ver
pkgdesc="Pack, ship and run any application as a lightweight container"
url="http://www.docker.io/"
arch="all"
license="ASL 2.0"
-depends="iptables git xz"
+depends="iptables"
depends_dev=""
-makedepends="go btrfs-progs-dev bash linux-headers coreutils libseccomp-dev"
-options="!strip"
+makedepends="go btrfs-progs-dev bash linux-headers coreutils libseccomp-dev cmake lvm2-dev"
+options="!check"
install="$pkgname.pre-install"
# $ grep COMMIT hack/dockerfile/binaries-commits
# TOMLV_COMMIT=9baf8a8a9f2ed20a8e54160840c492f937eeaf9a
-# RUNC_COMMIT=2f7393a47307a16f8cee44a37b262e8b81021e3e
-# CONTAINERD_COMMIT=03e5862ec0d8d3b3f750e19fca3ee367e13c090e
+# RUNC_COMMIT=a01dafd48bc1c7cc12bdb01206f9fea7dd6feb70
+# CONTAINERD_COMMIT=977c511eda0925a723debdc94d09459af49d082a
# TINI_COMMIT=949e6facb77383876aeff8a6944dde66b3089574
# LIBNETWORK_COMMIT=0f534354b813003a754606689722fe253101bc4e
# VNDR_COMMIT=f56bd4504b4fad07a357913687fb652ee54bb3b0
+# BINDATA_COMMIT=a0ff2567cfb70903282db057e799fd826784d41d
-_runc_ver=2f7393a47307a16f8cee44a37b262e8b81021e3e
-_containerd_ver=03e5862ec0d8d3b3f750e19fca3ee367e13c090e
+_runc_ver=a01dafd48bc1c7cc12bdb01206f9fea7dd6feb70
+_containerd_ver=977c511eda0925a723debdc94d09459af49d082a
_libnetwork_ver=0f534354b813003a754606689722fe253101bc4e
+_tini_ver=949e6facb77383876aeff8a6944dde66b3089574
subpackages="
$pkgname-bash-completion:bashcomp:noarch
+ $pkgname-fish-completion:fishcomp:noarch
$pkgname-zsh-completion:zshcomp:noarch
$pkgname-vim:vim:noarch
"
@@ -36,17 +39,19 @@ source="
runc-$_runc_ver.tar.gz::https://github.com/opencontainers/runc/archive/$_runc_ver.tar.gz
containerd-$_containerd_ver.tar.gz::https://github.com/docker/containerd/archive/$_containerd_ver.tar.gz
libnetwork-$_libnetwork_ver.tar.gz::https://github.com/docker/libnetwork/archive/$_libnetwork_ver.tar.gz
-
+ tini-$_tini_ver.tar.gz::https://github.com/krallin/tini/archive/$_tini_ver.tar.gz
docker-openrc-fixes.patch
"
builddir="$srcdir"/$pkgname-$_ver
-_buildtags="exclude_graphdriver_aufs exclude_graphdriver_devicemapper"
+#_buildtags="exclude_graphdriver_aufs exclude_graphdriver_devicemapper"
+_buildtags=""
_runc_buildtags="seccomp"
_runc_builddir="$srcdir"/runc-$_runc_ver
_containerd_builddir="$srcdir"/containerd-$_containerd_ver
_libnetwork_builddir="$srcdir"/libnetwork-$_libnetwork_ver
+_tini_builddir="$srcdir"/tini-$_tini_ver
_apply_patches() {
local _dir="$1"
@@ -96,6 +101,12 @@ build() {
cd "$_runc_builddir" || return 1
GOPATH="$PWD" make COMMIT="$_runc_ver" || return 1
+ # tini
+ msg "building tini"
+ cd "$_tini_builddir" || return 1
+ cmake . || return 1
+ make tini-static|| return 1
+
# docker
msg "building docker"
cd "$builddir"
@@ -127,12 +138,13 @@ package() {
install -Dm755 "$_containerd_builddir"/bin/ctr \
"$pkgdir"/usr/bin/docker-containerd-ctr || return 1
- install -Dm755 bundles/$ver/dynbinary/dockerinit-$ver \
- "$pkgdir"/usr/lib/docker/dockerinit
+ install -Dm755 "$_tini_builddir"/tini-static \
+ "$pkgdir"/usr/bin/docker-init || return 1
+
install -Dm755 contrib/init/openrc/docker.initd \
- "$pkgdir"/etc/init.d/docker
+ "$pkgdir"/etc/init.d/docker || return 1
install -Dm644 contrib/init/openrc/docker.confd \
- "$pkgdir"/etc/conf.d/docker
+ "$pkgdir"/etc/conf.d/docker || return 1
}
bashcomp() {
@@ -144,6 +156,15 @@ bashcomp() {
"$subpkgdir"/usr/share/bash-completion/completions/$pkgname
}
+fishcomp() {
+ pkgdesc="Fish shell completion for Docker"
+ depends=""
+ install_if="$pkgname=$pkgver-r$pkgrel fish"
+
+ install -Dm644 "$builddir"/contrib/completion/fish/$pkgname.fish \
+ "$subpkgdir"/usr/share/fish/completions/$pkgname.fish || return 1
+}
+
zshcomp() {
pkgdesc="Zsh completion for $pkgname"
depends=""
@@ -164,8 +185,9 @@ vim() {
done
}
-sha512sums="e480a884d7bb4f41f5c036afd5fae878e03aa740297dd3dd4df0eb8766efa6426ba636453513b423666eea21ba99f162ec27885828f8348d8746424944a3cfb4 docker-1.13.1.tar.gz
-2c2c925a1274eaef16d54881bfaa3e535956b67dd10eed87096ae9e7576234ff3598d37e635d3ce88c10fa9d102e79300bd48b69b972b6082f7acbfe2d4e90ea runc-2f7393a47307a16f8cee44a37b262e8b81021e3e.tar.gz
-7c320a8f8fc12ae74ccda00d0f2f45f66d7592b5d209a62553cff3463a6006d8ad0275e0ae4ef07879455a32767f1d33f8f0f34392d28be4e6c217eee0f36ca3 containerd-03e5862ec0d8d3b3f750e19fca3ee367e13c090e.tar.gz
+sha512sums="042d94143f8867e8165e4c306188fc8e5801faaa9901716a509c5a9f380e460ab54b4c48ee223909c0bf9360ec023b765e6258acbe1f03e6513a8fc364663970 docker-17.03.0.tar.gz
+1ea7ed8a98b2cbc508933608d7dc16b26c1507021200691e66fa61d4c567a5437aafae8b9710bf29ba94a8c4853de7f9e38e9e09de9a358a68e0e431771a13cc runc-a01dafd48bc1c7cc12bdb01206f9fea7dd6feb70.tar.gz
+511732a70d3bea6efe85f2e41fe5d23a2e6d2bc85d961a5f757064d4a5062677e9c839ec94a7650c8dd37a1c0da32bcb74171dad257ba23e4bb1c7a045433d24 containerd-977c511eda0925a723debdc94d09459af49d082a.tar.gz
754cf6489968f3a83392c52b9445f71e8d5faca96e23ffc3ee2c6e8644bf065b64c7497395cf8fac9cc083ce9c7668260e319d01a8f10613e67db2d8254f6b06 libnetwork-0f534354b813003a754606689722fe253101bc4e.tar.gz
+b6c1454f734662adf2fdedcb75cb7cdc82f4cf5b4c41fadf6891a670fa26d49b789034f4af8bf920b9e1ff1c3536123637ade9471f4ae2c1ef6c534e839b9f27 tini-949e6facb77383876aeff8a6944dde66b3089574.tar.gz
8296b1bc88ef3dec4f9038c4e0bf83120ac5870860f6662eac9f9f8850ea8b7596bcd2b47932551e804ae8b6f6f26ad3bc4ce6d49600cc8eaf0a3016c15a9ccf docker-openrc-fixes.patch"