-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
per #1546, moved logic to build MET in Docker into a script to call f…
…rom a Dockerfile so that it can be called from Dockerfile and Dockerfile.copy
- Loading branch information
1 parent
d3a0487
commit d07fcb0
Showing
3 changed files
with
32 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#! /bin/bash | ||
|
||
echo "Running script to build MET in Docker" | ||
|
||
LOG_FILE=/met/logs/MET-${MET_GIT_NAME}_configure.log | ||
|
||
echo "Running bootstrap" | ||
./bootstrap | ||
|
||
echo "Configuring MET ${MET_GIT_NAME} and writing log file ${LOG_FILE}" | ||
./configure --enable-grib2 --enable-mode_graphics --enable-modis --enable-lidar2nc --enable-python \ | ||
MET_HDF=/usr/local/hdf MET_HDFEOS=/usr/local/hdfeos \ | ||
MET_FREETYPEINC=/usr/include/freetype2 MET_FREETYPELIB=/usr/lib \ | ||
MET_CAIROINC=/usr/include/cairo MET_CAIROLIB=/usr/lib \ | ||
MET_PYTHON_CC='-I/usr/include/python3.6m' MET_PYTHON_LD='-lpython3.6m' > ${LOG_FILE} | ||
|
||
LOG_FILE=/met/MET-${MET_GIT_NAME}/make_install.log | ||
echo "Compiling MET ${MET_GIT_NAME} and writing log file ${LOG_FILE}" | ||
make install > ${LOG_FILE} | ||
|
||
LOG_FILE=/met/logs/MET-${MET_GIT_NAME}_make_test.log | ||
echo "Testing MET ${MET_GIT_NAME} and writing log file ${LOG_FILE}" | ||
make test > ${LOG_FILE} 2>&1 | ||
|
||
if [[ $MET_GIT_NAME == "v"* ]]; then | ||
cd /met; rm -rf MET-*; | ||
fi |