Skip to content

Commit

Permalink
debug webapi with logs
Browse files Browse the repository at this point in the history
  • Loading branch information
alondhe committed Aug 21, 2023
1 parent 09176a5 commit ce70955
Showing 1 changed file with 19 additions and 21 deletions.
40 changes: 19 additions & 21 deletions .github/workflows/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ jobs:
default:
env:
ENV_FILE: ./.env
LOCALHOST_URL: http://127.0.0.1
strategy:
matrix:
os:
Expand All @@ -16,38 +17,35 @@ jobs:
uses: douglascamata/setup-docker-macos-action@v1-alpha
- name: Checkout
uses: actions/checkout@v3
- name: Public IP
id: ip
uses: haythem/public-ip@v1.3
- name: Create certs folder
run: mkdir -p ./certs
- name: Build traefik container
run: BROADSEA_HOST=${{ steps.ip.outputs.ipv4 }} docker-compose --env-file $ENV_FILE up -d
run: docker-compose --env-file $ENV_FILE up -d
- name: Build atlasdb profile
run: |
BROADSEA_HOST=${{ steps.ip.outputs.ipv4 }} docker-compose --env-file $ENV_FILE --profile atlasdb up -d
- name: Build content profile
run: BROADSEA_HOST=${{ steps.ip.outputs.ipv4 }} docker-compose --env-file $ENV_FILE --profile content up -d
- name: Build hades profile
run: BROADSEA_HOST=${{ steps.ip.outputs.ipv4 }} docker-compose --env-file $ENV_FILE --profile hades up -d
- name: Build atlas profile
run: BROADSEA_HOST=${{ steps.ip.outputs.ipv4 }} docker-compose --env-file $ENV_FILE --profile atlas-from-image up -d
run: docker-compose --env-file $ENV_FILE --profile atlasdb up -d
#- name: Build content profile
# run: docker-compose --env-file $ENV_FILE --profile content up -d
#- name: Build hades profile
# run: docker-compose --env-file $ENV_FILE --profile hades up -d
#- name: Build atlas profile
# run: docker-compose --env-file $ENV_FILE --profile atlas-from-image up -d
- name: Test atlasdb
run: |
sudo apt-get update
sudo apt-get install --yes --no-install-recommends postgresql-client
pg_isready -d postgres -h 127.0.0.1 -p 5432 -U postgres
- name: Build webapi profile, sleep 3 mins
run: |
BROADSEA_HOST=${{ steps.ip.outputs.ipv4 }} docker-compose --env-file $ENV_FILE --profile webapi-from-image up -d
docker-compose --env-file $ENV_FILE --profile webapi-from-image up -d
sleep 180
- name: Test content container
run: curl -s ${{ steps.ip.outputs.ipv4 }}
- name: Test HADES
run: curl -s ${{ steps.ip.outputs.ipv4 }}/hades/auth-sign-in
- name: Test Atlas
run: curl -s ${{ steps.ip.outputs.ipv4 }}/atlas/#/home
- name: Test WebAPI
run: curl -s ${{ steps.ip.outputs.ipv4 }}/WebAPI/info
docker logs ohdsi-webapi
#- name: Test content container
# run: curl -s $LOCALHOST_URL
#- name: Test HADES
# run: curl -s $LOCALHOST_URL
#- name: Test Atlas
# run: curl -s $LOCALHOST_URL/atlas/#/home
#- name: Test WebAPI
# run: curl -s $LOCALHOST_URL/WebAPI/info
- name: Test traefik container
run: docker logs traefik

0 comments on commit ce70955

Please sign in to comment.