Last active
January 15, 2016 12:11
-
-
Save djmaze/8c63d0ff2ef74e8db9fb to your computer and use it in GitHub Desktop.
Build Docker 1.9.1 on ARM using the "official" Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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