progress (UNTESTED)
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
.git
|
||||
**/__pycache__
|
||||
.pipenv
|
||||
@@ -0,0 +1,25 @@
|
||||
FROM python:3.12-slim
|
||||
|
||||
# libpq needed for Timescale
|
||||
RUN apt-get update && apt-get install -y \
|
||||
apt-utils \
|
||||
libpq-dev \
|
||||
build-essential
|
||||
|
||||
COPY requirements.txt /
|
||||
|
||||
RUN pip install --upgrade pip --root-user-action=ignore
|
||||
RUN pip install -r /requirements.txt --root-user-action=ignore
|
||||
|
||||
COPY cvttpy /cvttpy
|
||||
|
||||
RUN mkdir -p /logs /config
|
||||
|
||||
SHELL ["/bin/bash", "-c"]
|
||||
|
||||
ENV PYTHONPATH=/
|
||||
|
||||
COPY entrypoint.sh /entrypoint.sh
|
||||
RUN chmod +x /entrypoint.sh
|
||||
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
||||
Executable
+16
@@ -0,0 +1,16 @@
|
||||
#!/bin/bash
|
||||
|
||||
LogDir=/logs
|
||||
|
||||
Cmd="python3.12"
|
||||
Cmd+=" cvttpy/apps/microservices/book_keeper/book_keeper.py"
|
||||
|
||||
Cmd+=" --config=${CONFIG_FILE}"
|
||||
Cmd+=" --log_file=${LogDir}/${BKPR_LOG_FILE}"
|
||||
Cmd+=" --credentials_file=${BKPR_CREDS_FILE:-/config/.creds}"
|
||||
|
||||
|
||||
Cmd+=" ${BKPR_ADD_ARGS}"
|
||||
echo ${Cmd}
|
||||
exec ${Cmd}
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
aiohttp>=3.7.4.post0
|
||||
nest-asyncio>=1.5.5
|
||||
hjson>=3.1.0
|
||||
sortedcontainers>=2.4.0
|
||||
redis>=5.0.8
|
||||
python-dateutil>=2.8.2
|
||||
types-python-dateutil>=2.8.19.6
|
||||
cryptography>=43.0.0
|
||||
PyJWT>=2.10.1
|
||||
psycopg>=3.2.1
|
||||
pandas>=1.5.3
|
||||
Reference in New Issue
Block a user