-
-
Notifications
You must be signed in to change notification settings - Fork 14
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
Enabling reward_wsl2_direct_mount in .reward.yml file slows down installation and every container operation #1
Comments
Hello @adexandros, thank you for opening the first issue! 🎂 Please make sure if you are using Reward with WSL2 then your working directory have to be inside your WSL2 partition. Also, could you run the following command and send me its output?
|
@adexandros on your second question. If you exit reward's shell without explicitly defining the exit code the previous command's exit code will be passed. Example:
This behaviour is coming from the underlying architecture (docker-compose and even bash). You can find this in
|
Hi @janosmiko , where do you want me to type that command exactly?
Also what do you mean exactly with:
the path to my Projects folder from inside my Ubuntu would be: I am still new to WSL2 so it's very likely I am doing something wrong |
Thanks for your reply, @adexandros ! The command with the DEBUG=true environment variable have to be run in you Ubuntu shell. I'm not sure where you installed Reward but if its something like C:\bin, then append the following line to your .bashrc in Ubuntu: And lastly, if your Project is directly on your Windows drive (like So to use WSL2, you will have to clone your project directly inside Ubuntu WSL2 terminal to for example /home/micro/Projects. For more information about how WSL2 works you can see the first section here and I suggest to check the 2 links there: |
Hi @janosmiko , so I did the following:
Getting this error now:
|
Could you check if you enabled WSL2 Integration in Docker settings? Related issue: |
I just noticed that that's one of the know issue in the documentation |
@janosmiko so I had the WSL2 integration enabled already but I specifically needed to select my instance of Ubuntu even though was the only and default one; |
I'm glad to hear that! |
Tested this on WIndows 10 with WSL2 installed, Ubuntu 20.04:
I have uncommented the flag
reward_wsl2_direct_mount
in the~/.rewardw.yml
file to leverage WSL2, however after setting up a env and runningreward bootstrap
, the whole installation process takes about ~50m, vs ~4m of normal installation without direct mount.Also after using
reward shell
and any command inside the container, even justbin/magento
are super slow, as well as the site page load, while it works perfectly with a Mutagen installation.Moreover when exiting from a container with
exit
it produce the following error:I am not sure why this happens, just noticed while testing multiple site installations
The text was updated successfully, but these errors were encountered: