docker-duplicity-cron/Makefile

41 lines
737 B
Makefile
Raw Permalink Normal View History

2017-06-29 01:12:49 +00:00
DOCKER_TAG ?= docker-duplicity-cron
.PHONY: default
2017-06-29 01:12:49 +00:00
default: build-x86
.PHONY: test
test: test-x86
.PHONY: build-x86
2017-06-29 01:12:49 +00:00
build-x86:
docker build -f ./Dockerfile.ubuntu -t $(DOCKER_TAG):ubuntu .
.PHONY: build-arm
2017-06-29 01:12:49 +00:00
build-arm:
docker build -f ./Dockerfile.raspbian -t $(DOCKER_TAG):raspbian .
.PHONY: build-all
2017-06-29 01:12:49 +00:00
build-all: build-x86 build-arm
.PHONY: test-x86
2017-06-29 01:12:49 +00:00
test-x86: build-x86
./test.sh $(DOCKER_TAG) ubuntu
.PHONY: test-arm
2017-06-29 01:12:49 +00:00
test-arm: build-arm
./test.sh $(DOCKER_TAG) raspbian
.PHONY: test-all
2017-06-29 01:12:49 +00:00
test-all: test-x86 test-arm
2017-07-17 02:37:03 +00:00
.PHONY: shell-x86
2017-07-17 02:37:03 +00:00
shell-x86: build-x86
docker run --rm -it $(DOCKER_TAG):ubuntu bash
.PHONY: shell-arm
2017-07-17 02:37:03 +00:00
shell-arm: build-arm
docker run --rm -it $(DOCKER_TAG):raspbian bash
.PHONY: shell
2017-07-17 02:37:03 +00:00
shell: shell-x86