Skip to content

Instantly share code, notes, and snippets.

@btheu
Last active April 2, 2021 13:54
Show Gist options
  • Save btheu/d747c0740e2eb4a16767c21003b1076e to your computer and use it in GitHub Desktop.
Save btheu/d747c0740e2eb4a16767c21003b1076e to your computer and use it in GitHub Desktop.
# raspi-config for config
apt-get update
apt-get upgrade
apt-get install git
curl -sSL get.docker.com | sh
# Docker compose
git clone https://github.com/docker/compose.git
cd compose
git checkout release
docker build -t docker-compose:armhf -f Dockerfile.armhf .
docker run --rm --entrypoint="script/build/linux-entrypoint" -v $(pwd)/dist:/code/dist -v $(pwd)/.git:/code/.git "docker-compose:armhf"
cp dist/docker-compose-Linux-armv7l /usr/local/bin/docker-compose
chown root:root /usr/local/bin/docker-compose
chmod 0755 /usr/local/bin/docker-compose
docker-compose version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment