github.com/ncdc/docker@v0.10.1-0.20160129113957-6c6729ef5b74/Dockerfile.gccgo (about) 1 # This file describes the standard way to build Docker, 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.gccgo . 7 # 8 9 FROM gcc:5.3 10 11 # Packaged dependencies 12 RUN apt-get update && apt-get install -y \ 13 apparmor \ 14 aufs-tools \ 15 btrfs-tools \ 16 build-essential \ 17 curl \ 18 git \ 19 iptables \ 20 jq \ 21 net-tools \ 22 libapparmor-dev \ 23 libcap-dev \ 24 libsqlite3-dev \ 25 mercurial \ 26 parallel \ 27 python-dev \ 28 python-mock \ 29 python-pip \ 30 python-websocket \ 31 --no-install-recommends 32 33 # Get lvm2 source for compiling statically 34 RUN git clone -b v2_02_103 https://git.fedorahosted.org/git/lvm2.git /usr/local/lvm2 35 # see https://git.fedorahosted.org/cgit/lvm2.git/refs/tags for release tags 36 37 # Compile and install lvm2 38 RUN cd /usr/local/lvm2 \ 39 && ./configure --enable-static_link \ 40 && make device-mapper \ 41 && make install_device-mapper 42 # see https://git.fedorahosted.org/cgit/lvm2.git/tree/INSTALL 43 44 # install seccomp 45 # TODO: switch to libseccomp-dev since dockerinit is gone 46 ENV SECCOMP_VERSION v2.2.3 47 RUN set -x \ 48 && export SECCOMP_PATH=$(mktemp -d) \ 49 && git clone https://github.com/seccomp/libseccomp.git "$SECCOMP_PATH" \ 50 && ( \ 51 cd "$SECCOMP_PATH" \ 52 && git checkout "$SECCOMP_VERSION" \ 53 && ./autogen.sh \ 54 && ./configure --prefix=/usr \ 55 && make \ 56 && make install \ 57 ) \ 58 && rm -rf "$SECCOMP_PATH" 59 60 ENV GOPATH /go:/go/src/github.com/docker/docker/vendor 61 62 # Get the "docker-py" source so we can run their integration tests 63 ENV DOCKER_PY_COMMIT e2878cbcc3a7eef99917adc1be252800b0e41ece 64 RUN git clone https://github.com/docker/docker-py.git /docker-py \ 65 && cd /docker-py \ 66 && git checkout -q $DOCKER_PY_COMMIT 67 68 # Add an unprivileged user to be used for tests which need it 69 RUN groupadd -r docker 70 RUN useradd --create-home --gid docker unprivilegeduser 71 72 VOLUME /var/lib/docker 73 WORKDIR /go/src/github.com/docker/docker 74 ENV DOCKER_BUILDTAGS apparmor seccomp selinux 75 76 # Wrap all commands in the "docker-in-docker" script to allow nested containers 77 ENTRYPOINT ["hack/dind"] 78 79 # Upload docker source 80 COPY . /go/src/github.com/docker/docker