Skip to content

Commit

Permalink
Separating the networks
Browse files Browse the repository at this point in the history
  • Loading branch information
silverdaz committed Oct 29, 2018
1 parent 555ee08 commit a06d3e2
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 213 deletions.
16 changes: 11 additions & 5 deletions deploy/bootstrap/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,9 @@ version: '3'
# Use the default driver for network creation
networks:
lega:
lega-external:
lega-internal:
lega-private:
# Use the default driver for volume creation
volumes:
Expand Down Expand Up @@ -224,7 +225,7 @@ services:
- ../images/db/grants.sql:/docker-entrypoint-initdb.d/grants.sql:ro
- ../images/db/entrypoint.sh:/usr/bin/ega-entrypoint.sh
networks:
- lega-internal
- lega-private
entrypoint: ["/bin/bash", "/usr/bin/ega-entrypoint.sh"]
# SFTP inbox
Expand All @@ -245,7 +246,8 @@ services:
- ~/_ega/lega:/home/lega/.local/lib/python3.6/site-packages/lega
- ~/_auth:/root/_auth
networks:
- lega
- lega-external
- lega-internal
# entrypoint: ["/bin/bash", "/usr/bin/ega-entrypoint.sh"]
# Ingestion Workers
Expand All @@ -266,6 +268,7 @@ services:
- ~/_cryptor/crypt4gh:/home/lega/.local/lib/python3.6/site-packages/crypt4gh
networks:
- lega-internal
- lega-private
entrypoint: ["gosu", "lega", "ega-ingest"]
# Checksum validation
Expand All @@ -286,6 +289,7 @@ services:
- ~/_cryptor/crypt4gh:/home/lega/.local/lib/python3.6/site-packages/crypt4gh
networks:
- lega-internal
- lega-private
entrypoint: ["gosu", "lega", "ega-verify"]
# Stable ID mapper, and inbox clean up
Expand All @@ -299,6 +303,7 @@ services:
- ~/_ega/lega:/home/lega/.local/lib/python3.6/site-packages/lega
networks:
- lega-internal
- lega-private
entrypoint: ["gosu", "lega", "ega-finalize"]
# Here we use S3
Expand All @@ -312,7 +317,7 @@ services:
volumes:
- vault:/data
networks:
- lega-internal
- lega-private
command: server /data
# HTTP Data-Edge (using OpenID Connect + Permissions Server)
Expand All @@ -328,7 +333,7 @@ services:
- ./outgest.key:/etc/ega/ssl.key
- ~/_ega/lega:/home/lega/.local/lib/python3.6/site-packages/lega
networks:
- lega
- lega-external
- lega-internal
entrypoint: ["gosu", "lega", "ega-outgest"]
Expand All @@ -351,6 +356,7 @@ services:
- ~/_cryptor/crypt4gh:/home/lega/.local/lib/python3.6/site-packages/crypt4gh
networks:
- lega-internal
- lega-private
entrypoint: ["gosu", "lega", "ega-streamer"]
EOF

Expand Down
201 changes: 0 additions & 201 deletions lega/keyserver.py

This file was deleted.

11 changes: 4 additions & 7 deletions lega/notifications.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
port = 8888
delim = b'$'

from .conf import CONF
from .conf import CONF, configure
from .utils.amqp import publish
from .utils.checksum import calculate, supported_algorithms
from .utils.checksum import calculate

LOG = logging.getLogger(__name__)

Expand Down Expand Up @@ -89,11 +89,8 @@ def connection_lost(self, exc):
self.transport.close()


def main(args=None):
if not args:
args = sys.argv[1:]

CONF.setup(args) # re-conf
@configure
def main():

loop = asyncio.get_event_loop()
server = loop.run_until_complete(loop.create_server(Forwarder, host, port))
Expand Down

0 comments on commit a06d3e2

Please sign in to comment.