Skip to content
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

Fix Windows Demo Issue #63

Merged
merged 4 commits into from
Nov 30, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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