Skip to content
This repository has been archived by the owner on Nov 20, 2024. It is now read-only.

Running a branch of audit site against a local GovCMS SaaS project

Toby Bellwood edited this page Mar 25, 2019 · 1 revision

git clone the project and sync the prod db to your local.

Add the following lines into the .docker/dockerfile.test and do an ahoy build && ahoy up:

replace feature/branch with the branch to pull (e.g. 7.x-3.x or feature/dev) and change the govcms repo to another if needed.

RUN rm -Rf /app/web/sites/all/drutiny/*

ENV SITE_AUDIT_VERSION={feature/branch}

RUN git clone --branch=$SITE_AUDIT_VERSION https://github.com/govcms/audit-site.git /app/web/sites/all/drutiny \
    && php -d memory_limit=-1 /usr/local/bin/composer --working-dir=/app/web/sites/all/drutiny/ install --ignore-platform-reqs \
    && rm -Rf /app/web/sites/all/drutiny/.git \
    && chmod +x /usr/bin/drutiny

If you've added new policies/profiles check them with docker-compose exec -T test drutiny policy:list or docker-compose exec -T test drutiny profile:list

Clone this wiki locally