Procházet zdrojové kódy

Merge pull request #21499 from cyli/hardware-signing-experimental-again

Move hardware signing back to experimental again
Alexander Morozov před 9 roky
rodič
revize
d5019972e5

+ 1 - 1
Dockerfile

@@ -203,7 +203,7 @@ RUN useradd --create-home --gid docker unprivilegeduser
 
 
 VOLUME /var/lib/docker
 VOLUME /var/lib/docker
 WORKDIR /go/src/github.com/docker/docker
 WORKDIR /go/src/github.com/docker/docker
-ENV DOCKER_BUILDTAGS apparmor pkcs11 seccomp selinux
+ENV DOCKER_BUILDTAGS apparmor seccomp selinux
 
 
 # Let us use a .bashrc file
 # Let us use a .bashrc file
 RUN ln -sfv $PWD/.bashrc ~/.bashrc
 RUN ln -sfv $PWD/.bashrc ~/.bashrc

+ 1 - 1
Dockerfile.aarch64

@@ -152,7 +152,7 @@ RUN useradd --create-home --gid docker unprivilegeduser
 
 
 VOLUME /var/lib/docker
 VOLUME /var/lib/docker
 WORKDIR /go/src/github.com/docker/docker
 WORKDIR /go/src/github.com/docker/docker
-ENV DOCKER_BUILDTAGS apparmor pkcs11 seccomp selinux
+ENV DOCKER_BUILDTAGS apparmor seccomp selinux
 
 
 # Let us use a .bashrc file
 # Let us use a .bashrc file
 RUN ln -sfv $PWD/.bashrc ~/.bashrc
 RUN ln -sfv $PWD/.bashrc ~/.bashrc

+ 1 - 1
Dockerfile.armhf

@@ -154,7 +154,7 @@ RUN useradd --create-home --gid docker unprivilegeduser
 
 
 VOLUME /var/lib/docker
 VOLUME /var/lib/docker
 WORKDIR /go/src/github.com/docker/docker
 WORKDIR /go/src/github.com/docker/docker
-ENV DOCKER_BUILDTAGS apparmor pkcs11 seccomp selinux
+ENV DOCKER_BUILDTAGS apparmor seccomp selinux
 
 
 # Let us use a .bashrc file
 # Let us use a .bashrc file
 RUN ln -sfv $PWD/.bashrc ~/.bashrc
 RUN ln -sfv $PWD/.bashrc ~/.bashrc

+ 1 - 1
Dockerfile.ppc64le

@@ -155,7 +155,7 @@ RUN useradd --create-home --gid docker unprivilegeduser
 
 
 VOLUME /var/lib/docker
 VOLUME /var/lib/docker
 WORKDIR /go/src/github.com/docker/docker
 WORKDIR /go/src/github.com/docker/docker
-ENV DOCKER_BUILDTAGS apparmor pkcs11 selinux
+ENV DOCKER_BUILDTAGS apparmor selinux
 
 
 # Let us use a .bashrc file
 # Let us use a .bashrc file
 RUN ln -sfv $PWD/.bashrc ~/.bashrc
 RUN ln -sfv $PWD/.bashrc ~/.bashrc

+ 1 - 1
Dockerfile.s390x

@@ -134,7 +134,7 @@ RUN useradd --create-home --gid docker unprivilegeduser
 
 
 VOLUME /var/lib/docker
 VOLUME /var/lib/docker
 WORKDIR /go/src/github.com/docker/docker
 WORKDIR /go/src/github.com/docker/docker
-ENV DOCKER_BUILDTAGS apparmor pkcs11 selinux
+ENV DOCKER_BUILDTAGS apparmor selinux
 
 
 # Let us use a .bashrc file
 # Let us use a .bashrc file
 RUN ln -sfv $PWD/.bashrc ~/.bashrc
 RUN ln -sfv $PWD/.bashrc ~/.bashrc

+ 1 - 1
hack/make.sh

@@ -113,7 +113,7 @@ fi
 if [ "$DOCKER_EXPERIMENTAL" ]; then
 if [ "$DOCKER_EXPERIMENTAL" ]; then
 	echo >&2 '# WARNING! DOCKER_EXPERIMENTAL is set: building experimental features'
 	echo >&2 '# WARNING! DOCKER_EXPERIMENTAL is set: building experimental features'
 	echo >&2
 	echo >&2
-	DOCKER_BUILDTAGS+=" experimental"
+	DOCKER_BUILDTAGS+=" experimental pkcs11"
 fi
 fi
 
 
 if [ -z "$DOCKER_CLIENTONLY" ]; then
 if [ -z "$DOCKER_CLIENTONLY" ]; then

+ 2 - 2
hack/make/.build-deb/rules

@@ -5,8 +5,8 @@ VERSION = $(shell cat VERSION)
 override_dh_gencontrol:
 override_dh_gencontrol:
 	# if we're on Ubuntu, we need to Recommends: apparmor
 	# if we're on Ubuntu, we need to Recommends: apparmor
 	echo 'apparmor:Recommends=$(shell dpkg-vendor --is Ubuntu && echo apparmor)' >> debian/docker-engine.substvars
 	echo 'apparmor:Recommends=$(shell dpkg-vendor --is Ubuntu && echo apparmor)' >> debian/docker-engine.substvars
-	# recommend yubico-piv-tool since we include pkcs11 by default
-	echo 'yubico:Recommends=yubico-piv-tool (>= 1.1.0~)' >> debian/docker-engine.substvars
+	# if we are building experimental we recommend yubico-piv-tool
+	echo 'yubico:Recommends=$(shell [ "$DOCKER_EXPERIMENTAL" ] && echo "yubico-piv-tool (>= 1.1.0~)")' >> debian/docker-engine.substvars
 	dh_gencontrol
 	dh_gencontrol
 
 
 override_dh_auto_build:
 override_dh_auto_build:

+ 3 - 1
hack/make/.build-rpm/docker-engine.spec

@@ -60,10 +60,12 @@ Requires: device-mapper >= 1.02.90-2
 %global with_selinux 1
 %global with_selinux 1
 %endif
 %endif
 
 
-# yubico-piv-tool recommends
+%if 0%{?_experimental}
+# yubico-piv-tool conditional
 %if 0%{?fedora} >= 20 || 0%{?centos} >= 7 || 0%{?rhel} >= 7
 %if 0%{?fedora} >= 20 || 0%{?centos} >= 7 || 0%{?rhel} >= 7
 Requires: yubico-piv-tool >= 1.1.0
 Requires: yubico-piv-tool >= 1.1.0
 %endif
 %endif
+%endif
 
 
 # start if with_selinux
 # start if with_selinux
 %if 0%{?with_selinux}
 %if 0%{?with_selinux}

+ 1 - 1
hack/make/binary

@@ -36,7 +36,7 @@ if [ "$(go env GOOS)" == "linux" ] ; then
 	esac
 	esac
 fi
 fi
 
 
-if [ "$IAMSTATIC" == "true" ] && [ "$(go env GOHOSTOS)" == "linux" ]; then
+if [ "$IAMSTATIC" == "true" ] && [ "$(go env GOHOSTOS)" == "linux" ] && [ "$DOCKER_EXPERIMENTAL" ]; then
 	if  [ "${GOOS}/${GOARCH}" == "darwin/amd64" ]; then
 	if  [ "${GOOS}/${GOARCH}" == "darwin/amd64" ]; then
 		export CGO_ENABLED=1
 		export CGO_ENABLED=1
 		export CC=o64-clang
 		export CC=o64-clang

+ 1 - 1
project/PACKAGERS.md

@@ -60,7 +60,7 @@ To build the Docker daemon, you will additionally need:
 * btrfs-progs version 3.16.1 or later (unless using an older version is
 * btrfs-progs version 3.16.1 or later (unless using an older version is
   absolutely necessary, in which case 3.8 is the minimum)
   absolutely necessary, in which case 3.8 is the minimum)
 * libseccomp version 2.2.1 or later (for build tag seccomp)
 * libseccomp version 2.2.1 or later (for build tag seccomp)
-* yubico-piv-tool version 1.1.0 or later
+* yubico-piv-tool version 1.1.0 or later (for experimental)
 
 
 Be sure to also check out Docker's Dockerfile for the most up-to-date list of
 Be sure to also check out Docker's Dockerfile for the most up-to-date list of
 these build-time dependencies.
 these build-time dependencies.