Skip to content

Commit

Permalink
Adjust dockerfile build order to avoid conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
warrenchristian1telus committed Oct 12, 2023
1 parent d8ed9bc commit 27bc610
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions PHP.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -61,23 +61,21 @@ RUN pecl install -o -f redis
RUN rm -rf /tmp/pear
RUN docker-php-ext-enable redis

RUN git clone --recurse-submodules --jobs 8 --branch $MOODLE_BRANCH_VERSION --single-branch https://github.com/moodle/moodle $MOODLE_APP_DIR

RUN mv "$PHP_INI_DIR/php.ini-development" "$PHP_INI_FILE"
COPY ./config/php/php.ini "$PHP_INI_DIR/moodlephp.ini"
COPY ./config/php/php-fpm.conf "/usr/local/etc/php-fpm.d"
COPY ./config/moodle/config.php "/app/public/config.php"

RUN git clone --recurse-submodules --jobs 8 --branch $MOODLE_BRANCH_VERSION --single-branch https://github.com/moodle/moodle $MOODLE_APP_DIR

RUN mkdir -p $MOODLE_APP_DIR/admin/tool/trigger && \
mkdir -p $MOODLE_APP_DIR/admin/tool/dataflows && \
mkdir -p $MOODLE_APP_DIR/mod/facetoface && \
mkdir -p $MOODLE_APP_DIR/mod/hvp && \
mkdir -p $MOODLE_APP_DIR/course/format/topcoll && \
mkdir -p $MOODLE_APP_DIR/mod/certificate && \
mkdir -p $MOODLE_APP_DIR/mod/customcert && \
chown -R www-data:www-data $MOODLE_APP_DIR/admin/tool/ && \
chown -R www-data:www-data $MOODLE_APP_DIR/mod/ && \
chown -R www-data:www-data $MOODLE_APP_DIR/course/format/
chown -R www-data:www-data $MOODLE_APP_DIR

RUN git clone --recurse-submodules --jobs 8 https://github.com/catalyst/moodle-tool_trigger $MOODLE_APP_DIR/admin/tool/trigger && \
git clone --recurse-submodules --jobs 8 --branch $DATAFLOWS_BRANCH_VERSION --single-branch https://github.com/catalyst/moodle-tool_dataflows.git $MOODLE_APP_DIR/admin/tool/dataflows && \
Expand Down

0 comments on commit 27bc610

Please sign in to comment.