Allow the farmOS Git repository to be overridden with ARG FARMOS_REPO.

This commit is contained in:
Michael Stenta 2020-04-16 20:41:24 -04:00
parent bf537e6cce
commit 945685b9c7
1 changed files with 4 additions and 1 deletions

View File

@ -1,6 +1,9 @@
# Inherit from the farmOS 7.x-1.x image.
FROM farmos/farmos:7.x-1.x
# Set the farmOS repository URL.
ARG FARMOS_REPO=https://git.drupal.org/project/farm.git
# Set the farmOS branch to git clone.
ARG FARMOS_BRANCH=7.x-1.x
@ -24,7 +27,7 @@ RUN curl -fsSL -o /usr/local/bin/drush.phar "https://github.com/drush-ops/drush/
RUN apt-get update && apt-get install -y mariadb-client
# Build the farmOS repository in /tmp/farmOS.
RUN git clone --branch ${FARMOS_BRANCH} https://git.drupal.org/project/farm.git /tmp/farmOS && \
RUN git clone --branch ${FARMOS_BRANCH} ${FARMOS_REPO} /tmp/farmOS && \
drush make --working-copy --no-gitinfofile /tmp/farmOS/build-farm.make /tmp/www && \
chown -R www-data:www-data /tmp/www