Api v1.13.0 (#1319)

* fix(chalice): changed base image

* fix(chalice): fixed health check
This commit is contained in:
Kraiem Taha Yassine 2023-06-08 17:54:44 +02:00 committed by GitHub
parent b21b69e09f
commit 0518619392
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 13 additions and 9 deletions

View file

@ -203,7 +203,8 @@ def get_health():
"details": __get_sessions_stats,
"ssl": __check_SSL
}
return __process_health(health_map)
return __process_health(health_map=health_map)
def __process_health(tenant_id, health_map):

View file

@ -1,6 +1,7 @@
FROM python:3.11-alpine3.17
#FROM python:3.11-alpine #revert to this image when this issue is fixed https://github.com/xmlsec/python-xmlsec/issues/252
FROM python:3.11-slim
LABEL Maintainer="KRAIEM Taha Yassine<tahayk2@gmail.com>"
RUN apk add --no-cache build-base libressl libffi-dev libressl-dev libxslt-dev libxml2-dev xmlsec-dev xmlsec tini
RUN apt-get update && apt-get install -y pkg-config libxmlsec1-dev gcc tini && rm -rf /var/lib/apt/lists/*
ARG envarg
ENV SOURCE_MAP_VERSION=0.7.4 \
@ -16,8 +17,10 @@ RUN pip install --no-cache-dir --upgrade -r requirements.txt
COPY . .
RUN mv env.default .env
RUN adduser -u 1001 openreplay -D
RUN #adduser -u 1001 openreplay -D
RUN useradd -mu 1001 openreplay
USER 1001
ENTRYPOINT ["/sbin/tini", "--"]
#ENTRYPOINT ["/sbin/tini", "--"]
ENTRYPOINT ["tini", "--"]
CMD ./entrypoint.sh

View file

@ -212,7 +212,7 @@ def get_health(tenant_id=None):
"details": __get_sessions_stats,
"ssl": __check_SSL
}
return __process_health(tenant_id, health_map)
return __process_health(tenant_id=tenant_id, health_map=health_map)
def __process_health(tenant_id, health_map):

View file

@ -16,10 +16,10 @@ apscheduler==3.10.1
clickhouse-driver==0.2.5
clickhouse-driver[lz4]==0.2.5
# TODO: enable after xmlsec fix
# TODO: enable after xmlsec fix https://github.com/xmlsec/python-xmlsec/issues/252
#--no-binary is used to avoid libxml2 library version incompatibilities between xmlsec and lxml
python3-saml==1.15.0 --no-binary=lxml
# enable when this issue is fixed https://github.com/xmlsec/python-xmlsec/issues/257
#python3-saml==1.15.0 --no-binary=lxml
python3-saml==1.15.0
python-multipart==0.0.6
redis==4.5.5