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
861 B
23 lines
861 B
MAKEFLAGS += --silent
|
|
|
|
.PHONY: *
|
|
|
|
YAMLLINT_TAG=latest
|
|
|
|
build_yamllint:
|
|
#docker build -t fedy95/baseimage:yamllint-${YAMLLINT_TAG} image -f image/Dockerfile
|
|
# docker pull dslim/docker-slim:latest
|
|
#-v /var/run/docker.sock:/var/run/docker.sock
|
|
docker run --rm --volume /var/run/docker.sock:/var/run/docker.sock dslim/docker-slim:latest build \
|
|
--http-probe=false \
|
|
--tag=fedy95/baseimage:yamllint-${YAMLLINT_TAG} fedy95/baseimage:yamllint-${YAMLLINT_TAG} --help
|
|
|
|
# docker run --rm -v /var/run/docker.sock:/var/run/docker.sock dslim/docker-slim:latest build --http-probe=false fedy95/baseimage:yamllint-${YAMLLINT_TAG}
|
|
|
|
lint:
|
|
@docker run --rm $$(tty -s && echo "-it" || echo) -v $(PWD):/data fedy95/baseimage:yamllint-latest . && ls -lah /
|
|
lint_help:
|
|
docker run --rm -v $(pwd):/data fedy95/baseimage:yamllint-latest --help
|
|
|
|
|
|
.DEFAULT_GOAL := build_yamllint
|