-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "chore: restored logstash dockerfile"
This reverts commit ffd2e8a.
- Loading branch information
Showing
1 changed file
with
13 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,17 @@ | ||
FROM docker.elastic.co/logstash/logstash:8.13.0 | ||
|
||
WORKDIR /app | ||
# Add your logstash plugins setup here | ||
RUN logstash-plugin install logstash-filter-sentimentalizer | ||
COPY ingestion_manager.py . | ||
COPY requirements.txt . | ||
RUN apt-get update && apt-get install -y python3-pip | ||
|
||
# Build: | ||
# docker build . --tag tap:logstash | ||
# Run: | ||
# docker run --rm -it --hostname="logstash" -v $PWD/pipeline/from_python_to_kafka.conf:/usr/logstash/pipeline/logstash.conf -e XPACK_MONITORING_ENABLED=false docker.elastic.co/logstash/logstash:8.13.0 | ||
# Codespaces: | ||
# docker run --rm -it --hostname="logstash" -v ./pipeline/from_python_to_kafka.conf:/usr/logstash/pipeline/logstash.conf -e API_KEY=0e72cb61-87b6-4ab4-b422-0886e1305ac6 -e XPACK_MONITORING_ENABLED=false docker.elastic.co/logstash/logstash:8.13.0 | ||
RUN pip install -r requirements.txt | ||
RUN python3 ingestion_manager.py | ||
# RUN logstash-plugin install logstash-filter-sentimentalizer | ||
|
||
# to build with | ||
# docker build . --tag tap:logstash | ||
# and run with | ||
# docker run --rm -it --hostname="logstash" -v $PWD/pipeline/from_python_to_kafka.conf:/usr/logstash/pipeline/logstash.conf -e XPACK_MONITORING_ENABLED=false docker.elastic.co/logstash/logstash:8.13.0 | ||
# Codespaces: docker run --rm -it --hostname="logstash" -v ./pipeline/from_python_to_kafka.conf:/usr/logstash/pipeline/logstash.conf -e API_KEY=0e72cb61-87b6-4ab4-b422-0886e1305ac6 -e XPACK_MONITORING_ENABLED=false docker.elastic.co/logstash/logstash:8.13.0 |