Skip to content

Commit

Permalink
simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
bpblanken committed Sep 21, 2023
1 parent 300c3ec commit 28d65b4
Show file tree
Hide file tree
Showing 8 changed files with 3 additions and 36 deletions.
12 changes: 1 addition & 11 deletions deploy/docker/hail_search/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,9 @@ LABEL maintainer="Broad TGG"

WORKDIR /hail_search

# Install dependencies.
# (Explicitly not using a build image w/ venev here because our additional requirements are minimal... for now)
COPY hail_search/requirements-deploy.txt .
RUN pip install --no-cache-dir -r requirements-deploy.txt

# Deployment utilities
COPY deploy/docker/hail_search/gunicorn_config.py /
COPY deploy/docker/hail_search/readiness_probe /
COPY deploy/docker/hail_search/start_server.sh /

# Application Code
COPY hail_search/ .

WORKDIR /
EXPOSE 8000
CMD ["/start_server.sh"]
CMD ["python", "-m", "hail_search"]
9 changes: 0 additions & 9 deletions deploy/docker/hail_search/gunicorn_config.py

This file was deleted.

1 change: 0 additions & 1 deletion deploy/docker/hail_search/readiness_probe

This file was deleted.

2 changes: 0 additions & 2 deletions deploy/docker/hail_search/start_server.sh

This file was deleted.

3 changes: 1 addition & 2 deletions hail_search/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,11 @@

def run():
logging.basicConfig(level=logging.INFO)
hl.init()
app = init_web_app()
web.run_app(
app,
host='0.0.0.0', # nosec
port=5000,
port=8000,
access_log_format='%{From}i "%r" %s %Tfs',
)

Expand Down
1 change: 0 additions & 1 deletion hail_search/requirements-deploy.in

This file was deleted.

10 changes: 0 additions & 10 deletions hail_search/requirements-deploy.txt

This file was deleted.

1 change: 1 addition & 0 deletions hail_search/web_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,6 @@ async def init_web_app():
web.post('/search', search),
web.post('/gene_counts', gene_counts),
])
hl.init(idempotent=True)
load_globals()
return app

0 comments on commit 28d65b4

Please sign in to comment.