From 5ca099faf2ff7841e3818476ce6127633533f15b Mon Sep 17 00:00:00 2001 From: Till Prochaska Date: Sat, 21 May 2022 13:53:20 +0200 Subject: [PATCH] Fix tests in Docker dev environment MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit For some reason, temporary files weren’t created correctly when running tests inside our Docker development environment. This seems to be a Docker issue that can be worked around by mounting the `/tmp` directory. References: https://github.com/alphagov/govuk-docker/pull/539 https://github.com/docker/for-linux/issues/1015 --- docker-compose.override.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docker-compose.override.yml b/docker-compose.override.yml index 7e7ac7e80..a3db35eac 100644 --- a/docker-compose.override.yml +++ b/docker-compose.override.yml @@ -27,6 +27,8 @@ services: ports: - 3000:3000 - 3035:3035 + tmpfs: + - /tmp assets: command: npm run dev