Skip to content

Instantly share code, notes, and snippets.

@sgr
Last active August 9, 2017 17:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sgr/7e805f7ed236e61b2c52039785529a47 to your computer and use it in GitHub Desktop.
Save sgr/7e805f7ed236e61b2c52039785529a47 to your computer and use it in GitHub Desktop.
Raspberry Piでdocker-composeをインストールする ref: http://qiita.com/sgr@github/items/1de508bc89e4e7f3e299
$ git clone -b release https://github.com/docker/compose.git
$ cd compose
IMG=docker-compose:armhf
IMG_DEBIAN=armhf/debian:wheezy
BIN=./dist/docker-compose-Linux-armv7l
.PHONY: all clean install
$(BIN):
docker build -t $(IMG) -f Dockerfile.armhf .
docker run --rm --entrypoint="script/build/linux-entrypoint" -v $(PWD)/dist:/code/dist -v $(PWD)/.git:/code/.git "$(IMG)"
all: $(BIN)
install:
install $(BIN) /usr/local/bin/docker-compose
clean:
-rm -f $(BIN)
-docker rmi $(IMG)
-docker rmi $(IMG_DEBIAN)
$ sudo make install
$ make clean
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment