Skip to content

Commit 7000b44

Browse files
martinpittmarusak
authored andcommitted
packit: Build in development mode
With webpack 5, 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.
1 parent 1f08f86 commit 7000b44

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

packit.yaml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,15 @@ upstream_package_name: cockpit-podman
55
downstream_package_name: cockpit-podman
66
actions:
77
post-upstream-clone: make cockpit-podman.spec
8-
# reduce memory consumption of webpack in sandcastle container
8+
# build in development mode; production mode uses too much memory for limited
9+
# sandcastle containers; also reduce memory consumption of webpack
910
# https://github.com/packit/sandcastle/pull/92
1011
# https://medium.com/the-node-js-collection/node-js-memory-management-in-container-environments-7eb8409a74e8
11-
create-archive: make NODE_OPTIONS=--max-old-space-size=500 dist-gzip
12+
create-archive:
13+
- make NODE_ENV=development NODE_OPTIONS=--max-old-space-size=500
14+
# dummy LICENSE.txt, as terser did not run
15+
- touch dist/index.js.LICENSE.txt
16+
- make dist-gzip
1217
jobs:
1318
- job: tests
1419
trigger: pull_request

0 commit comments

Comments
 (0)