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

chore: Minor fixes to update dev deployment setup #172

Merged
merged 1 commit into from
Nov 1, 2024
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
20 changes: 13 additions & 7 deletions .github/workflows/portalbackend-integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,20 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v1
uses: actions/checkout@v4

- name: Set up python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: 3.8

- name: Install Docker Compose
run: |
sudo curl -L "https://github.com/docker/compose/releases/download/$(curl -s https://api.github.com/repos/docker/compose/releases/latest | grep tag_name | cut -d '"' -f 4)/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
docker-compose --version
- name: Install docker compose
uses: KengoTODA/actions-setup-docker-compose@v1
with:
version: '2.30.1'

- name: Docker compose version
run: docker compose version

- name: Deploy portalbackend and exareme2
working-directory: ./dev/
Expand All @@ -31,6 +33,10 @@ jobs:
- name: Get deployment status
run: docker ps

- name: Install python dependencies
working-directory: ./dev/
run: pip install -r requirements.txt

- name: Run the dev tests
working-directory: ./dev/
run: pytest -k "not test_federation_info.py"
Expand Down
9 changes: 3 additions & 6 deletions dev/start.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
#!/bin/env bash

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
docker compose --env-file ../.versions_env down
docker compose --env-file ../.versions_env up -d

echo -n "Waiting for containers to start ..."
sleep 10
Expand All @@ -13,7 +10,7 @@ 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"

sleep 10
sleep 20

echo -n "Triggering engine to see the added pathologies ..."
curl -X POST 172.17.0.1:5000/wla
Expand Down
5 changes: 0 additions & 5 deletions dev/test.sh

This file was deleted.