Skip to content

Commit

Permalink
Merge pull request #83 from alan-turing-institute/feature-json-config
Browse files Browse the repository at this point in the history
Add manager json config mechanism and refactor openfoam demo cases
  • Loading branch information
masonlr committed Jul 1, 2018
2 parents 07920c5 + 40face0 commit 638c30c
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 19 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ matrix:

before_install:
- git submodule update --init --recursive
- cp gateway-openfoam/gateway-job-manager-openfoam/config.py.example gateway-openfoam/gateway-job-manager-openfoam/config.py
- cp gateway-openfoam/gateway-job-manager-openfoam/config.example.json gateway-openfoam/gateway-job-manager-openfoam/config.development.json
- (cd gateway-openfoam/gateway-job-manager-openfoam/keys && ./create_keys.sh)

install:
- docker-compose build
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ This repository is for managing project-level issues. See separate repositories

```shell
(cd gateway-openfoam/gateway-job-manager-openfoam && cp config.py.example config.py)
(cd gateway-auth && cp config.py.example config.py)
(cd gateway-auth && cp config.example.json config.development.json)
```

1. Bring up the full system.
Expand Down
19 changes: 10 additions & 9 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
version: '3'
services:

middleware:
build:
context: gateway-middleware
Expand Down Expand Up @@ -30,11 +31,11 @@ services:
ports:
- "5050:5050"
volumes:
- ./gateway-auth:/app
- ./gateway-auth:/app
depends_on:
- postgres_auth
- postgres_auth
networks:
- db_nw
- db_nw

postgres_auth:
image: "postgres:latest"
Expand All @@ -52,14 +53,14 @@ services:
context: gateway-openfoam/gateway-job-manager-openfoam
dockerfile: Dockerfile
ports:
- "5001:5001"
- "10023:22"
- "5001:5001"
- "10023:22"
volumes:
- ./gateway-openfoam/gateway-job-manager-openfoam:/app
- ./gateway-openfoam/gateway-job-manager-openfoam:/app
environment:
- FLASK_CONFIGURATION=default
- azure_account_name
- azure_account_key
- FLASK_CONFIGURATION=development
- STORAGE_ACCOUNT_NAME
- STORAGE_ACCOUNT_KEY
depends_on:
- middleware
- simulator
Expand Down
2 changes: 1 addition & 1 deletion gateway-frontend
2 changes: 1 addition & 1 deletion gateway-middleware
2 changes: 1 addition & 1 deletion gateway-openfoam
11 changes: 7 additions & 4 deletions setup.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
#!/bin/bash

echo "INFO: running postgres container"
docker-compose run postgres &
docker-compose run postgres_auth &

echo "INFO: please wait, postgres container will shut down in 5 seconds"
docker-compose run postgres &
sleep 5
docker-compose down

echo "INFO: please wait, postgres and postgres_auth containers will shut down in 10 seconds"
sleep 10
echo "INFO: please wait, postgres_auth container will shut down in 5 seconds"
docker-compose run postgres_auth &
sleep 5
docker-compose down

0 comments on commit 638c30c

Please sign in to comment.