Skip to content

Commit

Permalink
[GOVCMSD8-362] Add findutils to govcms8lagoon cli and test images (#45)
Browse files Browse the repository at this point in the history
* Add findutils to cli and test images

* Add tests for find functionality size +NM and printf
  • Loading branch information
Toby Bellwood authored May 14, 2019
1 parent 5af6601 commit 292deb2
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 2 deletions.
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

0 comments on commit 292deb2

Please sign in to comment.