[FIX]Radicale C7 : use py38, not py35 (out of date)

This commit is contained in:
Fabien BOURGEOIS 2021-03-27 16:19:06 +01:00
parent 52ed7e5c15
commit 3f40995318
2 changed files with 3 additions and 5 deletions

View File

@ -8,7 +8,7 @@ ENV LANG C.UTF-8
# Install dependencies # Install dependencies
RUN yum install -y centos-release-scl RUN yum install -y centos-release-scl
RUN yum-config-manager --enable rhel-server-rhscl-7-rpms RUN yum-config-manager --enable rhel-server-rhscl-7-rpms
RUN yum install -y rh-python35 RUN yum install -y rh-python38
# Create radicale user # Create radicale user
RUN useradd radicale -md /opt/radicale RUN useradd radicale -md /opt/radicale
WORKDIR /opt/radicale WORKDIR /opt/radicale
@ -18,7 +18,7 @@ USER radicale
# Was v2.1.9 because of regressions on v2.1.10+ on SSL handling, so no more included SSL ATM # Was v2.1.9 because of regressions on v2.1.10+ on SSL handling, so no more included SSL ATM
# No v3 ATM : huge refacotring, whole plugin obsolete... # No v3 ATM : huge refacotring, whole plugin obsolete...
ENV VERSION 2.1.12 ENV VERSION 2.1.12
RUN scl enable rh-python35 "pip install --user radicale==${VERSION}" RUN scl enable rh-python38 "pip install --user radicale==${VERSION}"
COPY config .config/radicale/config/ COPY config .config/radicale/config/
RUN mkdir /opt/radicale/storage RUN mkdir /opt/radicale/storage
@ -29,4 +29,4 @@ VOLUME /opt/radicale/storage
EXPOSE 5232 EXPOSE 5232
# Run Radicale # Run Radicale
CMD scl enable rh-python35 ".local/bin/radicale --hosts 0.0.0.0:5232" CMD scl enable rh-python38 ".local/bin/radicale --hosts 0.0.0.0:5232"

View File

@ -1,2 +0,0 @@
#!/bin/bash
source scl_source enable rh-python35