Skip to content

Commit

Permalink
Incorporate Kafka and handle all instruments.
Browse files Browse the repository at this point in the history
  • Loading branch information
ktlim committed Feb 28, 2024
1 parent 4e8419d commit b925ea1
Show file tree
Hide file tree
Showing 4 changed files with 317 additions and 272 deletions.
15 changes: 11 additions & 4 deletions Dockerfile.hinfo
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,17 @@ FROM lsstsqre/newinstall:${RUBINENV_VERSION}
ARG OBS_LSST_VERSION
ENV OBS_LSST_VERSION=${OBS_LSST_VERSION:-w_2024_06}
USER lsst
RUN source loadLSST.bash && pip install confluent-kafka
RUN source loadLSST.bash && mamba install aiokafka httpx
RUN source loadLSST.bash && pip install kafkit
RUN source loadLSST.bash && eups distrib install -t "${OBS_LSST_VERSION}" obs_lsst
COPY python/lsst/consdb/hinfo*.py ./hinfo/
COPY python/lsst/consdb/hinfo.py ./hinfo/

# Environment variables that must be set:
# POSTGRES_URL INSTRUMENT SITE
# INSTRUMENT: LATISS, LSSTComCam, LSSTComCamSim, LSSTCam
# POSTGRES_URL: SQLAlchemy connection URL
# KAFKA_BOOTSTRAP: AIOKafkaConsumer bootstrap server specification
# SCHEMA_URL: Kafkit registry schema URL
# Optional environment variable:
# BUCKET_PREFIX: "rubin:" at USDF

ENTRYPOINT [ "bash", "-c", "source loadLSST.bash; setup obs_lsst; python .hinfo/hinfo-latiss.py" ]
ENTRYPOINT [ "bash", "-c", "source loadLSST.bash; setup obs_lsst; python ./hinfo/hinfo.py" ]
89 changes: 0 additions & 89 deletions python/lsst/consdb/header_proc.py

This file was deleted.

179 changes: 0 additions & 179 deletions python/lsst/consdb/hinfo-latiss.py

This file was deleted.

Loading

0 comments on commit b925ea1

Please sign in to comment.