-
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
30 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
graft src/collective | ||
graft examples | ||
include *.rst | ||
exclude container/* | ||
global-exclude *.pyc |
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 @@ | ||
# syntax=docker/dockerfile:1 | ||
FROM python:3.12-slim | ||
|
||
ARG IMAGE_VERSION | ||
ARG PACKAGE_VERSION | ||
|
||
# TODO: use https://github.com/opencontainers/image-spec/blob/main/annotations.md | ||
LABEL version="${PACKAGE_VERSION}-${IMAGE_VERSION}" | ||
LABEL description="Ingestion service queue runner between Plone RestAPI and ElasticSearch or OpenSearch." | ||
LABEL maintainer="Jens Klein" | ||
LABEL org.label-schema.name="collective.elastic.ingest" | ||
LABEL org.label-schema.description="Ingestion service queue runner between Plone RestAPI and ElasticSearch or OpenSearch." | ||
LABEL org.label-schema.vendor="Klein & Partner KG and Contributors" | ||
|
||
RUN <<EOT | ||
pip install --upgrade pip | ||
pip install "collective.elastic.ingest[opensearch,elasticsearch,redis,rabbitmq]==$PACKAGE_VERSION" | ||
EOT | ||
|
||
COPY entrypoint.sh /entrypoint.sh | ||
ENTRYPOINT ["/entrypoint.sh"] |
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,7 @@ | ||
#!/bin/bash | ||
set -o errexit | ||
|
||
CONCURRENCY="${CELERY_CONCURRENCY:=1}" | ||
LOGLEVEL="${CELERY_LOGLEVEL:=info}" | ||
|
||
celery -A collective.elastic.ingest.celery.app worker -c $CONCURRENCY -l $LOGLEVEL |
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