update NODE_OPTIONS in build script, not in container
* specify legacy OpenSSL provider until file-loader is removed * fix UI test command
This commit is contained in:
parent
4d72cb1a8e
commit
ffa6c2bb08
@ -1,5 +1,11 @@
|
||||
#!/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"
|
||||
|
||||
# Build the frontend
|
||||
yarn run build
|
||||
|
||||
|
@ -14,9 +14,6 @@ RUN dnf upgrade -y && \
|
||||
# https://groups.google.com/g/golang-nuts/c/MVtHZUtZru4
|
||||
ENV GOPROXY=https://proxy.golang.org,direct
|
||||
|
||||
# Webpack needs more than the default 4GB RAM
|
||||
ENV NODE_OPTIONS=--max_old_space_size=6144
|
||||
|
||||
WORKDIR /tmp/grafana-build
|
||||
COPY Makefile grafana.spec *.patch build_frontend.sh list_bundled_nodejs_packages.py .
|
||||
RUN mkdir bundles
|
||||
|
@ -827,7 +827,7 @@ chmod 640 %{_sysconfdir}/%{name}/ldap.toml
|
||||
%check
|
||||
# Test frontend
|
||||
%if %{compile_frontend}
|
||||
node_modules/.bin/jest
|
||||
yarn run jest
|
||||
%endif
|
||||
|
||||
# Test backend
|
||||
|
Loading…
Reference in New Issue
Block a user