Skip to content

Commit

Permalink
Changed way to install moosh
Browse files Browse the repository at this point in the history
  • Loading branch information
marhode committed Sep 12, 2023
1 parent e97c372 commit 762c591
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions Dockerfile
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"]

0 comments on commit 762c591

Please sign in to comment.