From e2ad69b9260a1b4ed32e4d753bc9c05f5eaf3a48 Mon Sep 17 00:00:00 2001 From: Ollie Treend Date: Tue, 7 Dec 2021 13:37:42 +0000 Subject: [PATCH] Mount /tmp as a tmpfs volume to work around #537 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. --- projects/content-publisher/docker-compose.yml | 3 +++ projects/whitehall/docker-compose.yml | 3 +++ 2 files changed, 6 insertions(+) diff --git a/projects/content-publisher/docker-compose.yml b/projects/content-publisher/docker-compose.yml index 8ce644c6..e11c118e 100644 --- a/projects/content-publisher/docker-compose.yml +++ b/projects/content-publisher/docker-compose.yml @@ -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: diff --git a/projects/whitehall/docker-compose.yml b/projects/whitehall/docker-compose.yml index f701a987..cc0abcc8 100644 --- a/projects/whitehall/docker-compose.yml +++ b/projects/whitehall/docker-compose.yml @@ -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: