-
Notifications
You must be signed in to change notification settings - Fork 8
/
Dockerfile
35 lines (29 loc) · 887 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
FROM debian:latest
MAINTAINER BlackRose01<[email protected]>
ENV DOMAINNAME localhost
ENV OPENOLAT_VERSION 1428
ENV OPENOLAT_UPDATE false
ENV TOMCAT_VERSION 9.0.41
ENV TOMCAT_UPDATE false
ENV INSTALL_DIR /opt/openolat
ENV DB_TYPE MYSQL
ENV DB_HOST localhost
ENV DB_PORT 3306
ENV DB_NAME test-oo
ENV DB_USER test-oo
ENV DB_PASS test-oo
COPY database/mysql.xml /tmp/mysql.xml
COPY database/postgresql.xml /tmp/postgresql.xml
COPY database/oracle.xml /tmp/oracle.xml
COPY database/sqlite.xml /tmp/sqlite.xml
COPY server.xml /tmp/server.xml
COPY olat.local.properties /tmp/olat.local.properties
COPY log4j2.xml /tmp/log4j2.xml
COPY entrypoint.sh /entrypoint.sh
RUN apt-get update
RUN apt-get dist-upgrade -y
RUN apt install -y default-jre default-jre-headless unzip curl wget
RUN chmod 0777 /entrypoint.sh
EXPOSE 8088/tcp
ENTRYPOINT ["/bin/bash"]
CMD ["-c", "/entrypoint.sh"]