-
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
feat: run move2kube in wasm #1062
Comments
I read the description of this issue from LFX project details, I am interested in working on this one. |
Hello, I'm interested in working on this project. |
@Prakhar-Agarwal-byte @VaibhavMalik4187 Thanks for your interest. For future reference, we welcome everyone to follow the getting started steps and familiarize themselves with the project itself and relevant topics like WASM/WASI. However since this issue is part of the LFX project we can't assign it to anyone in particular until the candidate selection is over to avoid any conflict of interest issues. Feel free to start working on the issue as that will help you write a good proposal for the LFX candidate selection process. |
Working through some errors when compiling Move2Kube to Wasm using TinyGo compiler: Done:
Fix by using the target
https://github.com/tinygo-org/tinygo/blob/731532cd2b6353b60b443343b51296ec0fafae09/src/syscall/syscall_libc_wasi.go#L234-L251 To Do:
|
Switched to a different approach. Previously we used a subtractive approach where we removed code to get Move2Kube to compile to WASM. |
Moved the code from https://github.com/HarikrishnanBalagopal/move2kube-wasm into this repo on a new branch https://github.com/konveyor/move2kube/tree/wasm |
Completed in https://github.com/konveyor/move2kube/tree/wasm branch. Deployed at https://move2kube.konveyor.io/experimental |
LFX link
https://mentorship.lfx.linuxfoundation.org/project/c2b5f721-2666-4d9e-85d6-7bedae27e144
Move2Kube is a command-line tool for automating creation of Infrastructure as code (IaC) artifacts. It has inbuilt support for creating IaC artifacts for replatforming to Kubernetes/OpenShift. We want to compile targetting WASM/WASI and run the resulting WASM module in the browser. This will help up showcase Move2Kube for demos and allow users to quickly try out Move2Kube without having to install it or any of its dependencies.
Prerequisites
Please familiar yourself with the topics and try compiling simple Golang programs to WASI (preferably those that use the filesystem) with TinyGo so that you are familiar with the workflow and challenges involved.
Getting Started
Follow the tutorial on how to use it to do a transformation https://move2kube.konveyor.io/tutorials/cli
Challenges
This is not an exhaustive list, just the ones we have found so far.
sys/unix
andsyscall
packages might need to be removed/made conditional in Move2Kube https://pkg.go.dev/golang.org/x/sys/unixTasks
The text was updated successfully, but these errors were encountered: