Skip to content

Commit

Permalink
Merge pull request #63 from kuwala-io/fixes/windows-installation
Browse files Browse the repository at this point in the history
Fix Windows Demo Issue
  • Loading branch information
Matti authored Nov 30, 2021
2 parents 7951ed4 + 4cd2f96 commit 7cea7ec
Show file tree
Hide file tree
Showing 12 changed files with 53 additions and 5 deletions.
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,17 +82,19 @@ score. In the demo we have a preprocessed graph and a test dataset with Uber rid

Launch Docker in the background and from inside the root directory run:

Linux/Mac:
```zsh
cd kuwala/scripts && sh initialize_core_components.sh && sh run_cli.sh
```

***Note***: Some people on Windows experience installation issues with the CLI. If that is the case for you please open
an issue. In the meantime you can run the pipelines individually.
and for Windows (Please use PowerShell or any Docker integrated terminal):
```PS
cd kuwala/scripts/windows && sh initialize_core_components.sh && sh run_cli.sh
```

#### Run the data pipelines yourself

To run the pipelines yourself, build the components first from inside the `kuwala/scripts` directory by executing the
`initialize_all_components.sh` script and the starting the CLI by running the `run_cli.sh` script.
To run the pipelines yourself, build the components first from inside the `kuwala/scripts` directory (or if the computer uses Windows, go to `kuwala/scripts/windows`) by executing the
`initialize_all_components.sh` script and the starting the CLI by running the `run_cli.sh` script. .

---

Expand Down
3 changes: 3 additions & 0 deletions kuwala/scripts/windows/build_all_containers.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
cd ..
cd ..
docker-compose build google-poi-api google-poi-pipeline neo4j-importer osm-parquetizer osm-poi population-density
8 changes: 8 additions & 0 deletions kuwala/scripts/windows/build_cli.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
cd ..
cd ..
cd ..
pip3 install virtualenv
virtualenv -p python3 venv
source ./venv/bin/activate
pip install -r kuwala/core/cli/requirements.txt
pip install -e .
3 changes: 3 additions & 0 deletions kuwala/scripts/windows/build_jupyter_notebook.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
cd ..
cd ..
docker-compose build jupyter
3 changes: 3 additions & 0 deletions kuwala/scripts/windows/build_neo4j.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
cd ..
cd ..
docker-compose build neo4j
4 changes: 4 additions & 0 deletions kuwala/scripts/windows/create_zip_archive.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
cd ..
cd ..
cd ..
git archive --format=zip HEAD -o kuwala.zip
5 changes: 5 additions & 0 deletions kuwala/scripts/windows/initialize_all_components.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
sh initialize_git_submodules.sh
sh build_neo4j.sh
sh build_cli.sh
sh build_jupyter_notebook.sh
sh build_all_containers.sh
3 changes: 3 additions & 0 deletions kuwala/scripts/windows/initialize_core_components.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
sh build_neo4j.sh
sh build_cli.sh
sh build_jupyter_notebook.sh
4 changes: 4 additions & 0 deletions kuwala/scripts/windows/initialize_git_submodules.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
cd ..
cd ..
cd ..
git submodule update --init --recursive
6 changes: 6 additions & 0 deletions kuwala/scripts/windows/run_cli.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
cd ..
cd ..
cd ..
source ./venv/bin/activate
cd kuwala/core/cli
python3 src/main.py
3 changes: 3 additions & 0 deletions kuwala/scripts/windows/run_jupyter_notebook.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
cd ..
cd ..
docker-compose run --service-ports jupyter
4 changes: 4 additions & 0 deletions kuwala/scripts/windows/stop_all_containers.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
reset
docker stop $(docker ps -a -q)
docker-compose down
docker-compose rm -f

0 comments on commit 7cea7ec

Please sign in to comment.