Skip to content

Commit

Permalink
Update Readme:
Browse files Browse the repository at this point in the history
Add note on running in and out of
Docker.

Signed-off-by: Jacob Weinstock <[email protected]>
  • Loading branch information
jacobweinstock committed Mar 7, 2024
1 parent 6e99a40 commit 5f233f1
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
4 changes: 2 additions & 2 deletions playground/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# docker build -t deps .
# docker run -it --rm --network host -v /tmp:/tmp -v /var/run/docker.sock:/var/run/docker.sock -v /var/run/libvirt/libvirt-sock-ro:/var/run/libvirt/libvirt-sock-ro -v /var/run/libvirt/libvirt-sock:/var/run/libvirt/libvirt-sock --name capt-playground deps
# docker build -t capt-playground .
# docker run -it --rm --network host -v /tmp:/tmp -v /var/run/docker.sock:/var/run/docker.sock -v /var/run/libvirt/libvirt-sock-ro:/var/run/libvirt/libvirt-sock-ro -v /var/run/libvirt/libvirt-sock:/var/run/libvirt/libvirt-sock --name capt-playground capt-playground
FROM alpine

ADD https://github.com/kubernetes-sigs/cluster-api/releases/download/v1.6.1/clusterctl-linux-amd64 /usr/local/bin/clusterctl
Expand Down
18 changes: 18 additions & 0 deletions playground/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
# CAPT Playground

## Usage

The CAPT playground can be run as a standalone binary or via Docker.

### Standalone

```bash
capt-playground -h
```

### Docker

```bash
docker build -t capt-playground .
docker run -it --rm --network host -v /tmp:/tmp -v /var/run/docker.sock:/var/run/docker.sock -v /var/run/libvirt/libvirt-sock-ro:/var/run/libvirt/libvirt-sock-ro -v /var/run/libvirt/libvirt-sock:/var/run/libvirt/libvirt-sock --name capt-playground capt-playground
capt-playground -h
```

## Known Issues

### DNS issue
Expand Down

0 comments on commit 5f233f1

Please sign in to comment.