Skip to content

Commit

Permalink
Merge pull request #3 from bacpop/bacpop-143
Browse files Browse the repository at this point in the history
bacpop-143 update for GPS_v6
  • Loading branch information
EmmaLRussell authored Feb 22, 2024
2 parents 356a24d + db7822b commit 2ac606a
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 20 deletions.
3 changes: 2 additions & 1 deletion config/beebop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,13 @@ server:
name: beebop-server
tag: main
port: 4000
redis_url: "redis://beebop-redis:6379"
api:
image:
repo: mrcide
name: beebop-py
tag: main
db_location: ./storage/GPS_v4_references
db_location: ./storage/GPS_v6_references
use_small_db: true
storage_location: ./storage
redis:
Expand Down
8 changes: 4 additions & 4 deletions config/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ server:
server_url: https://localhost/api
auth:
google:
client_id: VAULT:secret/beebop/auth/google:clientid
secret: VAULT:secret/beebop/auth/google:secret
client_id: VAULT:secret/beebop/auth/devdocker/google:clientid
secret: VAULT:secret/beebop/auth/devdocker/google:secret
session_secret: VAULT:secret/beebop/express-session:secret
github:
client_id: VAULT:secret/beebop/auth/github:clientid
secret: VAULT:secret/beebop/auth/github:secret
client_id: VAULT:secret/beebop/auth/devdocker/github:clientid
secret: VAULT:secret/beebop/auth/devdocker/github:secret
vault:
addr: https://vault.dide.ic.ac.uk:8200
auth:
Expand Down
6 changes: 3 additions & 3 deletions config/prod.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
proxy:
host: beebop.dide.ic.ac.uk
ssl:
certificate: VAULT:secret/beebop/ssl:cert
key: VAULT:secret/beebop/ssl:key
certificate: VAULT:secret/beebop/ssl/production:cert
key: VAULT:secret/beebop/ssl/production:key
server:
client_url: https://beebop.dide.ic.ac.uk
server_url: https://beebop.dide.ic.ac.uk/api
Expand All @@ -19,7 +19,7 @@ vault:
auth:
method: github
api:
db_location: ./storage/GPS_v4
db_location: ./storage/GPS_v6
use_small_db: false
worker:
count: 5
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
constellation==0.0.12
constellation==1.0.0
docopt
pytest
timeago
Expand Down
2 changes: 2 additions & 0 deletions src/beebop_deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ def __init__(self, path, config_name=None, options=None):
self.server_port = config.config_integer(dat, ["server", "port"])
self.client_url = config.config_string(dat, ["server", "client_url"])
self.server_url = config.config_string(dat, ["server", "server_url"])
self.redis_url = config.config_string(dat, ["server", "redis_url"])
self.google_client_id = config.config_string(
dat, ["server", "auth", "google", "client_id"])
self.google_client_secret = config.config_string(
Expand Down Expand Up @@ -199,6 +200,7 @@ def configure(container, cfg):
"api_url": "http://{}:5000".format(api.name),
"client_url": cfg.client_url,
"server_url": cfg.server_url,
"redis_url": cfg.redis_url,
"GOOGLE_CLIENT_ID": cfg.google_client_id,
"GOOGLE_CLIENT_SECRET": cfg.google_client_secret,
"GITHUB_CLIENT_ID": cfg.github_client_id,
Expand Down
22 changes: 11 additions & 11 deletions test/test_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,19 @@ def test_start_beebop():

assert docker_util.network_exists("beebop_nw")
assert docker_util.volume_exists("beebop_storage")
assert docker_util.container_exists("beebop_api")
assert docker_util.container_exists("beebop_redis")
assert docker_util.container_exists("beebop_server")
assert docker_util.container_exists("beebop_proxy")
assert len(docker_util.containers_matching("beebop_worker_", False)) == 2
assert docker_util.container_exists("beebop-api")
assert docker_util.container_exists("beebop-redis")
assert docker_util.container_exists("beebop-server")
assert docker_util.container_exists("beebop-proxy")
assert len(docker_util.containers_matching("beebop-worker-", False)) == 2

obj.destroy()

assert not docker_util.network_exists("beebop_nw")
assert not docker_util.volume_exists("beebop_storage")
assert not docker_util.container_exists("beebop_api")
assert not docker_util.container_exists("beebop_redis")
assert not docker_util.container_exists("beebop_server")
assert not docker_util.container_exists("beebop_worker")
assert not docker_util.container_exists("beebop_proxy")
assert len(docker_util.containers_matching("beebop_worker_", False)) == 0
assert not docker_util.container_exists("beebop-api")
assert not docker_util.container_exists("beebop-redis")
assert not docker_util.container_exists("beebop-server")
assert not docker_util.container_exists("beebop-worker")
assert not docker_util.container_exists("beebop-proxy")
assert len(docker_util.containers_matching("beebop-worker-", False)) == 0

0 comments on commit 2ac606a

Please sign in to comment.