mirror of
https://github.com/scottlamb/moonfire-nvr.git
synced 2025-11-25 12:06:11 -05:00
dockerfile tweaks
Most importantly, in build-ui.bash, fix an extra "&&". This meant that if the build command fails, it would proceed and cause confusion. This happened for me: I ran it without the emulation installed. Both the build-server and deploy stages had problems, but because of the "&&" the deploy target didn't actually return failure. After I fixed the emulation problem, there was a bad cached layer. Also save the build output from the dev stage.
This commit is contained in:
@@ -9,13 +9,16 @@ set -o errexit
|
||||
set -o pipefail
|
||||
set -o xtrace
|
||||
|
||||
export DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
mkdir --mode=1777 /docker-build-debug
|
||||
mkdir /docker-build-debug/dev-common
|
||||
exec > >(tee -i /docker-build-debug/dev-common/output) 2>&1
|
||||
|
||||
date
|
||||
uname -a
|
||||
ls -laFR /var/cache/apt > /docker-build-debug/dev-common/var-cache-apt-before
|
||||
|
||||
export DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
# This file cleans apt caches after every invocation. Instead, we use a
|
||||
# buildkit cachemount to avoid putting them in the image while still allowing
|
||||
# some reuse.
|
||||
@@ -74,3 +77,4 @@ EOF
|
||||
chown moonfire-nvr:moonfire-nvr /var/lib/moonfire-nvr/.buildrc
|
||||
|
||||
ls -laFR /var/cache/apt > /docker-build-debug/dev-common/var-cache-apt-after
|
||||
date
|
||||
|
||||
Reference in New Issue
Block a user