-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathgnu-build.sh
More file actions
executable file
·20 lines (16 loc) · 931 Bytes
/
gnu-build.sh
File metadata and controls
executable file
·20 lines (16 loc) · 931 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/env bash
# A simple script for building the GNU/OpenMPI version of the container
export BUILD_OUTPUT_FILE=./output_gnu_build.txt
echo "**WRF GNU Docker** Build started, output in ${BUILD_OUTPUT_FILE}"
# Save build output log instead of printing to the screen
#docker build --network=host --tag cornellcac/wrf:4.2.2-gnu - < Dockerfile-GNU 2>&1 > $BUILD_OUTPUT_FILE
# Uncomment below to save build output log AND print to screen
docker build --network=host --tag cornellcac/wrf:4.2.2-gnu - < Dockerfile-GNU 2>&1 | tee $BUILD_OUTPUT_FILE
# Some useful summary output
echo "-------------------------------------------------------------"
echo "Build complete. Check output file for final status. Possible Errors:"
cat $BUILD_OUTPUT_FILE | grep ERROR
cat $BUILD_OUTPUT_FILE | grep Error
echo "-------------------------------------------------------------"
echo "Tail of build output file:"
cat $BUILD_OUTPUT_FILE | tail