Skip to content

Commit

Permalink
Fix docker files
Browse files Browse the repository at this point in the history
  • Loading branch information
bbrondel committed Jan 8, 2025
1 parent 04b772e commit b402b60
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
15 changes: 14 additions & 1 deletion Dockerfile.pqserver
Original file line number Diff line number Diff line change
@@ -1,7 +1,20 @@
FROM python:3.11
RUN pip install fastapi safir astropy uvicorn gunicorn sqlalchemy psycopg2
WORKDIR /
COPY python/lsst/consdb/__init__.py python/lsst/consdb/pqserver.py python/lsst/consdb/utils.py /consdb_pq/
COPY \
python/lsst/consdb/__init__.py \
python/lsst/consdb/pqserver.py \
python/lsst/consdb/cdb_schema.py \
python/lsst/consdb/config.py \
python/lsst/consdb/dependencies.py \
python/lsst/consdb/exceptions.py \
python/lsst/consdb/models.py \
/consdb_pq/
COPY \
python/lsst/consdb/handlers/external.py \
python/lsst/consdb/handlers/internal.py \
/consdb_pq/handlers/

# Environment variables that must be set:
# DB_HOST DB_PASS DB_USER DB_NAME or POSTGRES_URL

Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.pytest
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ RUN yum install -y postgresql-server postgresql && rmdir /usr/local/bin && ln -s

USER lsst
RUN source loadLSST.bash && mamba install -y aiokafka httpx
RUN source loadLSST.bash && pip install kafkit aiokafka httpx pytest-asyncio testing.postgresql lsst-felis
RUN source loadLSST.bash && pip install kafkit aiokafka httpx pytest-asyncio testing.postgresql lsst-felis safir

WORKDIR /home/lsst/

Expand Down

0 comments on commit b402b60

Please sign in to comment.