Skip to content

Instantly share code, notes, and snippets.

@djmaze
Last active January 15, 2016 12:11
Show Gist options
  • Save djmaze/8c63d0ff2ef74e8db9fb to your computer and use it in GitHub Desktop.
Save djmaze/8c63d0ff2ef74e8db9fb to your computer and use it in GitHub Desktop.
Build Docker 1.9.1 on ARM using the "official" Dockerfile
#!/bin/bash
set -e
FILES="Dockerfile.armhf contrib/download-frozen-image-v2.sh Makefile hack/make/.detect-daemon-osarch"
echo Cloning Docker repository
git clone https://github.com/docker/docker.git docker-1.9
cd docker-1.9
echo Patching 1.9.1 source
for file in $FILES; do
cp $file $file.save
done
git checkout v1.9.1
for file in $FILES; do
mv $file.save $file
done
# 1.9 doesn't want to be built with seccomp
sed -i 's/ENV DOCKER_BUILDTAGS apparmor seccomp/ENV DOCKER_BUILDTAGS apparmor/' Dockerfile.armhf
echo
echo 'Everything is set up. Now try "cd docker-1.9" and "make binary"'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment