Skip to content

Poswark/kaniko-demo

Repository files navigation

kaniko-demo

Build images with kaniko

https://itnext.io/building-docker-images-with-kaniko-6859bdb893f6

$ cd docker-hello-world-spring-boot
$
$ docker run --rm \
    -v /Users/giovannyorjuelamelo/Documents/Laboratorio/git/kaniko-demo:/workspace \
    gcr.io/kaniko-project/executor-debug:1.0.0 \
    --context "/workspace" \
    --dockerfile "/workspace/Dockerfile" \
    --destination poswark/kaniko-demo:1.0.1 --verbosity info --kaniko-dir /tmp --log-format json


docker run -v `pwd`:/workspace/ gcr.io/kaniko-project/executor:latest --no-push --dockerfile /workspace/Dockerfile  --context /workspace/ --verbosity debug --destination=image:tag --tarPath=/kaniko-workspace/image.tar --kaniko-dir /tmp

docker run --rm \
    -v /Users/giovannyorjuelamelo/Documents/Laboratorio/git/kaniko-demo:/workspace \
    executor-debug:1.0.0 \
    --context "/workspace" \
    --dockerfile "/workspace/Dockerfile" \
    --destination poswark/kaniko-demo:1.0.1 --verbosity info --kaniko-dir /tmp --log-format json --label commit=1020129fs



docker run -v /var/run/docker.sock:/var/run/docker.sock -v $(pwd):/workspace -v ~/.docker/config.json:/kaniko/.docker/config.json gcr.io/kaniko-project/executor:latest --dockerfile /workspace/Dockerfile \
--destination poswark/kaniko-demo \ 
-e "TMPDIR=/tmp" \
--context dir:///workspace/ \  
--verbosity debug



docker build -t executor-debug:1.0.0 -f Dockerfile.kaniko --no-cache .



docker run -d -p 3000:3000 poswark/kaniko-demo:1.0.7


docker run --rm \
    -v `pwd`:/workspace  \
    -e COMMIT_HASH=8381713 \
    -e BUILD_DATE=10212 \
    -e NODE_VERSION=22.4.0 \
    poswark/executor-debug:1.0.0 \
    --context "/workspace" \
    --dockerfile "/workspace/Dockerfile" \
    --destination poswark/kaniko-demo:1.0.3 \
    --verbosity debug \
    --kaniko-dir /tmp \
    --log-format json --label key=value \
    --build-arg NODE_VERSION=22.4.0


--tar-path image-1.0.tar --no-push 
trivy image --timeout 15m --offline-scan --input kaniko-demo.tar  --severity CRITICAL

About

Build images with kaniko

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors