9/22/2023 0 Comments Proxycap linuxIt is not my project, but it seems like this is capable of doing proxy-to-proxy conversion and handoff. There is a project out there called python-proxy ( pproxy is the executable). However, the concept and configuration appears to be sound for proxying proxy traffic, though again this is untested. NOTE: This is an untested solution because I have no proxies on my network for testing. You need to run some kind of intermediate software that will handle the handoff between the two proxies. I was able to remedy using the NoLsp.exe tool mentioned in that issue.Basically, SOCKS5 and HTTP speak completely different languages, so you can't just 'convert' a SOCKS5 to an HTTP proxy. Had trouble using proxy cap (the way we access interal services over an SSH tunnel). What I ended up with is a Rube Goldberg machine, but it allows me to use my IDE like I want with fast indexing and built-in git functionality in Windows proper while still running a facsimile of our system in a local kubernetes cluster using docker-desktop running in WSL. Set dstRoot=Z:\mnt\wsl\host-path-bridge\git-wa\core2\ Set srcRoot=C:\Users\username\git-wa\core2\ Here is that This copies a provided file / directory from the standard core2 work on Windows to the special directory in WSL2 that allows K8s pods to mount as a shared To be used in conjunction with PHPStorm's File Watchers off bat script to the PHPStorm File Watcher tool that runs anytime I change a file and copies that file to the proper place in the “/mnt/wsl/host-path-bridge/git-wa/code2” directory. Since one of the things I wanted to share was PHP code that is actually living in the Windows proper file system (because PHPStorm) I had to make a copy of the code in a “/mnt/wsl/host-path-bridge/git-wa/code2” directory. Then in the actual k8s manifest when defining the hostPath, I used the path accessible by docker-desktop: “/run/desktop/mnt/host/wsl/host-path-bridge”. So what I ended up doing was creating a “/mnt/wsl/host-path-bridge” directory and putting all the directories I wanted to share with k8s containers as hostPaths there. In the HyperV VM where docker-desktop it is mounted at “/run/desktop/mnt/host/wsl” It’s hard to overstate how efficient it is to have your changes immediately take effect without the need to rebuild and redeploy your containers.īut now that is gone because I guess the docker-desktop peeps couldn’t figure out how to access arbitrary folders in WSL from their namespace in the HyperV VM.īUT (as mentioned in the link above) there is a single magical directory in WSL that provides just such access. They allow you to run containers in k8s that look to the local file system for config or (for interpreted languages) code changes. Kubernetes hostPath volumes are incredibly useful when doing development of applications destined to run in a kubernetes environment (the primary reason I want to use docker-desktop in the first place). This little gem which isn’t mentioned anywhere in the docker-desktop docs: “ Unfortunately we don’t support hostpath volumes in wsl2.“ The next issue though was a *real* downer. So I guess I have to install and maintain 2 versions of git (and the AWS CLI since our code is in AWS CodeCommit and requires an AWS MFA git credential helper to access). I like having the ability to use git in WSL as well as directly in the IDE. Kubernetes running in Docker-Desktop’s namespace in the HyperV VMĮverything was going swimmingly until I discovered PHP storm does not yet support running git under WSL. WSL2 running (obviously) in the HyperV VM Project files (aka the code I work on) in Windows proper (for faster indexing and external change detection) Docker-Desktop had cleverly figured how to also run on that VM so it would theoretically not be such a resource hog and have faster file access. I was excited because the version of WSL 2 that comes with that has a real linux kernel running in a cool, super integrated HyperV VM. So I decided to take the plunge and install the recently released Windows v2004. After a few hours tons of little background tasks would start using 100% of the CPU. Well something went horribly wrong with my laptop.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |