-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
12 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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"] |