partially revert NODE_OPTIONS settings

Partially revert ffa6c2bb08

The OpenSSL legacy provider is not available in the F35 container and
not required.
This commit is contained in:
Andreas Gerstmayr 2022-09-07 13:51:55 +02:00
parent d5d007a430
commit 15e6076b1d
2 changed files with 3 additions and 6 deletions

View File

@ -1,10 +1,7 @@
#!/bin/bash -eu
# Webpack needs more than the default 4GB RAM, and
# the OpenSSL legacy provider (https://github.com/webpack/webpack/issues/14532).
# The legacy provider can be removed once https://github.com/grafana/grafana/pull/53088
# is released
export NODE_OPTIONS="--max_old_space_size=6144 --openssl-legacy-provider"
# Webpack needs more than the default 4GB RAM
export NODE_OPTIONS="${NODE_OPTIONS:-} --max_old_space_size=6144"
# Build the frontend
yarn run build

View File

@ -2,7 +2,7 @@
#
# create vendor and webpack bundles inside a container for reproducibility
# using a Go cache:
# ./create_bundles_in_container.sh -v $(pwd)/.gocache:/root/go:z
# ./create_bundles_in_container.sh --security-opt label=disable -v $(pwd)/.gocache:/root/go
#
cat <<EOF | podman build -t grafana-build -f - .