diff --git a/dockerfile-dev-with-volumes/README.adoc b/dockerfile-dev-with-volumes/README.adoc index e3f2a89a5c..4ecf9aeccd 100755 --- a/dockerfile-dev-with-volumes/README.adoc +++ b/dockerfile-dev-with-volumes/README.adoc @@ -76,12 +76,16 @@ ES_VERSION = 7 ES_URL = ['http://elasticsearch:9200/'] + CACHES = { - # … default cache config and others "default": { - "BACKEND": "django.core.cache.backends.locmem.LocMemCache", + "BACKEND": "django_redis.cache.RedisCache", + "LOCATION": "redis://redis:6379/3", + "OPTIONS": { + "CLIENT_CLASS": "django_redis.client.DefaultClient", + }, + "KEY_PREFIX": "pod" }, - # Persistent cache setup for select2 (NOT DummyCache or LocMemCache). "select2": { "BACKEND": "django_redis.cache.RedisCache", "LOCATION": "redis://redis:6379/2", @@ -90,6 +94,15 @@ CACHES = { }, }, } +SESSION_ENGINE = "redis_sessions.session" +SESSION_REDIS = { + "host": "redis", + "port": 6379, + "db": 4, + "prefix": "session", + "socket_timeout": 1, + "retry_on_timeout": False, +} # Uniquement lors d’environnement conteneurisé MIGRATION_MODULES = {'flatpages': 'pod.db_migrations'} diff --git a/dockerfile-dev-with-volumes/pod/Dockerfile b/dockerfile-dev-with-volumes/pod/Dockerfile index e1a08e348c..755e9ad3b2 100755 --- a/dockerfile-dev-with-volumes/pod/Dockerfile +++ b/dockerfile-dev-with-volumes/pod/Dockerfile @@ -29,12 +29,13 @@ WORKDIR /usr/src/app COPY ./requirements.txt . COPY ./requirements-conteneur.txt . +COPY ./requirements-dev.txt . RUN mkdir /tmp/node_modules/ COPY --from=source-build-js /tmp/pod/node_modules/ /tmp/node_modules/ -RUN pip3 install --no-cache-dir -r requirements.txt \ - && pip3 install --no-cache-dir -r requirements-conteneur.txt +RUN pip3 install --no-cache-dir -r requirements-conteneur.txt \ + && pip3 install elasticsearch==7.17.7 # ENTRYPOINT : COPY ./dockerfile-dev-with-volumes/pod/my-entrypoint.sh /tmp/my-entrypoint.sh diff --git a/pod/import_video/templates/import_video/list.html b/pod/import_video/templates/import_video/list.html index 9086c65cc4..e3792dd50b 100644 --- a/pod/import_video/templates/import_video/list.html +++ b/pod/import_video/templates/import_video/list.html @@ -47,20 +47,9 @@ {% for record in recordings %}