-
Notifications
You must be signed in to change notification settings - Fork 118
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
UI image does not work with Podman #594
Comments
Thanks @rmarting for the issue. @HarikrishnanBalagopal Please take a look. |
@rmarting Hi, are you using the release version?
In this case you don't need to build, you can simply |
@rmarting Can you please try |
I have opened a PR to update the instructions in the README #595 |
@HarikrishnanBalagopal I just opened other issue in move2kube-ui because the 'make' command does not working without `docker'. konveyor/move2kube-ui#97 |
@ashokponkumar Your command does not work in my laptop. It seems that mount volumes with ❯ podman run --rm -it -p 8080:8080 -v ${PWD}/data:/move2kube-api/data quay.io/konveyor/move2kube-ui:latest
FATA[0000] failed to setup the handlers. Error: "failed to make the workspaces metadata directory at path /move2kube-api/data/metadata/workspaces . Error: \"mkdir /move2kube-api/data/metadata: permission denied\"" Other ideas? |
@rmarting I tried podman on a RHEL8 VM and it seems to mount without any errors:
Can you paste the hash of the image that you are using? This is the latest image:
You might need to do a |
@HarikrishnanBalagopal I got the same issue in my Fedora 34. I give you some details:
❯ podman version
Version: 3.3.1
API Version: 3.3.1
Go Version: go1.16.6
Built: Mon Aug 30 22:46:36 2021
OS/Arch: linux/amd64
❯ podman images | grep move2kube-ui
quay.io/konveyor/move2kube-ui latest 08270b4e95e3 12 hours ago 213 MB Which podman version has your RHEL8 VM? Maybe here it is the difference, plus other configuration setup. |
@rmarting The podman version I used on RHEL8 was Can you look through Also unrelated to this but podman version In the meantime the workaround for MacOS users is to either downgrade podman or use
|
As you see in my previous comment my current image already starts with
Here the issue is related with the volume mounted because my issue occurs only when Is it needed to mount a volume to test locally the tool? |
Sorry, it's a long line, I didn't notice that you have to scroll right.
Can you try with double quotes around
No, you can run it without mounting anything. The mount is just for persistence. Please try without mounting as well. |
@rmarting I reproduced the issue trying to run the command on a Fedora 34 VM. |
@rmarting I was able to get it working by running it in privileged mode
Seems similar to this issue containers/podman#10460 (comment) |
For now, let's keep it as a known limitation till podman fixes it for fedora. Let's keep this issue open till then. The workaround is to use the privileged flag only on fedora. |
Thanks @HarikrishnanBalagopal to point me to the workaround! It is working right now! I agree to keep this issue still open until confirm that it could be fixed soon by |
Agreed @rmarting. Probably we can update in https://move2kube.konveyor.io/installation/web-interface/ (https://github.com/konveyor/move2kube/blob/gh-pages/docs/installation/web-interface.md). If you get time, please go ahead and create a PR. Or else we will get to it soon. Thanks for the PRs and updates on adding support for podman in general. |
@ashokponkumar I cannot promise something soon, but maybe in a short time I could check/update that reference to add |
Thanks @rmarting . Sure. Absolutely. We do understand. Thanks for your collaboration. Glad to have your contributions. Please do let us know if you have any other suggestions for improvement too. |
I found a better way to start locally the container with podman run --rm -it -p 8080:8080 -v "$PWD/data:/move2kube-api/data:z" quay.io/konveyor/move2kube-ui:latest This easy way works smothly and you don't need to use privileged containers. I create a new PR to add these options in the documentation #603. Maybe as soon that PR was merged, this issue could be closed. |
That's a nice find @rmarting! Using |
Describe the bug
The instructions (
README.md
file) describe how to start the UI usingdocker
but it does not include how to do it withpodman
. When I started the container, the UI is available but any operation works (e.g: create an application, upload an artifact).To Reproduce
Steps to reproduce the behavior:
podman
Expected behavior
Not FATAL messages and UI working successfully.
Desktop (please complete the following information):
move2kube-aio:latest
container imageThe text was updated successfully, but these errors were encountered: