Skip to content

Commit

Permalink
Additions to the docker file to test with felis
Browse files Browse the repository at this point in the history
  • Loading branch information
bbrondel committed Sep 9, 2024
1 parent bc3326d commit 7d47947
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions Dockerfile.pytest
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
ARG OBS_LSST_VERSION=w_2024_21
ARG OBS_LSST_VERSION=w_2024_32
FROM lsstsqre/centos:7-stack-lsst_distrib-${OBS_LSST_VERSION}
USER root

# testing.postgresql looks for pg in /usr/local...
RUN yum install -y postgresql-server postgresql && rmdir /usr/local/bin && ln -s /usr/bin /usr/local

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

WORKDIR /home/lsst/

COPY --chown=lsst . ./consdb/
WORKDIR /home/lsst/consdb/
RUN source /opt/lsst/software/stack/loadLSST.bash && pip install -e .

ENTRYPOINT [ "/bin/bash", "-c", "source /opt/lsst/software/stack/loadLSST.bash; setup obs_lsst; pytest ." ]
ENTRYPOINT [ "/bin/bash", "-c", "source /opt/lsst/software/stack/loadLSST.bash; setup obs_lsst; setup felis; pytest ." ]

0 comments on commit 7d47947

Please sign in to comment.