21
24

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

https://qiita.com/hisurga/items/fc26f8823c92fc727307
https://www.berthon.eu/2017/getting-docker-compose-on-raspberry-pi-arm-the-easy-way/
上の記事の丸パクリだが、master に既に存在するDockerfile.armhf を利用するという所に微小な新規性を感じたので記事にする

git clone https://github.com/docker/compose.git
cd compose
sudo docker build -t docker-compose:armhf -f Dockerfile.armhf .
sudo docker run --rm --entrypoint="script/build/linux-entrypoint" -v $(pwd)/dist:/code/dist -v $(pwd)/.git:/code/.git "docker-compose:armhf"
# ちなみにfish
sudo docker run --rm --entrypoint="script/build/linux-entrypoint" -v (pwd)/dist:/code/dist -v (pwd)/.git:/code/.git "docker-compose:armhf"

dist の下にdocker-compose が作成されるのでコピー

sudo cp dist/docker-compose-Linux-armv7l /usr/local/bin/docker-compose
docker-compose --version
docker-compose version 1.20.0dev, build 4ceeaad

わーい動いた

21
24
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
21
24

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?