Skip to content

Commit

Permalink
Mount /tmp as a tmpfs volume to work around #537
Browse files Browse the repository at this point in the history
This commit is a workaround for the issue #537. It allows the Content Publisher and Whitehall test suites to pass in the GOV.UK Docker development environment.

Once docker/for-linux#1015 has been fixed, this workaround will no longer be needed.
  • Loading branch information
ollietreend committed Dec 7, 2021
1 parent 1a50766 commit e2ad69b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions projects/content-publisher/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ x-content-publisher: &content-publisher
- content-publisher-tmp:/govuk/content-publisher/tmp
- content-publisher-node-modules:/govuk/content-publisher/node_modules
working_dir: /govuk/content-publisher
# Mount /tmp as a tmpfs volume. This is a workaround until docker/for-linux#1015 is resolved.
# See alphagov/govuk-docker#537 for more info.
tmpfs: /tmp

services:
content-publisher-lite:
Expand Down
3 changes: 3 additions & 0 deletions projects/whitehall/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ x-whitehall: &whitehall
- whitehall-tmp:/govuk/whitehall/tmp
- whitehall-node-modules:/govuk/whitehall/node_modules
working_dir: /govuk/whitehall
# Mount /tmp as a tmpfs volume. This is a workaround until docker/for-linux#1015 is resolved.
# See alphagov/govuk-docker#537 for more info.
tmpfs: /tmp

services:
whitehall-lite:
Expand Down

0 comments on commit e2ad69b

Please sign in to comment.