Skip to content

Commit 0178b7b

Browse files
committed
βž• Add TODO list.
πŸ“” Updatre WSL2 instructions.
1 parent 2bbef01 commit 0178b7b

File tree

3 files changed

+39
-23
lines changed

3 files changed

+39
-23
lines changed

β€Ždocumentation/TODO list.mdβ€Ž

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
- Support .cjs & .mjs for projects:
2+
--experimental-modules --input-type=commonjs
3+
https://medium.com/@nodejs/announcing-a-new-experimental-modules-1be8d2d6c2ff
14
- Add Eslint global installation to the windows provisioning scripts.
25
- Switch to using Kubernetes instead of Docker Swarm. As Kubernetes is much more supported by the community and feature rich.
36
- Visual programming - "Control flow graphs". https://www.youtube.com/watch?v=0lVA7TPpxUE

β€Ždocumentation/systemProvisionGuide/Guide to setting up Windows environment for development.mdβ€Ž

Lines changed: 35 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -197,25 +197,6 @@ localhost:8083 test.localhost
197197
- Run docker containers:
198198
- run portainer with autostart. (run portainer from @deployment/deploymentScript package.)
199199
- Turn on WSL2 integration of Docker Desktop.
200-
<!-- !important: docker desktop engine on WSL2 (unreleased version) still has the following required features not implemented fully:
201-
- [Supported βœ”] ~/var/run/docker.sock volume still not supported as mentioned in https://www.docker.com/blog/new-docker-desktop-wsl2-backend/~
202-
- [Supported βœ” both host and bridge] WSL2 is now running with a host-only network adapter (While the WSL VM is still on a host-only network adapter, you can access things like docker containers through localhost on your Windows (host) machine) https://medium.com/faun/windows-subsystem-on-linux-wsl-2-first-impressions-96adaf2ebe76
203-
Use --network="host" in your docker run command, then 127.0.0.1 in your docker container will point to your docker host. https://stackoverflow.com/questions/24319662/from-inside-of-a-docker-container-how-do-i-connect-to-the-localhost-of-the-mach
204-
The issue is that networking is messed up a little when using docker desktop on WSL2, from what I've observed, docker desktop WSL2 ports are exposed, they do not conflict with localhost but override their access (accessing localhost:8080 will be tranmitted to the WSL2 container, over the host's server/app).
205-
https://github.com/microsoft/WSL/issues/4212
206-
WSL2 will have it's own ip address https://docs.microsoft.com/en-us/windows/wsl/wsl2-ux-changes#accessing-network-applications
207-
Important note about networking - https://github.com/microsoft/WSL/issues/4150#issuecomment-504209723
208-
Port exposure when using `--network="host"` in docker run command (e.g. relying on Windows host program like memgraph on host): When host network is used, the container for some reason stops being accessible through eaither WSL2 ip or localhost. Checkout - https://docs.docker.com/network/host/
209-
WSL2 ip = `ip addr show dev eth0` reveals the address that allows to access the containers ports in the VM.
210-
host machine ip = `cat /etc/resolv.conf`
211-
- Accessing WSL2 from Windows can be accessed with localhost.
212-
- Accessing Windows from WSL2 can be accessed through host machine ip address.
213-
- [Not supported ❌] iNotify from Windows to WSL2
214-
Workaround: move projects to WSL2 filesystem.
215-
- https://www.youtube.com/watch?v=lwhMThePdIo&feature=youtu.be&t=2189
216-
- https://github.com/microsoft/WSL/issues/1956
217-
- https://github.com/microsoft/WSL/issues/4739
218-
-->
219200

220201
### Winrar:
221202
- Settings > Integration > Cascaded context menu.
@@ -234,6 +215,11 @@ localhost:8083 test.localhost
234215
- Change to dark theme.
235216
- configure github intergration: preferences > hosting providers > Add (place token from github account or autogenerate one from SmartGit.)
236217
- Allow manipulating pushed commits: Preferences > Commands > Push - Allow modifying pushed commeits.
218+
- Preferences > Commands > Stash > Include tracked files.
219+
- Preferences > Commands > Push > Push all tags.
220+
- Preferences > Commands > Commit > Add untracked files.
221+
- Preferences > Refresh > Referesh file system in background.
222+
237223

238224
### Github Desktop:
239225
- sign in to github account.
@@ -277,14 +263,40 @@ ___
277263
once reached `change default shell` exit the new zsh shell that will be opened to continue installation. Repeat execution if errors occur, and make sure all commands in installations where executed (e.g. powerlevel10K theme in ZSH command group). this command will also update linux `sudo apt update -y && sudo apt upgrade -y`
278264
- Symlink .ssh folder to WSL: `sudo ln -s /<.ssh location>/.ssh /root/.ssh`
279265
- Setup VSCode in WSL2: ctrl+shift+p and search for "Remote: WSL new window", in which VSCode will download WSL server automatically and set it up.
280-
Resources:
281-
- https://github.com/shayne/wsl2-hacks
282-
266+
- Setup Linux graphical server and Windows client to access WSL2 graphical programs: https://medium.com/@chuckdries/installing-gitkraken-in-wsl-2-15bf6459f823
267+
TODO: Install smartGit graphical program in WSL2 and access it through Windows to take advantage of `inotify` support for autorefresh (as not yet supported), and use wsl own git installation.
283268

284-
Notes:
269+
Notes & Resources:
285270
- An attempt to install WSL2 in insiders program (slow ring):
286271
- OS biuld before switching to insiders = 18363.592 (version 1909) or 18363.628
287272
- OS build after switching to insiders = 19041.21
273+
- https://github.com/shayne/wsl2-hacks
274+
- https://www.hanselman.com/blog/CoolWSLWindowsSubsystemForLinuxTipsAndTricksYouOrIDidntKnowWerePossible.aspx
275+
<!-- !important: docker desktop engine on WSL2 (unreleased version) still has the following required features not implemented fully:
276+
- [Supported βœ”] Access WSL2 executables from windows: e.g. ` \Windows\System32\wsl.exe git status` in Windows will use the wsl git executable.
277+
- [Supported βœ”] /var/run/docker.sock volume still not supported as mentioned in https://www.docker.com/blog/new-docker-desktop-wsl2-backend/
278+
- [Supported βœ” both host and bridge] WSL2 is now running with a host-only network adapter (While the WSL VM is still on a host-only network adapter, you can access things like docker containers through localhost on your Windows (host) machine) https://medium.com/faun/windows-subsystem-on-linux-wsl-2-first-impressions-96adaf2ebe76
279+
https://www.youtube.com/watch?v=Xxhhdo2e-DA
280+
Use --network="host" in your docker run command, then 127.0.0.1 in your docker container will point to your docker host. https://stackoverflow.com/questions/24319662/from-inside-of-a-docker-container-how-do-i-connect-to-the-localhost-of-the-mach
281+
The issue is that networking is messed up a little when using docker desktop on WSL2, from what I've observed, docker desktop WSL2 ports are exposed, they do not conflict with localhost but override their access (accessing localhost:8080 will be tranmitted to the WSL2 container, over the host's server/app).
282+
https://github.com/microsoft/WSL/issues/4212
283+
WSL2 will have it's own ip address https://docs.microsoft.com/en-us/windows/wsl/wsl2-ux-changes#accessing-network-applications
284+
Important note about networking - https://github.com/microsoft/WSL/issues/4150#issuecomment-504209723
285+
Port exposure when using `--network="host"` in docker run command (e.g. relying on Windows host program like memgraph on host): When host network is used, the container for some reason stops being accessible through eaither WSL2 ip or localhost. Checkout - https://docs.docker.com/network/host/
286+
WSL2 ip = `ip addr show dev eth0` reveals the address that allows to access the containers ports in the VM.
287+
host machine ip = `cat /etc/resolv.conf`
288+
- Accessing WSL2 from Windows can be accessed with localhost.
289+
- Accessing Windows from WSL2 can be accessed through host machine ip address.
290+
- [Not supported ❌] iNotify from Windows to WSL2
291+
Workaround: move projects to WSL2 filesystem.
292+
- https://www.youtube.com/watch?v=lwhMThePdIo&feature=youtu.be&t=2189
293+
- https://github.com/microsoft/WSL/issues/1956
294+
- https://github.com/microsoft/WSL/issues/4739
295+
296+
- Use windows executable from WSL2: https://www.reddit.com/r/bashonubuntuonwindows/comments/evs4hr/do_you_like_using_wsl2_but_hate_how_slow_git_runs/
297+
- Run graphical applications of WSL2 from Windows: https://www.reddit.com/r/bashonubuntuonwindows/comments/evs4hr/do_you_like_using_wsl2_but_hate_how_slow_git_runs/ffypob0/
298+
https://medium.com/@chuckdries/installing-gitkraken-in-wsl-2-15bf6459f823
299+
-->
288300

289301
___
290302

β€Žscript/windowsSubsystemForLinux/installPackageAndSymlinkConfiguration.jsβ€Ž

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ export const nonElevatedCallback = async () => {
3232
// NOTE: when using WSL2 there is no need to install docker client packages, as all will be handled by Docker Desktop integration with WSL2.
3333
// provision.docker.install({ assignDockerHost: false }) // use native docker desktop on top of WSL2
3434
provision.git.install()
35+
// TODO: install zsh additional plugins for packge.json support, etc.. https://nickymeuleman.netlify.com/blog/linux-on-windows-wsl2-zsh-docker#pre-installed-plugins
3536
provision.zshShell.install()
3637
provision.yarn.install()
3738
provision.jspm.install()

0 commit comments

Comments
Β (0)