-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
36 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
ARG RUBINENV_VERSION=8.0.0 | ||
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 && 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/obsloctap/consume-kafka.py ./obsloctap/ | ||
|
||
# Environment variables that must be set: | ||
# POSTGRES_URL: SQLAlchemy connection URL | ||
# KAFKA_BOOTSTRAP: host:port of bootstrap server | ||
# KAFKA_PASSWORD: password for SASL_PLAIN authentication | ||
# SCHEMA_URL: Kafkit registry schema URL | ||
# Optional environment variables: | ||
# BUCKET_PREFIX: set to "rubin:" at USDF, default is "" | ||
# KAFKA_GROUP_ID: name of consumer group, default is "obsloctap-consumer" | ||
# KAFKA_USERNAME: username for SASL_PLAIN authentication, default is "obsloctap" | ||
|
||
ENTRYPOINT [ "bash", "-c", "source loadLSST.bash; setup obs_lsst; python ./obsloctap/consume-kafka.py" ] |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters