Implement indexing into Apache Druid #1

Closed
m wants to merge 263 commits from druid into master
6 changed files with 54 additions and 4 deletions
Showing only changes of commit 94303b1108 - Show all commits

View File

@ -3,7 +3,7 @@ version: "2"
services: services:
app: app:
image: pathogen/threshold image: pathogen/threshold
build: . build: ./docker
volumes: volumes:
- ${PORTAINER_GIT_DIR}:/code - ${PORTAINER_GIT_DIR}:/code
ports: ports:
@ -11,10 +11,12 @@ services:
- "${THRESHOLD_RELAY_PORT}:${THRESHOLD_RELAY_PORT}" - "${THRESHOLD_RELAY_PORT}:${THRESHOLD_RELAY_PORT}"
- "${THRESHOLD_API_PORT}:${THRESHOLD_API_PORT}" - "${THRESHOLD_API_PORT}:${THRESHOLD_API_PORT}"
env_file: env_file:
- stack.env - .env
# for development # for development
extra_hosts: extra_hosts:
- "host.docker.internal:host-gateway" - "host.docker.internal:host-gateway"
volumes_from:
- tmp
tmp: tmp:
image: busybox image: busybox

View File

@ -12,7 +12,7 @@ USER pathogen
ENV PYTHONDONTWRITEBYTECODE=1 ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1 ENV PYTHONUNBUFFERED=1
WORKDIR /code WORKDIR /code
COPY requirements.txt /code/ COPY requirements.prod.txt /code/
RUN python -m venv /venv RUN python -m venv /venv
RUN . /venv/bin/activate && pip install -r requirements.txt RUN . /venv/bin/activate && pip install -r requirements.prod.txt
CMD . /venv/bin/activate && exec python /code/threshold CMD . /venv/bin/activate && exec python /code/threshold

View File

@ -0,0 +1,38 @@
version: "2"
services:
app:
image: pathogen/threshold
build: ./docker
volumes:
- ${PORTAINER_GIT_DIR}:/code
ports:
- "${THRESHOLD_LISTENER_PORT}:${THRESHOLD_LISTENER_PORT}"
- "${THRESHOLD_RELAY_PORT}:${THRESHOLD_RELAY_PORT}"
- "${THRESHOLD_API_PORT}:${THRESHOLD_API_PORT}"
env_file:
- .env
# for development
extra_hosts:
- "host.docker.internal:host-gateway"
volumes_from:
- tmp
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

View File

@ -0,0 +1,9 @@
wheel
twisted
pyOpenSSL
redis
pyYaML
python-logstash
service_identity
csiphash
Klein

View File

@ -1,3 +1,4 @@
wheel
pre-commit pre-commit
twisted twisted
pyOpenSSL pyOpenSSL