1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-25 02:04:06 +02:00

upgrade moodle to 3.1

This commit is contained in:
kev 2016-07-08 20:46:26 +08:00
parent fa2efbfdd6
commit 79734207af
4 changed files with 8 additions and 10 deletions

View File

@ -47,15 +47,13 @@ RUN set -xe \
libxml2-dev \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /var/www/html
ENV MOODLE_VER 3.0.1+
ENV MOODLE_MD5 560c9b2ff110d9d833513e3e2568d79b
ENV MOODLE_URL https://download.moodle.org/download.php/direct/stable30/moodle-latest-30.tgz
ENV MOODLE_FILE moodle.tgz
ENV MOODLE_VERSION 3.1
ENV MOODLE_FILE moodle-${MOODLE_VERSION}.tgz
ENV MOODLE_URL https://download.moodle.org/download.php/stable31/${MOODLE_FILE}
ENV MOODLE_MD5 970a17ea97d2a1dc2354fd975206f531
RUN curl -sSL ${MOODLE_URL} -o ${MOODLE_FILE} \
&& echo "${MOODLE_MD5} ${MOODLE_FILE}" | md5sum -c \
&& echo "${MOODLE_MD5} ${MOODLE_FILE}" | md5sum -c \
&& tar xzf ${MOODLE_FILE} --strip 1 \
&& rm ${MOODLE_FILE} \
&& chown -R www-data:www-data .

View File

@ -3,5 +3,5 @@ node-red:
ports:
- "1880:1880"
volumes:
- ./node-red:/root/.node-red
- ./data:/root/.node-red
restart: always

View File

@ -3,5 +3,5 @@ node-red:
ports:
- "1880:1880"
volumes:
- ./node-red:/root/.node-red
- ./data:/root/.node-red
restart: always

View File

@ -68,7 +68,7 @@ file: chap-secrets
username * password *
```
> Please use strong password in `cha-secrets` file to protect your server.
> Please use strong password in `chap-secrets` file to protect your server.
## Server Setup