github.com/rita33cool1/iot-system-gateway@v0.0.0-20200911033302-e65bde238cc5/docker-engine/Dockerfile.ppc64le (about) 1 # This file describes the standard way to build Docker on ppc64le, using docker 2 # 3 # Usage: 4 # 5 # # Assemble the full dev environment. This is slow the first time. 6 # docker build -t docker -f Dockerfile.ppc64le . 7 # 8 # # Mount your source in an interactive container for quick testing: 9 # docker run -v `pwd`:/go/src/github.com/docker/docker --privileged -i -t docker bash 10 # 11 # # Run the test suite: 12 # docker run --privileged docker hack/make.sh test-unit test-integration test-docker-py 13 # 14 # Note: AppArmor used to mess with privileged mode, but this is no longer 15 # the case. Therefore, you don't have to disable it anymore. 16 # 17 18 FROM ppc64le/debian:stretch 19 20 # allow replacing httpredir or deb mirror 21 ARG APT_MIRROR=deb.debian.org 22 RUN sed -ri "s/(httpredir|deb).debian.org/$APT_MIRROR/g" /etc/apt/sources.list 23 24 # Packaged dependencies 25 RUN apt-get update && apt-get install -y \ 26 apparmor \ 27 apt-utils \ 28 aufs-tools \ 29 automake \ 30 bash-completion \ 31 btrfs-tools \ 32 build-essential \ 33 cmake \ 34 createrepo \ 35 curl \ 36 dpkg-sig \ 37 git \ 38 iptables \ 39 jq \ 40 net-tools \ 41 libapparmor-dev \ 42 libcap-dev \ 43 libdevmapper-dev \ 44 libseccomp-dev \ 45 libsystemd-dev \ 46 libtool \ 47 libudev-dev \ 48 mercurial \ 49 pigz \ 50 pkg-config \ 51 python-backports.ssl-match-hostname \ 52 python-dev \ 53 python-mock \ 54 python-pip \ 55 python-requests \ 56 python-setuptools \ 57 python-websocket \ 58 python-wheel \ 59 xfsprogs \ 60 tar \ 61 thin-provisioning-tools \ 62 vim-common \ 63 --no-install-recommends 64 65 # Install Go 66 # NOTE: official ppc64le go binaries weren't available until go 1.6.4 and 1.7.4 67 # IMPORTANT: When updating this please note that stdlib archive/tar pkg is vendored 68 ENV GO_VERSION 1.9.5 69 RUN curl -fsSL "https://golang.org/dl/go${GO_VERSION}.linux-ppc64le.tar.gz" \ 70 | tar -xzC /usr/local 71 72 ENV PATH /go/bin:/usr/local/go/bin:$PATH 73 ENV GOPATH /go 74 75 # Install two versions of the registry. The first is an older version that 76 # only supports schema1 manifests. The second is a newer version that supports 77 # both. This allows integration-cli tests to cover push/pull with both schema1 78 # and schema2 manifests. 79 ENV REGISTRY_COMMIT_SCHEMA1 ec87e9b6971d831f0eff752ddb54fb64693e51cd 80 ENV REGISTRY_COMMIT 47a064d4195a9b56133891bbb13620c3ac83a827 81 RUN set -x \ 82 && export GOPATH="$(mktemp -d)" \ 83 && git clone https://github.com/docker/distribution.git "$GOPATH/src/github.com/docker/distribution" \ 84 && (cd "$GOPATH/src/github.com/docker/distribution" && git checkout -q "$REGISTRY_COMMIT") \ 85 && GOPATH="$GOPATH/src/github.com/docker/distribution/Godeps/_workspace:$GOPATH" \ 86 go build -buildmode=pie -o /usr/local/bin/registry-v2 github.com/docker/distribution/cmd/registry \ 87 && (cd "$GOPATH/src/github.com/docker/distribution" && git checkout -q "$REGISTRY_COMMIT_SCHEMA1") \ 88 && GOPATH="$GOPATH/src/github.com/docker/distribution/Godeps/_workspace:$GOPATH" \ 89 go build -buildmode=pie -o /usr/local/bin/registry-v2-schema1 github.com/docker/distribution/cmd/registry \ 90 && rm -rf "$GOPATH" 91 92 # Install notary and notary-server 93 ENV NOTARY_VERSION v0.5.0 94 RUN set -x \ 95 && export GOPATH="$(mktemp -d)" \ 96 && git clone https://github.com/docker/notary.git "$GOPATH/src/github.com/docker/notary" \ 97 && (cd "$GOPATH/src/github.com/docker/notary" && git checkout -q "$NOTARY_VERSION") \ 98 && GOPATH="$GOPATH/src/github.com/docker/notary/vendor:$GOPATH" \ 99 go build -buildmode=pie -o /usr/local/bin/notary-server github.com/docker/notary/cmd/notary-server \ 100 && GOPATH="$GOPATH/src/github.com/docker/notary/vendor:$GOPATH" \ 101 go build -buildmode=pie -o /usr/local/bin/notary github.com/docker/notary/cmd/notary \ 102 && rm -rf "$GOPATH" 103 104 # Get the "docker-py" source so we can run their integration tests 105 ENV DOCKER_PY_COMMIT 8b246db271a85d6541dc458838627e89c683e42f 106 # To run integration tests docker-pycreds is required. 107 RUN git clone https://github.com/docker/docker-py.git /docker-py \ 108 && cd /docker-py \ 109 && git checkout -q $DOCKER_PY_COMMIT \ 110 && pip install docker-pycreds==0.2.1 \ 111 && pip install -r test-requirements.txt 112 113 # Set user.email so crosbymichael's in-container merge commits go smoothly 114 RUN git config --global user.email 'docker-dummy@example.com' 115 116 # Add an unprivileged user to be used for tests which need it 117 RUN groupadd -r docker 118 RUN useradd --create-home --gid docker unprivilegeduser 119 120 VOLUME /var/lib/docker 121 WORKDIR /go/src/github.com/docker/docker 122 ENV DOCKER_BUILDTAGS apparmor seccomp selinux 123 124 # Let us use a .bashrc file 125 RUN ln -sfv $PWD/.bashrc ~/.bashrc 126 127 # Register Docker's bash completion. 128 RUN ln -sv $PWD/contrib/completion/bash/docker /etc/bash_completion.d/docker 129 130 # Get useful and necessary Hub images so we can "docker load" locally instead of pulling 131 COPY contrib/download-frozen-image-v2.sh /go/src/github.com/docker/docker/contrib/ 132 RUN ./contrib/download-frozen-image-v2.sh /docker-frozen-images \ 133 buildpack-deps:jessie@sha256:dd86dced7c9cd2a724e779730f0a53f93b7ef42228d4344b25ce9a42a1486251 \ 134 busybox:latest@sha256:bbc3a03235220b170ba48a157dd097dd1379299370e1ed99ce976df0355d24f0 \ 135 busybox:glibc@sha256:0b55a30394294ab23b9afd58fab94e61a923f5834fba7ddbae7f8e0c11ba85e6 \ 136 debian:jessie@sha256:287a20c5f73087ab406e6b364833e3fb7b3ae63ca0eb3486555dc27ed32c6e60 \ 137 hello-world:latest@sha256:be0cd392e45be79ffeffa6b05338b98ebb16c87b255f48e297ec7f98e123905c 138 # See also ensureFrozenImagesLinux() in "integration-cli/fixtures_linux_daemon_test.go" (which needs to be updated when adding images to this list) 139 140 # Install tomlv, vndr, runc, containerd, tini, proxy dockercli 141 # Please edit hack/dockerfile/install/<name>.installer to update them. 142 COPY hack/dockerfile/install hack/dockerfile/install 143 RUN for i in tomlv vndr tini gometalinter proxy dockercli runc containerd; \ 144 do hack/dockerfile/install/install.sh $i; \ 145 done 146 ENV PATH=/usr/local/cli:$PATH 147 148 # Wrap all commands in the "docker-in-docker" script to allow nested containers 149 ENTRYPOINT ["hack/dind"] 150 151 # Upload docker source 152 COPY . /go/src/github.com/docker/docker