[IMP]Radicale on OL8, Rsync from C7 to OL7

This commit is contained in:
Fabien BOURGEOIS 2022-02-11 13:29:17 +01:00
parent 887388c6e3
commit b2ea4032e4
3 changed files with 36 additions and 1 deletions

View File

@ -1,4 +1,4 @@
FROM centos:7
FROM oraclelinux:7
MAINTAINER Yaltik - Fabien Bourgeois <fabien@yaltik.com>
ENV SOURCE /var/lib/docker/volumes

30
radicale/Dockerfile.ol Normal file
View File

@ -0,0 +1,30 @@
FROM oraclelinux:8
MAINTAINER Yaltik - Fabien Bourgeois <fabien@yaltik.com>
# http://bugs.python.org/issue19846
# > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK.
ENV LANG C.UTF-8
# Install dependencies
RUN dnf install -y python3 python3-pip
# Create radicale user
RUN useradd radicale -md /opt/radicale
WORKDIR /opt/radicale
USER radicale
# Install Radicale
# Was v2.1.9 because of regressions on v2.1.10+ on SSL handling, so no more included SSL ATM
# No v3 ATM : huge refactoring, whole plugin obsolete...
ENV VERSION 2.1.12
RUN pip3 install --user radicale==${VERSION}
COPY config .config/radicale/config
RUN mkdir /opt/radicale/storage
# Persistent storage for data and configuration
VOLUME /opt/radicale/storage
# TCP port of Radicale
EXPOSE 5232
# Run Radicale
CMD .local/bin/radicale --hosts 0.0.0.0:5232

View File

@ -8,3 +8,8 @@ services:
context: .
dockerfile: Dockerfile.c7
image: registry.yaltik.net/radicale:yaltikc7
radicaleol:
build:
context: .
dockerfile: Dockerfile.ol
image: registry.yaltik.net/radicale:yaltikol8