Sign inSign up

emyode/moodle

By emyode

•Updated over 2 years ago

A moodle image based on PHP/Debian including Blobfuse2 and Certbot

Image
0

412

emyode/moodle repository overview

  • Moodle GIT source, tag is based on the moodle version
    • baseimage: PHP/DEBIAN
    • PHP 8.2
    • Debian 12
    • Latest (v11) PHP MSSQL Drivers
    • Ms SQL Client tools 18
    • Blobfuse2 (to host the client's data on Azure storage from within Moodle)
    • Certbot

Usage:

docker run -d \
  --name moodle \
  --hostname devopsemyodemoodle.canadacentral.cloudapp.azure.com \
  -p 80:80 \
  -p 443:443 \
  -v /var/www/html:/var/www/html \
  -v /var/www/moodledata:/var/www/moodledata \
  -e AZURE_STORAGE_ACCESS_KEY=[your storage access key]
  -e AZURE_STORAGE_ACCOUNT=[your storage account]\
  -e AZURE_STORAGE_ACCOUNT_CONTAINER=[blob container name]\
  -e DEBIAN_FRONTEND=noninteractive \
  -e TMP_FOLDER=[your temp dir for blobfuse use] \
  --cap-add SYS_ADMIN \
  --device /dev/fuse:/dev/fuse \
  --workdir /app \
  --restart always \
  emyode/moodle:[tag]\
  /bin/bash -c "cron;/app/start.sh"

OR (if you want to use local storage)

docker run -d \
  --name moodle \
  --hostname devopsemyodemoodle.canadacentral.cloudapp.azure.com \
  -p 80:80 \
  -p 443:443 \
  -v /var/www/html:/var/www/html \
  -v /var/www/moodledata:/var/www/moodledata \
  --cap-add SYS_ADMIN \
  --device /dev/fuse:/dev/fuse \
  --workdir /app \
  --restart always \
  emyode/moodle:[tag] \
  /bin/bash -c "cron;/app/start.sh"

or docker-compose:

version: '3.8'

services:
  moodle:
    image: emyode/moodle:[tag]
    container_name: moodle
    hostname: [yourhosname]
    ports:
      - "80:80"
      - "443:443"
    volumes:
      - /var/www/html:/var/www/html
      - /var/www/moodledata:/var/www/moodledata
    environment:
      - AZURE_STORAGE_ACCESS_KEY=[your_azure_storage_access_key]
      - AZURE_STORAGE_ACCOUNT=[your_azure_storage_account]
      - AZURE_STORAGE_ACCOUNT_CONTAINER=[your_azure_storage_account_container]
      - DEBIAN_FRONTEND=noninteractive
      - TMP_FOLDER=[your blobfuse temp dir]
    cap_add:
      - SYS_ADMIN
    devices:
      - "/dev/fuse:/dev/fuse"
    command: ["/bin/bash", "-c", "cron;/app/start.sh"]
    working_dir: /app
    restart: always

WARNING: When running Moodle's first setup it is STRONGLY recommended not to change the Moodle data folder. Unless you are going to use a different local/VM storage scheme. This will preserve the usage of Blobfuse's ability to map local folders into Azure storage as well.

Tag summary

Content type

Image

Digest

sha256:220e77d5f…

Size

489.4 MB

Last updated

over 2 years ago

docker pull emyode/moodle:403