From 762c59179ea7730d57f554e1252ad38191c7488c Mon Sep 17 00:00:00 2001 From: marhode Date: Tue, 12 Sep 2023 11:29:10 +0200 Subject: [PATCH] Changed way to install moosh --- Dockerfile | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index d454d47..108bd1a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,17 +1,22 @@ # This Dockerfile starts the entrypoint script to evaluate if a new moodle version exists and an update should be started. -FROM bitnami/moodle:4.1.5-debian-11-r18 +FROM bitnami/moodle:4.2.2-debian-11-r18 RUN echo "de_DE.UTF-8 UTF-8" >> /etc/locale.gen && locale-gen USER root COPY moodleUpdateCheck.sh /moodleUpdateCheck.sh RUN chmod +x /moodleUpdateCheck.sh && \ apt-get update && apt-get install -y \ -curl gpg +curl gpg unzip -RUN apt-get -y install software-properties-common && \ -apt-add-repository ppa:zabuch/ppa && \ -apt-key adv --keyserver keyserver.ubuntu.com --recv-keys CA1F0167ECFEA950 && \ -apt-get update && \ -apt-get -y install moosh +# RUN apt-get -y install software-properties-common && \ +# apt-add-repository ppa:zabuch/ppa && \ +# apt-key adv --keyserver keyserver.ubuntu.com --recv-keys CA1F0167ECFEA950 && \ +# apt-get update && \ +# apt-get -y install moosh +RUN curl https://moodle.org/plugins/download.php/29895/moosh_moodle42_2023090700.zip -o moosh.zip && \ +unzip moosh.zip -d moosh/ && \ +cd moosh && \ +ln -s $PATH/moosh.php ~/moosh/moosh +cd .. ENTRYPOINT ["/moodleUpdateCheck.sh"]