You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
533 B
23 lines
533 B
MAKEFLAGS += --silent
|
|
.PHONY: *
|
|
|
|
REGISTRY=registry.fedy95.com
|
|
YAMLLINT_TAG=baseimage-yamllint:latest
|
|
|
|
lint: lint-yaml
|
|
|
|
LINT-YAML-CMD=docker run --rm -it -v $(PWD):/data ${REGISTRY}/${YAMLLINT_TAG}
|
|
lint-yaml:
|
|
docker pull ${REGISTRY}/${YAMLLINT_TAG}
|
|
$(LINT-YAML-CMD) docker-compose.yml
|
|
|
|
restart:
|
|
docker-compose -f docker-compose.yml pull
|
|
docker-compose -f docker-compose.yml down
|
|
docker-compose -f docker-compose.yml up -d
|
|
|
|
cleanup:
|
|
docker system prune --all --force
|
|
docker system prune --volumes --force
|
|
|
|
.DEFAULT_GOAL := lint
|