Skip to content

Commit

Permalink
new version
Browse files Browse the repository at this point in the history
  • Loading branch information
scrgiorgio committed May 29, 2024
1 parent 0bd4d71 commit e15bd74
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 12 deletions.
17 changes: 13 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,15 @@ You can check if it's working going to any of the URL:



## Deploy using ansible
## Ansible

Create an `.env` file with a token:

```bash
cat <<EOF > .env
NSDF_TOKEN=whatever-but-secure
EOF
```

Create an ``./inventory.ini` file. For example

Expand Down Expand Up @@ -145,11 +152,11 @@ done
ansible-playbook ./ansible/00-setup-node.yml
ansible-playbook ./ansible/01-benchmark.yml --verbose
ansible-playbook ./ansible/02-remove-all-containers.yml
ansible-playbook ./ansible/03-precache-data.yml -vvv --limit hetzner
ansible-playbook ./ansible/04-run.yml
ansible-playbook ./ansible/03-precache-data.yml -vvv --limit hetzner
ansible-playbook ./ansible/04-run.yml --limit hetzner
```

## Test Volume rendering
## Volume Rendering

```bash
python test/test-pyvista.py
Expand Down Expand Up @@ -187,6 +194,8 @@ Deploy binaries

```bash
./scripts/new_tag.sh

# you may want to change the tag in docker-compose.yml too
```


Expand Down
3 changes: 2 additions & 1 deletion ansible/00-setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,12 @@
mode: 'a+x'

# this need to be fixed...
- name: install docker modules
- name: install pip modules
ansible.builtin.pip:
name:
- docker==6.1.3
- docker-compose==1.29.2
- urllib3==1.26.18
- requests==2.31.0
- jinja2<3.1.0
- awscli
11 changes: 6 additions & 5 deletions ansible/04-run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,12 @@
dest: /root/notebooks/nasa/
with_fileglob: "../notebooks/nasa/*.ipynb"

- name: docker-compose down
docker_compose:
project_src: /root
state: absent
ignore_errors: yes
# not needed unless you change services
#- name: docker-compose down
# docker_compose:
# project_src: /root
# state: absent
# ignore_errors: yes

# docker-compose up
- name: docker-compose up
Expand Down
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ services:

# New Dashboard
chess2_service:
image: docker.io/nsdf/openvisuspy:1.0.63
image: docker.io/nsdf/openvisuspy:1.0.64
ports:
- "10335:10335"
environment:
Expand All @@ -31,7 +31,7 @@ services:

# Jupyter Lab
jupyterlab_service:
image: docker.io/nsdf/openvisuspy:1.0.63
image: docker.io/nsdf/openvisuspy:1.0.64
ports:
- "8888:8888"
environment:
Expand Down

0 comments on commit e15bd74

Please sign in to comment.