Skip to content

Commit

Permalink
new version
Browse files Browse the repository at this point in the history
  • Loading branch information
scrgiorgio committed May 31, 2024
1 parent 5807482 commit db3705e
Show file tree
Hide file tree
Showing 4 changed files with 82,347 additions and 51 deletions.
11 changes: 10 additions & 1 deletion deploy/ReadMe.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ EOF
# this is needed for WSL2
export ANSIBLE_CONFIG=${PWD}/ansible.cfg

ln -s ../notebooks ./notebooks
ln -s ../json ./json

sudo docker compose up chess1_service
sudo docker compose up chess2_service
sudo docker compose up jupyter_service
Expand Down Expand Up @@ -77,6 +80,7 @@ ansible-playbook ./run.yml
ansible-playbook ./run.yml --tags restart -l 5.161.228.121

# if you need to check all services
ansible-playbook ./run.yml --tags check

# you can run it later...
# OPTIONAL, you can even use without precaching (cached=arco will cache blocks on demand)
Expand All @@ -89,7 +93,12 @@ ansible --become-user root --become all -m shell -a 'df -h' | grep "/dev/sda1"

if you want to debug:

```
```bash

# check connectivity
ansible-playbook ./run.yml --tags check

# enter in the machine and see `docker compose`
ssh -i <identity> root@vps-ip
cd deploy
docker ps
Expand Down
2 changes: 2 additions & 0 deletions deploy/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ services:
- VISUS_CACHE=/mnt/data/visus-cache
volumes:
- /mnt/data:/mnt/data
- ./json/dashboards.chess.json:/root/json/dashboards.json
command: python3 -m bokeh serve app --use-xheaders --allow-websocket-origin='*' --port 10334 --num-procs 0 --args /root/json/dashboards.json
healthcheck:
test: curl --fail http://localhost:10334 || exit 1
interval: 10s
Expand Down
3 changes: 3 additions & 0 deletions deploy/precache.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@

tasks:

# to sync to S3"
# aws s3 --no-verify-ssl --profile sealstorage --endpoint-url https://maritime.sealstorage.io/api/v0/s3 sync --size-only .workflow/umich/datasets/ s3://utah/chess/arco/

- name: precache data
environment:
AWS_ACCESS_KEY_ID: any
Expand Down
Loading

0 comments on commit db3705e

Please sign in to comment.