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

Added Dot demo for powershell #30

Merged
merged 5 commits into from
Nov 9, 2022
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
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ The fastest way to get started using DOT is to use the Docker environment and de
downloading and unzipping the repository zip file
2. Start Docker
3. Open a Terminal and `cd` into the `docker` sub-folder of where you installed DOT
4. Then run this command: `./run_dot_demo.sh`
5. Finally, open the DOT user interface by opening [this url](http://localhost:82/app/data-observation-toolkit/run-log-634491ea0da61b0e9f38760d?embed=True),
4. Then run this command if on Mac or Linux, `./run_dot_demo.sh`. If on Windows run `run_dot_demo.ps1`
6. Finally, open the DOT user interface by opening [this url](http://localhost:82/app/data-observation-toolkit/run-log-634491ea0da61b0e9f38760d?embed=True),
in a web browser

See below for quick demo of DOT.
Expand Down
43 changes: 43 additions & 0 deletions docker/run_dot_demo.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# # First clean up any previous demos
cd demo
if (test-path './db') {
remove-item './db' -Recurse
}
if (test-path './appsmith') {
remove-item './appsmith' -Recurse
}
if (test-path '*.tar*') {
remove-item '*.tar*'
}


# Download test data
wget "https://drive.google.com/uc?export=download&id=157Iad8mHnwbZ_dAeLQy5XfLihhcpD6yc" -O "dot_demo_data.tar.gz"
bash gunzip dot_demo_data.tar.gz
bash tar -xvf dot_demo_data.tar
cd ..

Write-Output "Starting DOT ..."

set POSTGRES_PASSWORD=password125
docker compose -f docker-compose-demo.yml down -v
docker compose -f docker-compose-demo.yml build
sleep 5
docker compose -f docker-compose-demo.yml up -d

Write-Output "Waiting for DOT to start, time to make a nice cup of tea! ☕ 😃 ..."


$Dotupcheck= $false
While ($Dotupcheck= $false){
$Dotdemostatus=docker ps --filter "ancestor=datakindorg/dot_appsmith"
if ($Dotdemostatus[1] -contains "healthy") {
$Dotupcheck= $true
}
else {
sleep 5
}
}
Write-Output "Open a browser and go to this URL: "
Write-Output " http://localhost:82/app/data-observation-toolkit/run-log-634491ea0da61b0e9f38760d?embed=True"
Write-Output "To STOP DOT run this command: docker compose -f docker-compose-demo.yml stop"