Skip to content

Commit

Permalink
define use cases
Browse files Browse the repository at this point in the history
  • Loading branch information
damoon committed Nov 10, 2020
1 parent f5a85cc commit 8d9b8b2
Showing 1 changed file with 30 additions and 3 deletions.
33 changes: 30 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,41 @@
# 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.

``` bash
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
```

0 comments on commit 8d9b8b2

Please sign in to comment.