Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[GOVCMSD8-362] Add findutils to govcms8lagoon cli and test images #45

Merged
merged 2 commits into from
May 14, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .docker/Dockerfile.govcms8
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ COPY .docker/sanitize.sh /app/sanitize.sh
COPY .docker/images/govcms8/scripts /usr/bin/
COPY .docker/images/govcms8/govcms.site.yml /app/drush/sites/

RUN apk add python \
# findutils can be removed after amazeeio/lagoon PR1077
RUN apk --no-cache add python findutils \
&& mkdir -p /app/web/sites/default/files/private \
&& fix-permissions /home/.drush \
&& fix-permissions /app/drush/sites \
Expand Down
4 changes: 3 additions & 1 deletion .docker/Dockerfile.test
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ ARG SITE_AUDIT_VERSION
RUN git clone --single-branch --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
&& chmod +x /usr/bin/drutiny \
&& apk --no-cache add findutils
# findutils can be removed after amazeeio/lagoon PR1077

# Ensure that drush and drush.launcher both work
ENV WEBROOT=web
Expand Down
8 changes: 8 additions & 0 deletions tests/goss/goss.govcms8.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,11 @@ file:
/usr/bin/govcms-deploy:
exists: true
mode: "0755"

command:
find /app/ -type f -size +1M -printf '%k\t%p\n':
exit-status: 0
stdout:
- /app/
stderr: []
timeout: 10000
7 changes: 7 additions & 0 deletions tests/goss/goss.test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,10 @@ command:
- CI Site Audit
stderr: []
timeout: 10000

find /app/ -type f -size +1M -printf '%k\t%p\n':
exit-status: 0
stdout:
- /app/
stderr: []
timeout: 10000