pricer added
This commit is contained in:
parent
6ca68092de
commit
5e8bc4cf5d
3
microservices/pricer/.dockerignore
Normal file
3
microservices/pricer/.dockerignore
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
.git
|
||||||
|
**/__pycache__
|
||||||
|
.pipenv
|
||||||
19
microservices/pricer/Dockerfile
Normal file
19
microservices/pricer/Dockerfile
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
FROM python:3.12-slim
|
||||||
|
|
||||||
|
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"]
|
||||||
13
microservices/pricer/entrypoint.sh
Executable file
13
microservices/pricer/entrypoint.sh
Executable file
@ -0,0 +1,13 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
ConfigDir=/config
|
||||||
|
LogDir=/logs
|
||||||
|
|
||||||
|
Cmd="python3.12"
|
||||||
|
Cmd+=" cvttpy/apps/microservices/pricer/pricer.py"
|
||||||
|
Cmd+=" --config=${ConfigDir}/${PXER_CONFIG_FILE:-cvtt_musvc.cfg}"
|
||||||
|
Cmd+=" --log_file=${LogDir}/${PXER_LOG_FILE:-%T.pricer.log}"
|
||||||
|
Cmd+=" ${PXER_ADD_ARGS}"
|
||||||
|
echo ${Cmd}
|
||||||
|
exec ${Cmd}
|
||||||
|
|
||||||
9
microservices/pricer/requirements.txt
Normal file
9
microservices/pricer/requirements.txt
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
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
|
||||||
Loading…
x
Reference in New Issue
Block a user