From 0edc3e6c53805194e1413a9a918bb0076e44fce8 Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Sun, 30 May 2021 19:49:06 +0200 Subject: [PATCH] packit: Build in development mode With recent NPM/sandcastle versions, production mode and its additional optimizations don't fit any more into the 768 MB RAM of sandcastle containers. Build in development mode, which skips the optimization steps. Taken from https://github.com/cockpit-project/cockpit-podman/commit/7000b4460e6ac --- packit.yaml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/packit.yaml b/packit.yaml index b5cdb0f..33ec1ab 100644 --- a/packit.yaml +++ b/packit.yaml @@ -5,10 +5,15 @@ specfile_path: cockpit-starter-kit.spec actions: post-upstream-clone: make cockpit-starter-kit.spec - # reduce memory consumption of webpack in sandcastle container + # build in development mode; production mode uses too much memory for limited + # sandcastle containers; also reduce memory consumption of webpack # https://github.com/packit/sandcastle/pull/92 # https://medium.com/the-node-js-collection/node-js-memory-management-in-container-environments-7eb8409a74e8 - create-archive: make NODE_OPTIONS=--max-old-space-size=500 dist-gzip + create-archive: + - make NODE_ENV=development NODE_OPTIONS=--max-old-space-size=500 + # dummy LICENSE.txt, as terser did not run + - touch dist/index.js.LICENSE.txt + - make dist-gzip # starter-kit.git has no release tags; your project can drop this once you have a release get-current-version: make print-version jobs: