Last active
August 9, 2017 17:44
-
-
Save sgr/7e805f7ed236e61b2c52039785529a47 to your computer and use it in GitHub Desktop.
Raspberry Piでdocker-composeをインストールする ref: http://qiita.com/sgr@github/items/1de508bc89e4e7f3e299
This file contains hidden or 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
$ git clone -b release https://github.com/docker/compose.git | |
$ cd compose |
This file contains hidden or 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
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) |
This file contains hidden or 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
$ sudo make install |
This file contains hidden or 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
$ make clean |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment