From 8d9b8b26f882a02a2c8595a2b0a6ed030609cfff Mon Sep 17 00:00:00 2001 From: David Sauer Date: Fri, 6 Nov 2020 09:51:00 +0100 Subject: [PATCH] define use cases --- README.md | 33 ++++++++++++++++++++++++++++++--- 1 file changed, 30 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 9822f296..46b686b8 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,13 @@ # Wedding -Wedding accepts container image builds mocking the http interface of a docker daemon. -It schedules builds via jobs to Kubernetes. +Wedding accepts container image builds mocking the http interface of a docker daemon.\ +It schedules builds via jobs to Kubernetes.\ Images are build using buildkit. -## Example +This enables Tilt setups using gitlab ci without running a docker in docker daemon or exposing a host docker socket.\ +This avoid to maintain a tilt configuration with (ci) and without (local dev) custom_build. + +## Use case 1 Using docker cli to build and push an image. @@ -12,3 +15,27 @@ Using docker cli to build and push an image. export DOCKER_HOST=tcp://wedding:2375 docker build -t registry/user/image:tag . ``` + +## Use case 2 + +Using tilt to set up and test an environment. + +``` bash +export DOCKER_HOST=tcp://wedding:2375 +tilt ci +``` + +## Use case 3 + +Using tilt to set up a development environment without a running local docker. + +_Terminal 1_ +``` bash +kubectl -n wedding port-forward svc/wedding 2375:2375 +``` + +_Terminal 2_ +``` bash +export DOCKER_HOST=tcp://127.0.07:2375 +tilt up +```