Skip to content

Commit

Permalink
ARM, ARM64 support
Browse files Browse the repository at this point in the history
Signed-off-by: Ivan Mikushin <[email protected]>
  • Loading branch information
imikushin committed Mar 18, 2016
1 parent d2ea31f commit 16562b4
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ RUN useradd --create-home --gid docker unprivilegeduser

VOLUME /var/lib/docker
WORKDIR /go/src/github.com/docker/docker
ENV DOCKER_BUILDTAGS apparmor seccomp selinux
ENV DOCKER_BUILDTAGS exclude_graphdriver_devicemapper selinux

# Let us use a .bashrc file
RUN ln -sfv $PWD/.bashrc ~/.bashrc
Expand Down Expand Up @@ -247,5 +247,7 @@ RUN set -x \
# Wrap all commands in the "docker-in-docker" script to allow nested containers
ENTRYPOINT ["hack/dind"]

RUN apt-get install -y gcc-arm-linux-gnueabihf gcc-aarch64-linux-gnu

# Upload docker source
COPY . /go/src/github.com/docker/docker
16 changes: 16 additions & 0 deletions hack/buildall.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/usr/bin/env bash

cd $(dirname $0)/..

export CGO_ENABLED=1
export KEEPBUNDLE=1

export CC=/usr/bin/arm-linux-gnueabihf-gcc
export DOCKER_CROSSPLATFORMS=linux/arm

hack/make.sh cross

export CC=/usr/bin/aarch64-linux-gnu-gcc
export DOCKER_CROSSPLATFORMS=linux/arm64

hack/make.sh cross
2 changes: 2 additions & 0 deletions hack/make/cross
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ set -e
declare -A daemonSupporting
daemonSupporting=(
[linux/amd64]=1
[linux/arm]=1
[linux/arm64]=1
[windows/amd64]=1
)

Expand Down

0 comments on commit 16562b4

Please sign in to comment.