This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
1 changed files with
11 additions and
1 deletions
-
Makefile
|
|
@ -6,9 +6,19 @@ 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} |
|
|
|
## TODO fix relaxed.yaml
|
|
|
|
#docker-slim build --http-probe=false --dockerfile Dockerfile --tag-fat dslimexamples/$IMAGE_NAME .
|
|
|
|
|
|
|
|
# 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 . |
|
|
|
@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 |
|
|
|
|
|
|
|