Docker: Add AppArmor support
This commit is contained in:
parent
38953a241f
commit
e45b230c74
1 changed files with 5 additions and 5 deletions
|
@ -1,13 +1,13 @@
|
||||||
# Template file for 'docker'
|
# Template file for 'docker'
|
||||||
pkgname=docker
|
pkgname=docker
|
||||||
version=18.05.0
|
version=18.05.0
|
||||||
revision=1
|
revision=2
|
||||||
_subversion='-ce'
|
_subversion='-ce'
|
||||||
_version="$version$_subversion"
|
_version="$version$_subversion"
|
||||||
wrksrc="$pkgname$_subversion-$_version"
|
wrksrc="$pkgname$_subversion-$_version"
|
||||||
build_wrksrc="components/engine"
|
build_wrksrc="components/engine"
|
||||||
hostmakedepends="git go pkg-config curl cmake"
|
hostmakedepends="git go pkg-config curl cmake"
|
||||||
makedepends="libbtrfs-devel sqlite-devel device-mapper-devel libseccomp-devel"
|
makedepends="libbtrfs-devel sqlite-devel device-mapper-devel libseccomp-devel libapparmor-devel"
|
||||||
short_desc="Pack, ship and run any application as a lightweight container"
|
short_desc="Pack, ship and run any application as a lightweight container"
|
||||||
maintainer="Andrea Brancaleoni <abc@pompel.me>"
|
maintainer="Andrea Brancaleoni <abc@pompel.me>"
|
||||||
license="Apache-2.0"
|
license="Apache-2.0"
|
||||||
|
@ -26,15 +26,15 @@ system_groups="docker"
|
||||||
_docker_components="runc containerd tini proxy dockercli"
|
_docker_components="runc containerd tini proxy dockercli"
|
||||||
|
|
||||||
do_build() {
|
do_build() {
|
||||||
AUTO_GOPATH=1 DOCKER_BUILDTAGS='seccomp' DOCKER_GITCOMMIT=v$_version \
|
AUTO_GOPATH=1 DOCKER_BUILDTAGS='seccomp apparmor' DOCKER_GITCOMMIT=v$_version \
|
||||||
hack/make.sh dynbinary
|
hack/make.sh dynbinary
|
||||||
}
|
}
|
||||||
|
|
||||||
pre_build() {
|
pre_build() {
|
||||||
vmkdir usr/bin
|
vmkdir usr/bin
|
||||||
sed -i "s|/usr/local|$DESTDIR/usr|g; s|apparmor ||g" hack/dockerfile/install/install.sh
|
sed -i "s|/usr/local|$DESTDIR/usr|g" hack/dockerfile/install/install.sh
|
||||||
for COMPONENT in $_docker_components; do
|
for COMPONENT in $_docker_components; do
|
||||||
AUTO_GOPATH=1 LDFLAGS='' DOCKER_BUILDTAGS='seccomp' DOCKER_GITCOMMIT=v$_version \
|
AUTO_GOPATH=1 LDFLAGS='' DOCKER_BUILDTAGS='seccomp apparmor' DOCKER_GITCOMMIT=v$_version \
|
||||||
hack/dockerfile/install/install.sh $COMPONENT
|
hack/dockerfile/install/install.sh $COMPONENT
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue