Testing queue method

This commit is contained in:
MauricioGarciaS 2022-11-18 11:26:51 +01:00
parent c37af6acc2
commit b5bfc32f38
3 changed files with 3 additions and 25 deletions

View file

@ -1,7 +1,7 @@
import json
import schemas_ee
from chalicelib.utils import helper
from chalicelib.utils import helper, queue
from chalicelib.utils import pg_client

View file

@ -0,0 +1,2 @@
import schemas
import schemas_ee

View file

@ -1,24 +0,0 @@
FROM python:3.10
WORKDIR service
COPY tmp/ch_client.py utils/
COPY tmp/pg_client.py utils/
COPY recommendation.py .
COPY requirements.txt .
RUN apt update
RUN apt-get install libxml2-dev libxmlsec1-dev libxmlsec1-openssl -y
RUN pip install --upgrade pip
RUN pip install -r requirements.txt
RUN touch utils/__init__.py
ENV pg_host=postgresql.db.svc.cluster.local \
pg_port=5432 \
pg_user='postgres' \
pg_password='8ea158c722fab5976023' \
pg_dbname='postgres' \
PG_TIMEOUT=30 \
ch_host=clickhouse-openreplay-clickhouse.db.svc.cluster.local \
ch_port=9000 \
ch_timeout=30 \
ch_receive_timeout=40
EXPOSE 8080
RUN airflow db init
CMD airflow webserver --host 0.0.0.0 --port 8080