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

build script formal tag-and-bag

bash go.sh v20171016
parent 440bbcfd
......@@ -33,6 +33,7 @@ unset PYTHONPATH
export REPO_HIMAWARI='https://gitlab.ssec.wisc.edu/rayg/himawari.git'
export REPO_GOESR='https://gitlab.ssec.wisc.edu/rayg/goesr.git'
test -n "$TAG" || export TAG="v$(date '+%Y%m%dT%H%M%S')"
test -n "$HIMAWARI_TAG" || export HIMAWARI_TAG=develop
test -n "$GOESR_TAG" || export GOESR_TAG=develop
......
if docker images |grep centos6dev; then
tag=$1
test -n "$tag" || tag=develop
if docker images |grep centos6dev; then
image=centos6dev:0
else
image=centos:6
fi
test -f go.sh && rm go.sh
curl -O https://gitlab.ssec.wisc.edu/rayg/himawari/raw/develop/godo.sh
docker run --rm -it -v $PWD:/dock -w /dock $image /bin/bash godo.sh
curl -O https://gitlab.ssec.wisc.edu/rayg/himawari/raw/${tag}/godo.sh
docker run --rm -it -v $PWD:/dock -w /dock $image /bin/bash godo.sh ${tag}
#!/bin/bash
set -ex
yum -y install gcc-gfortran gcc-c++ unzip perl patch yacc bison flex glibc-devel.i686 glibc-devel.x86_64 xz git
version="v$(date '+%Y%m%d')"
#version="v$(date '+%Y%m%d')"
tag=$1
export DEST=$PWD
mkdir /build
mkdir /docker
cd /build
export AXITOOLS_HOME=$PWD/axi-tools-${version}
export AXITOOLS_HOME=$PWD/axi-tools-${tag}
rm -fr goesr himawari build.sh
curl -O https://gitlab.ssec.wisc.edu/rayg/himawari/raw/develop/build.sh
bash build.sh
tar jcvf $DEST/axi-tools-${version}.tar.bz2 axi-tools-${version}
curl -O https://gitlab.ssec.wisc.edu/rayg/himawari/raw/${tag}/build.sh
export TAG=$tag
test -n "$HIMAWARI_TAG" || export HIMAWARI_TAG=${tag}
test -n "$GOESR_TAG" || export GOESR_TAG=${tag}
test -n "$TAG" || export TAG="v$(date '+%Y%m%dT%H%M%S')"
env |grep TAG
bash build.sh
tar jcvf $DEST/axi-tools-${tag}.tar.bz2 axi-tools-${tag}
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