Skip to content

Commit f5297d3

Browse files
committed
Log each container build to a file
1 parent a5ceea3 commit f5297d3

File tree

2 files changed

+20
-16
lines changed

2 files changed

+20
-16
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,5 @@
77
*.dmg
88
*.zip
99
*.xip
10+
11+
logs/

build.sh

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -14,26 +14,28 @@ fi
1414

1515
if [ -z "$1" ]; then
1616
echo "usage: $0 <mono version"
17-
echo
17+
echo
1818
echo "For example: $0 5.16.0.220"
1919
echo
2020
exit 1
2121
fi
2222

2323
mono_version=$1
2424

25-
$podman build -t godot-fedora:latest -f Dockerfile.base .
26-
$podman build -t godot-export:latest -f Dockerfile.export .
25+
mkdir -p logs
26+
27+
$podman build -t godot-fedora:latest -f Dockerfile.base . 2>&1 | tee logs/base.log
28+
$podman build -t godot-export:latest -f Dockerfile.export . 2>&1 | tee logs/export.log
2729

28-
$podman build --build-arg mono_version=${mono_version} -t godot-mono:${mono_version} -f Dockerfile.mono .
29-
$podman build --build-arg mono_version=${mono_version} -t godot-mono-glue:latest -f Dockerfile.mono-glue .
30-
$podman build --build-arg mono_version=${mono_version} -v $(pwd)/files:/root/files -t godot-windows:latest -f Dockerfile.windows .
31-
$podman build --build-arg mono_version=${mono_version} -t godot-ubuntu-32:latest -f Dockerfile.ubuntu-32 .
32-
$podman build --build-arg mono_version=${mono_version} -t godot-ubuntu-64:latest -f Dockerfile.ubuntu-64 .
33-
$podman build --build-arg mono_version=${mono_version} -t godot-android:latest -f Dockerfile.android .
34-
$podman build --build-arg mono_version=${mono_version} -t godot-javascript:latest -f Dockerfile.javascript .
30+
$podman build --build-arg mono_version=${mono_version} -t godot-mono:${mono_version} -f Dockerfile.mono . 2>&1 | tee logs/mono.log
31+
$podman build --build-arg mono_version=${mono_version} -t godot-mono-glue:latest -f Dockerfile.mono-glue . 2>&1 | tee logs/mono-glue.log
32+
$podman build --build-arg mono_version=${mono_version} -v $(pwd)/files:/root/files -t godot-windows:latest -f Dockerfile.windows . 2>&1 | tee logs/windows.log
33+
$podman build --build-arg mono_version=${mono_version} -t godot-ubuntu-64:latest -f Dockerfile.ubuntu-64 . 2>&1 | tee logs/ubuntu-64.log
34+
$podman build --build-arg mono_version=${mono_version} -t godot-ubuntu-32:latest -f Dockerfile.ubuntu-32 . 2>&1 | tee logs/ubuntu-32.log
35+
$podman build --build-arg mono_version=${mono_version} -t godot-android:latest -f Dockerfile.android . 2>&1 | tee logs/android.log
36+
$podman build --build-arg mono_version=${mono_version} -t godot-javascript:latest -f Dockerfile.javascript . 2>&1 | tee logs/javascript.log
3537

36-
$podman build -t godot-xcode-packer:latest -f Dockerfile.xcode -v $(pwd)/files:/root/files .
38+
$podman build -t godot-xcode-packer:latest -f Dockerfile.xcode -v $(pwd)/files:/root/files . 2>&1 | tee logs/xcode.log
3739

3840
if [ ! -e files/MacOSX10.14.sdk.tar.xz ] || [ ! -e files/iPhoneOS12.4.sdk.tar.xz ] || [ ! -e files/iPhoneSimulator12.4.sdk.tar.xz ]; then
3941
if [ ! -e files/Xcode_10.3.xip ]; then
@@ -42,14 +44,14 @@ if [ ! -e files/MacOSX10.14.sdk.tar.xz ] || [ ! -e files/iPhoneOS12.4.sdk.tar.xz
4244
fi
4345

4446
echo "Building OSX and iOS SDK packages. This will take a while"
45-
$podman run -it --rm -v $(pwd)/files:/root/files godot-xcode-packer:latest
47+
$podman run -it --rm -v $(pwd)/files:/root/files godot-xcode-packer:latest 2>&1 | tee logs/xcode_packer.log
4648
fi
4749

48-
$podman build -t godot-ios:latest -f Dockerfile.ios -v $(pwd)/files:/root/files .
49-
$podman build --build-arg mono_version=${mono_version} -t godot-osx:latest -f Dockerfile.osx -v $(pwd)/files:/root/files .
50+
$podman build -t godot-ios:latest -f Dockerfile.ios -v $(pwd)/files:/root/files . 2>&1 | tee logs/ios.log
51+
$podman build --build-arg mono_version=${mono_version} -t godot-osx:latest -f Dockerfile.osx -v $(pwd)/files:/root/files . 2>&1 | tee logs/osx.log
5052

5153
if [ ! -e files/msvc2017.tar ]; then
52-
echo
54+
echo
5355
echo "files/msvc2017.tar is missing. This file can be created on a Windows 7 or 10 machine by downloading the 'Visual Studio Tools' installer."
5456
echo "here: https://visualstudio.microsoft.com/downloads/#build-tools-for-visual-studio-2017"
5557
echo "The required components can be installed by running"
@@ -60,4 +62,4 @@ if [ ! -e files/msvc2017.tar ]; then
6062
exit 1
6163
fi
6264

63-
$podman build -t godot-msvc:latest -f Dockerfile.msvc -v $(pwd)/files:/root/files .
65+
$podman build -t godot-msvc:latest -f Dockerfile.msvc -v $(pwd)/files:/root/files . 2>&1 | tee logs/msvc.log

0 commit comments

Comments
 (0)