Skip to content

Commit

Permalink
chore: Minor fixes to update dev deployment setup
Browse files Browse the repository at this point in the history
  • Loading branch information
ThanKarab committed Sep 22, 2024
1 parent 79ebec8 commit 5eaf648
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
8 changes: 2 additions & 6 deletions dev/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,13 @@
docker-compose --env-file ../.versions_env down
docker-compose --env-file ../.versions_env up -d

echo -n "Installing pip requirements ..."
pip install -r requirements.txt

echo -n "Waiting for containers to start ..."
sleep 10

echo -n "Loading data into exareme2 db ..."
docker exec dev-exareme2_global_mipdb-1 mipdb init
docker exec dev-exareme2_local_mipdb-1 /bin/bash -c "mipdb init && mipdb load-folder /opt/data"
docker exec dev_exareme2_local_mipdb_1 /bin/bash -c "mipdb init && mipdb load-folder /opt/data"

sleep 10
sleep 20

echo -n "Triggering engine to see the added pathologies ..."
curl -X POST 172.17.0.1:5000/wla
Expand Down
4 changes: 4 additions & 0 deletions dev/test.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/bin/env bash

echo -n "Installing pip requirements ..."
pip install -r requirements.txt

echo -n "Running tests..."
pytest -k "not test_federation_info.py" tests
pytest tests/test_federation_info.py

2 changes: 1 addition & 1 deletion dev/tests/test_federation_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@


def test_federation_info():
cmd = f"docker logs dev-portalbackend-1 | python3 ../federation_info.py show-portal-backend-audit-entries"
cmd = f"docker logs dev_portalbackend_1 | python3 ../federation_info.py show-portal-backend-audit-entries"
res = subprocess.run(
cmd, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE
)
Expand Down

0 comments on commit 5eaf648

Please sign in to comment.