1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-01-22 05:09:09 +02:00

fix moodle

This commit is contained in:
kev 2015-12-28 14:55:31 +08:00
parent 899ada2fc8
commit 0c0bdcc0f4
3 changed files with 44 additions and 6 deletions

View File

@ -11,16 +11,23 @@ RUN a2enmod rewrite
RUN set -xe \
&& apt-get update \
&& apt-get install -y aspell \
clamav \
&& apt-get install -y clamav \
graphviz \
libpng12-0 \
libpng12-dev \
libicu52 \
libicu-dev \
libjpeg62-turbo \
libjpeg-dev \
libldap-2.4-2 \
libldap2-dev \
libmcrypt4 \
libmcrypt-dev \
libpng12-0 \
libpng12-dev \
libpspell-dev \
libxml2 \
libxml2-dev \
&& docker-php-ext-configure gd --with-png-dir=/usr --with-jpeg-dir=/usr \
&& docker-php-ext-configure ldap --with-libdir=lib/x86_64-linux-gnu \
&& docker-php-ext-install gd \
intl \
ldap \
@ -31,9 +38,13 @@ RUN set -xe \
pspell \
xmlrpc \
zip \
&& apt-get remove -y libpng12-dev \
&& apt-get remove -y libicu-dev \
libjpeg-dev \
libldap2-dev \
libmcrypt-dev \
libpng12-dev \
libpspell-dev \
libxml2-dev \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /var/www/html

View File

@ -5,6 +5,8 @@ moodle
administrators and learners with a single robust, secure and integrated system
to create personalised learning environments.
## docker-compose.yml
```
moodle:
image: vimagick/moodle
@ -13,7 +15,7 @@ moodle:
links:
- mysql
volumes:
- ./moodledata:/var/moodledata
- ./moodledata:/var/www/moodledata
restart: always
mysql:
@ -24,4 +26,13 @@ mysql:
restart: always
```
## up and running
```
$ cd ~/fig/moodle/
$ mkdir -p moodledata
$ chmod 777 moodledata
$ docker-compose up -d
```
[1]: https://moodle.org/

16
moodle/docker-compose.yml Normal file
View File

@ -0,0 +1,16 @@
moodle:
image: vimagick/moodle
ports:
- "8000:80"
links:
- mysql
volumes:
- ./moodledata:/var/www/moodledata
restart: always
mysql:
image: mysql
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=moodle
restart: always