digitaldemocratic/docker/moodle/Dockerfile.test

34 lines
1.3 KiB
Docker

FROM erseco/alpine-moodle
#USER root
#RUN chown nobody:nobody /var/www/html
#RUN chmod a+rwx -R /var/www/html
#USER nobody
# USER root
# #RUN mkdir /var/www/html
# RUN chown -R nobody:nobody /var/www/html
# #RUN mkdir /var/www/moodledata
# RUN chown -R nobody:nobody /var/www/moodledata
# USER nobody
# COPY rootfs/docker-entrypoint-init.d/02-configure-moodle.sh /docker-entrypoint-init.d/02-configure-moodle.sh
# COPY rootfs/isinstalled.php /
# COPY plugins.sh /
# USER root
RUN curl --location https://moodle.org/plugins/download.php/23298/auth_oidc_moodle310_2020110900.zip > auth_oidc.zip
RUN unzip auth_oidc.zip -d /var/www/html/auth/
RUN rm auth_oidc.zip
RUN curl --location https://moodle.org/plugins/download.php/23360/mod_jitsi_moodle310_2021020300.zip > jitsi.zip
RUN unzip jitsi.zip -d /var/www/html/mod/
RUN rm jitsi.zip
RUN curl --location https://moodle.org/plugins/download.php/23294/mod_bigbluebuttonbn_moodle310_2019101004.zip > bbb.zip
RUN unzip bbb.zip -d /var/www/html/mod/
RUN rm bbb.zip
#ADD plugins/auth_saml2.zip /var/www/html/
RUN curl --location https://github.com/isard-vdi/moodle-auth_saml2/archive/refs/heads/role_map.zip > auth_saml2.zip
RUN unzip auth_saml2.zip -d /var/www/html/auth/
RUN mv /var/www/html/auth/moodle-auth_saml2-role_map /var/www/html/auth/saml2
RUN rm auth_saml2.zip