Tool for products to create their certificates from KRAFTWERK manifests.
Enable buildkit
export DOCKER_BUILDKIT=1
Forward SSH-agent to running instance:
OSX:
export DOCKER_SSHAGENT="-v /run/host-services/ssh-auth.sock:/run/host-services/ssh-auth.sock -e SSH_AUTH_SOCK=/run/host-services/ssh-auth.sock"
Linux:
export DOCKER_SSHAGENT="-v $SSH_AUTH_SOCK:$SSH_AUTH_SOCK -e SSH_AUTH_SOCK"
Build the image, create a container and start the container
docker build --ssh default --target dev_shell -t kraftwerk_init_helper:dev_shell .
docker create --name kraftwerk_init_helper -v `pwd`":/app" -it `echo $DOCKER_SSHAGENT` kraftwerk_init_helper:dev_shell
docker start -i kraftwerk_init_helper
Once inside the container, run:
pre-commit install && pre-commit run --all-files
That's it, now you have the development environment up & running.
Build the production image:
docker build --ssh default --target production -t kraftwerk_init_helper:latest .
Run the image:
docker run --rm -it --name kraftwerk_helper kraftwerk_init_helper:latest