diff --git a/.github/docker/docker_config.json b/.github/docker/docker_config.json deleted file mode 100644 index 28b7230b..00000000 --- a/.github/docker/docker_config.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "debug": true, - "database_backend": "mongodb", - "mongo_uri": "mongodb://db:27017", - "mongo_database": "docker_optimade_gateway", - "page_limit": 20, - "page_limit_max": 500, - "base_url": "http://gh_actions_host:5000", - "implementation": { - "name": "OPTIMADE Gateway", - "version": "0.1.2", - "source_url": "https://github.com/Materials-Consortia/optimade-gateway", - "maintainer": {"email": "casper.andersen@epfl.ch"} - }, - "provider": { - "name": "OPTIMADE Gateway", - "description": "A gateway server to query multiple OPTIMADE databases.", - "prefix": "gateway", - "homepage": "https://github.com/Materials-Consortia/optimade-gateway" - }, - "provider_fields": {}, - "aliases": {}, - "length_aliases": {}, - "log_level": "debug", - "load_optimade_providers_databases": false -} diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0fc1f01c..23b71641 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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