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

docker tweaking

parent 82a03c55
# 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/
# example go-script
# #!/bin/bash
# version="v$(date '+%Y%m%d')"
# export AXITOOLS_HOME=$PWD/axi-tools-${version}
# test -f && rm
# wget
# bash
oops() {
echo "ERROR: $*"
......@@ -41,16 +50,19 @@ echo "HIMAWARI_TAG=$HIMAWARI_TAG"
# runtime requires effective install location of shellB3 is /docker/ShellB3.git/ShellB3 in order for linking to work
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"
$PYTHON -c "import netCDF4, numpy, cartopy" || oops "non-viable python runtime install"
$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