add properties

This commit is contained in:
nora 2023-09-05 16:48:49 +02:00
parent 7166133801
commit 2a273d5b25
2 changed files with 24 additions and 4 deletions

View file

@ -1,7 +1,13 @@
FROM ubuntu:22.04 FROM ubuntu:22.04
RUN apt-get update RUN apt-get update
RUN apt-get install -y curl unzip RUN apt-get install -y curl unzip locales
RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && \
locale-gen
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
RUN useradd -m -s /bin/bash openolat RUN useradd -m -s /bin/bash openolat
@ -19,9 +25,9 @@ RUN curl -OL https://github.com/adoptium/temurin17-binaries/releases/download/jd
&& ln -s jdk-17.0.8.1+1-jre jre \ && ln -s jdk-17.0.8.1+1-jre jre \
&& rm -r ./downloads && rm -r ./downloads
RUN curl -O https://www.openolat.com/releases/openolat_17214.war --output-dir ./downloads --create-dirs \ RUN curl -O https://www.openolat.com/releases/openolat_1804.war --output-dir ./downloads --create-dirs \
&& unzip -d openolat-17.2.14 ./downloads/openolat_17214.war \ && unzip -d openolat-18.0.4 ./downloads/openolat_1804.war \
&& ln -s openolat-17.2.14 webapp \ && ln -s openolat-18.0.4 webapp \
&& rm -r ./downloads && rm -r ./downloads
RUN mkdir bin conf lib run logs RUN mkdir bin conf lib run logs
@ -49,6 +55,8 @@ ENV DB_URL jdbc:postgresql://localhost:5432/oodb
RUN mkdir -p /home/openolat/conf/Catalina/localhost/ RUN mkdir -p /home/openolat/conf/Catalina/localhost/
COPY ./ROOT.xml /home/openolat/conf/Catalina/localhost/ROOT.xml COPY ./ROOT.xml /home/openolat/conf/Catalina/localhost/ROOT.xml
COPY ./olat.local.properties /home/openolat/lib/olat.local.properties
COPY ./entrypoint.sh /home/openolat/entrypoint.sh COPY ./entrypoint.sh /home/openolat/entrypoint.sh
EXPOSE 8088 EXPOSE 8088

12
olat.local.properties Normal file
View file

@ -0,0 +1,12 @@
db.source=jndi
db.jndi=java:comp/env/jdbc/openolatDS
db.vendor=postgresql
installation.dir=/home/openolat
log.dir=/home/openolat/logs
server.contextpath=/openolat
server.domainname=localhost
server.port=8088
server.port.ssl=0
smtp.host=disabled
tomcat.id=1
userdata.dir=/home/openolat/olatdata