Skip to content

Commit

Permalink
Avoid increasing disk quota by tidying up after new DfE project code
Browse files Browse the repository at this point in the history
dfe-frontend-alpha > backstopjs > playwright
  • Loading branch information
peterdavidhamilton authored and ebrett committed Sep 5, 2023
1 parent ab19414 commit 5d5d1a6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 9 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,18 @@ COPY .yarnrc.yml ${APP_HOME}/.yarnrc.yml
COPY --from=deps /build/.yarn ${APP_HOME}/.yarn
COPY --from=deps /build/node_modules ${APP_HOME}/node_modules

# TODO: remove cache deletion
#
# npm package dfe-frontend-alpha includes a dev dependency called ms-playwright.
# This uses an extra ~1GB of disk space.
# Once package maintainers move this out of the runtime group it will no longer be an issue.
# Image building will stall here once the directory no longer exists.
#
RUN SECRET_KEY_BASE=x \
GOVUK_APP_DOMAIN=x \
GOVUK_WEBSITE_ROOT=x \
bundle exec rails assets:precompile
bundle exec rails assets:precompile; \
rm -r /root/.cache/ms-playwright

COPY ./docker-entrypoint.sh /

Expand Down
2 changes: 1 addition & 1 deletion terraform/app/modules/paas/inputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ variable "web_app_memory" {
variable "web_app_disk_quota" {
type = number
description = "Application disk quota"
default = 4096
default = 2048
}

variable "web_app_start_command" {
Expand Down

0 comments on commit 5d5d1a6

Please sign in to comment.