Skip to content

Commit

Permalink
Update docker CI job
Browse files Browse the repository at this point in the history
  • Loading branch information
CasperWA committed Sep 6, 2021
1 parent 418e9d7 commit 3cdbde5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 45 deletions.
26 changes: 0 additions & 26 deletions .github/docker/docker_config.json

This file was deleted.

24 changes: 5 additions & 19 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,30 +102,16 @@ jobs:
with:
fetch-depth: 2

- name: Setup and run OPTIMADE Python tools server
run: |
git clone --recurse-submodules https://github.com/Materials-Consortia/optimade-python-tools
docker-compose -f ./optimade-python-tools/docker-compose.yml up optimade &
.github/utils/wait_for_it.sh localhost:3213 -t 120
- name: Build the Docker app
run: docker-compose build --build-arg CONFIG_FILE=".github/docker/docker_config.json"
run: docker-compose build
env:
OPTIMADE_BASE_URL: "http://gh_actions_host:5000"

- name: Start the Docker app (adding OPT server to 'gateway' network)
- name: Start the Docker app
run: |
docker-compose up &
.github/utils/wait_for_it.sh localhost:5000 -t 120
sleep 5
docker network connect --alias optimade-sample-server optimade-gateway_gateway optimade-python-tools_optimade_1
- name: OPTIMADE Validator for gateway
uses: Materials-Consortia/optimade-validator-action@v2
with:
port: 5000
path: /gateways/docker_ci
all versioned paths: True
validate unversioned path: True
verbosity: 2
sleep 30
docs:
name: Documentation
Expand Down

0 comments on commit 3cdbde5

Please sign in to comment.