Compare commits

...
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

2 Commits

Author SHA1 Message Date
fedy95 8c1c036e36 test-docker-slim 4 years ago
fedy95 e5196ce572 test-docker-slim 4 years ago
  1. 12
      Makefile

12
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