-
-
Notifications
You must be signed in to change notification settings - Fork 226
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
Windows support #124
Comments
It works nice on Windows. Step by step.
|
I used the quickstart build script (https://github.com/pelias/docker#quickstart-build-script) as the basis to get it working on Windows. I looked into the pelias helper script and the scripts in the cmd folder for the docker functions and executed them through the Windows PowerShell. I also used @michalstepien method for whosonfirst (WOF) as the WOF download script could not extract the SQLite db @orangejulius @missinglink. This is experimental but here are the steps I used to get the Australian build up and running: Setting up
Building peliasThis part took my machine several hours to complete.
|
I'm actually really happy to see that we have developers running Pelias on Windows and that it actually works! The The I don't have a lot of time to work on it at the moment but I'd be happy if you'd like to pick up where I left off and we could work together to replace the bash version with one which works equally well on nix/mac/win? |
@missinglink I'm happy to help where I can. However, this sort of work is outside my main domain as I'm mostly in the data science space. I've happened to pick up on this as we are looking into alternatives for geocoding sensitive data and that we run mainly a Windows stack. At this stage I think the main failing component on Windows during my testing is the whosonfirst downloader. I'm not sure if it is related to permissions but the downloader does download the whosonfirst-data-latest.db.bz2 file but seems to fail to decompress it:
I'll need to edit my guide above as I actually did a workaround by using a hybrid approach to get WOF working. For the placeholder component I used the WOF bundles I downloaded from https://geocode.earth/data/whosonfirst. As for the importing of WOF into elasticsearch I used the sqlite approach by setting sqlite parameter as true under the whosonfirst block in the pelias.json file. |
One thing which stood out to me as unusual from the original comment was that the Does setting that fix the WOF download issue? |
I will need to test it again but I recall that without setting WOF_DIR I still get the same error. I'll also need to do a build on my home pc as I've been testing this on my work pc to rule out any issues with admin rights. |
Windows 10 v2004 is scheduled for release in May. It includes a new version of Windows Subsystem for Linux(WSL2). This will enable access to Docker in WSL. I installed the Windows Insider build, and I was able to use the Quickstart script to install the portland-metro project. The only problem was with the WOF install, but that looks like an issue with the WOF importer. |
I've tried both options, and the one with the docker running inside of the ubuntu18.04, therefore using the normal commands, was the best. |
Hello, I just want to share my solution to run on Windows (Docker/WSL2):
Basically, it is the same Quickstart build script. Besides, it is possible to change the path permanently... Have a good time, PS : it was tested on PowerShell and Mingw-w64 with Docker Desktop/WSL2 (Windows 10) |
The pelias/docker setup does not currently officially support Windows.
No one on the Pelias core team regularly uses Windows, and there are many different varieties of ways to use Docker with Windows, so it's a large task to ensure compatibility.
If you have familiarity with using Docker on Windows platforms and would like to help us improve Windows support, let us know.
The text was updated successfully, but these errors were encountered: