Skip to content

Commit

Permalink
Revert "chore: restored logstash dockerfile"
Browse files Browse the repository at this point in the history
This reverts commit ffd2e8a.
  • Loading branch information
Picred committed Apr 30, 2024
1 parent c320be2 commit de7d9f1
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions logstash/Dockerfile
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

0 comments on commit de7d9f1

Please sign in to comment.