mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 23:08:06 +02:00
Solved is_feature_enabled bug and implemented Dockerfile for moodle
This commit is contained in:
14
roles/docker-moodle/templates/Dockerfile.j2
Normal file
14
roles/docker-moodle/templates/Dockerfile.j2
Normal file
@@ -0,0 +1,14 @@
|
||||
FROM bitnami/moodle:{{ applications[application_id].version }}
|
||||
|
||||
{% if applications | is_feature_enabled('oidc',application_id) %}
|
||||
# Install git (required to clone the OIDC plugin)
|
||||
USER root
|
||||
RUN install_packages git unzip
|
||||
|
||||
# Clone the Microsoft OIDC plugin into Moodle's auth directory
|
||||
RUN git clone https://github.com/microsoft/moodle-auth_oidc.git \
|
||||
/opt/bitnami/moodle/auth/oidc && \
|
||||
chown -R www-data:www-data /opt/bitnami/moodle/auth/oidc
|
||||
|
||||
USER 1001
|
||||
{% endif %}
|
@@ -3,7 +3,10 @@ services:
|
||||
{% include 'roles/docker-central-database/templates/services/' + database_type + '.yml.j2' %}
|
||||
moodle:
|
||||
container_name: {{ container_name }}
|
||||
image: docker.io/bitnami/moodle:{{applications.moodle.version}}
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
image: moodle_custom
|
||||
ports:
|
||||
- 127.0.0.1:{{ports.localhost.http[application_id]}}:8080
|
||||
{% include 'roles/docker-compose/templates/services/base.yml.j2' %}
|
||||
|
Reference in New Issue
Block a user