diff --git a/README.md b/README.md index f08eb63..9b99add 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/docker/run_dot_demo.ps1 b/docker/run_dot_demo.ps1 new file mode 100644 index 0000000..d3dae4e --- /dev/null +++ b/docker/run_dot_demo.ps1 @@ -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"