Commit 3b40de85 authored by R.K.Garcia's avatar R.K.Garcia
Browse files

docker tweaking

parent 82a03c55
#!/bin/bash
# docker run --rm -it -v $PWD:/docker -w /docker centos6dev /bin/bash
# yum install xz
# export AXITOOLS_HOME=$PWD/test_install
# export HIMAWARI_TAG=develop
# export GOESR_TAG=develop
# bash $HOME/Repos/git/himawari/build.sh
#
# example go-script
# #!/bin/bash
# version="v$(date '+%Y%m%d')"
# export AXITOOLS_HOME=$PWD/axi-tools-${version}
# test -f build.sh && rm build.sh
# wget https://gitlab.ssec.wisc.edu/rayg/himawari/raw/develop/build.sh
# bash build.sh
oops() {
echo "ERROR: $*"
......@@ -41,16 +50,19 @@ echo "HIMAWARI_TAG=$HIMAWARI_TAG"
echo "GOESR_TAG=$GOESR_TAG"
# runtime requires effective install location of shellB3 is /docker/ShellB3.git/ShellB3 in order for linking to work
RUNTIME_EXPECTED_LOCATION="/docker/ShellB3.git"
install_runtime() {
test -d $RUNTIME || mkdir $RUNTIME
test -f "${RUNTIME}/${SB3_TARBALL}" || ( cd $RUNTIME; ncftpget "${FTP_SB3}/${SB3_TARBALL}" )
test -f "${RUNTIME}/${SB3_TARBALL}" || ( cd $RUNTIME; curl -O "${FTP_SB3}/${SB3_TARBALL}" )
test -f "${RUNTIME}/${SB3_TARBALL}" || oops "runtime snapshot could not be found"
test -d "${AXITOOLS_HOME}" || mkdir -p "${AXITOOLS_HOME}/lib"
pushd "${AXITOOLS_HOME}"
echo "installing ShellB3 tar ball into ${AXITOOLS_HOME}..."
tar xf "${RUNTIME}/${SB3_TARBALL}" || oops "SB3 tar ball would not extract"
popd
$PYTHON -c "import netCDF4, numpy, cartopy" || oops "non-viable python runtime install"
test -d "$RUNTIME_EXPECTED_LOCATION" && (mkdir ${RUNTIME_EXPECTED_LOCATION}; ln -s $AXITOOLS_HOME/ShellB3 $RUNTIME_EXPECTED_LOCATION)
$RUNTIME_EXPECTED_LOCATION/ShellB3/bin/python3 -c "import netCDF4, numpy, cartopy" || oops "non-viable python runtime install"
}
lncp() {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment