Implement indexing into Apache Druid #1

Closed
m wants to merge 263 commits from druid into master
4 changed files with 55 additions and 0 deletions
Showing only changes of commit 2b4e037b51 - Show all commits

18
Dockerfile Normal file
View File

@ -0,0 +1,18 @@
# syntax=docker/dockerfile:1
FROM python:3
RUN useradd -d /code pathogen
RUN mkdir /code
RUN chown pathogen:pathogen /code
RUN mkdir /venv
RUN chown pathogen:pathogen /venv
USER pathogen
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
WORKDIR /code
COPY requirements.txt /code/
RUN python -m venv /venv
RUN . /venv/bin/activate && pip install -r requirements.txt
CMD . /venv/bin/activate && exec python /code/threshold

34
docker-compose.yml Normal file
View File

@ -0,0 +1,34 @@
version: "3.9"
services:
app:
image: pathogen/threshold
build: .
volumes:
- .:/code
ports:
- "13867:13867"
- "13868:13868"
- "13869:13869"
# for development
extra_hosts:
- "host.docker.internal:host-gateway"
tmp:
image: busybox
command: chmod -R 777 /var/run/redis
volumes:
- /var/run/redis
redis:
image: redis
command: redis-server /etc/redis.conf
volumes:
- ./docker/redis.conf:/etc/redis.conf
volumes_from:
- tmp
networks:
default:
external:
name: pathogen

2
docker/redis.conf Normal file
View File

@ -0,0 +1,2 @@
unixsocket /var/run/redis/redis.sock
unixsocketperm 777

View File

@ -6,3 +6,4 @@ pyYaML
python-logstash python-logstash
service_identity service_identity
csiphash csiphash
Klein