diff --git a/Makefile b/Makefile index 29e1b2e..eab3a57 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/README.md b/README.md index 377f764..ae2573b 100644 --- a/README.md +++ b/README.md @@ -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/. diff --git a/podman-compose.yml b/podman-compose.yml new file mode 100644 index 0000000..ead725c --- /dev/null +++ b/podman-compose.yml @@ -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"