Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Improving how to use docker or podman to run locally #106

Merged
merged 3 commits into from
Oct 14, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -108,5 +108,5 @@ endif
ifdef DOCKER_CMD
${CONTAINER_TOOL} run --rm -it -p 8080:8080 -v ${PWD}/data:/move2kube-api/data -v /var/run/docker.sock:/var/run/docker.sock quay.io/konveyor/move2kube-ui:latest
else
${CONTAINER_TOOL} run --rm -it -p 8080:8080 --network=bridge quay.io/konveyor/move2kube-ui:latest
${CONTAINER_TOOL} run --rm -it -p 8080:8080 -v ${PWD}/data:/move2kube-api/data:z --network=bridge quay.io/konveyor/move2kube-ui:latest
endif
17 changes: 15 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,24 @@ An UI for interacting with [Move2Kube API](https://github.com/konveyor/move2kube
## Starting the UI

1. Build the UI image: `make cbuild`
2. This uses `docker` or `podman` and runs everything inside a single container using the UI image: `make crun`
3. Access the UI at http://localhost:8080
2. Create a data folder to persist information: `mkdir -p data`
3. This uses `docker` or `podman` and runs everything inside a single container using the UI image: `make crun`
4. Access the UI at http://localhost:8080

For Helm chart and Operator checkout [Move2Kube Operator](https://github.com/konveyor/move2kube-operator).

There is other alternative using `docker-compose`:

```shell
$ docker-compose up
```

or `podman-compose`:

```shell
$ podman-compose -f podman-compose.yml up
```

## Discussion

- For any questions reach out to us on any of the communication channels given on our website https://move2kube.konveyor.io/.
11 changes: 11 additions & 0 deletions podman-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
version: "3"
services:
move2kubeui:
build:
context: ./
dockerfile: Dockerfile
image: quay.io/konveyor/move2kube-ui:latest
ports:
- "8080:8080"
volumes:
- "./data:/move2kube-api/data:z"