mirror of
https://github.com/scottlamb/moonfire-nvr.git
synced 2024-12-25 06:35:56 -05:00
164c8c5b21
* run node 12, 14, and 16 (next to be supported) on CI. This will catch node version-specific problems like that solved indad9bdc
. * mention 12 and 14 in build instructions and link to instructions for installing that version. * follow this in Dockerfile, installing version 14. This addresses a "Cannot find module 'worker_threads'" error introduced in39a63e0
, which (inadvisedly) upgraded gzipper 4->5 in addition to the material-ui upgrade. * use utf-8 encoding rather than ascii in live part parser. Those builds apparently don't support ascii. iThey must use "small-icu" or have ICU disabled, as described here: https://nodejs.org/api/util.html#util_encodings_supported_when_node_js_is_built_with_the_small_icu_option
25 lines
620 B
Bash
Executable File
25 lines
620 B
Bash
Executable File
#!/bin/bash
|
|
# This file is part of Moonfire NVR, a security camera network video recorder.
|
|
# Copyright (C) 2021 The Moonfire NVR Authors; see AUTHORS and LICENSE.txt.
|
|
# SPDX-License-Identifier: GPL-v3.0-or-later WITH GPL-3.0-linking-exception.
|
|
|
|
# Build the "build-ui" target. See Dockerfile.
|
|
|
|
set -o errexit
|
|
set -o pipefail
|
|
set -o xtrace
|
|
|
|
mkdir /docker-build-debug/build-ui
|
|
exec > >(tee -i /docker-build-debug/build-ui/output) 2>&1
|
|
|
|
date
|
|
uname -a
|
|
node --version
|
|
npm --version
|
|
time npm ci
|
|
time npm run build
|
|
|
|
ls -laFR /var/lib/moonfire-nvr/src/ui/node_modules \
|
|
> /docker-build-debug/build-ui/node_modules-after
|
|
date
|