-Updated Dockerfile filenames to include -20.3.2 -added/removed a few dependencies -added a yum update to the devel -updated version -Had to locally add the RPM's to the ade docker since they aren't publically on a server -Had to update the el7-dev.repo to point to the local RPMs directory -Updated version in buildEnvironment.sh -Added a few new paths to rsync.dirs: -awips2-core/ignite/* -awips2-nws/common/* -awips2-nws/features/* -awips2-nws/viz/* -Removed *pdf from rsync.dirs -rpms/build/x86_86/build.sh - updated this file to use the groups to install the rpms -removed umlauts from schrodinger in GridUpdater.java To Do/Change before initial public push: -Change the dockerhub organization from tiffanym13 to unidata -Change the el7-dev.repo file to point to our repo on nexus -Remove the RPM's directory -Change imgvers in setup.sh to not have the -1 -Change the Dockerfile names back to the original without the version (and just tag it with the version) -Need to add back in awips2-unidata repo to rsync.dirs, build_rpms.sh, and build/repos -Figure out how to merge in the awips-ade directory and Unidata build scripts so we can keep the history -Uncomment the #TM# comments in setup.sh to copy files to fserv -Take out propriety data (specific to warnings and binlightning) ------------------------------------------------------------------------------ SUMMARY: new file: build/awips-ade/Dockerfile.awips-ade-20.3.2-1.el7 new file: build/awips-ade/Dockerfile.awips-devel-20.3.2-1.el7 new file: build/awips-ade/awips-ade.sh new file: build/awips-ade/awips-devel.sh new file: build/awips-ade/el7-dev.repo new file: build/build.sh new file: build/buildEnvironment.sh new file: build/build_rpms.sh new file: build/cibuild.sh new file: build/excludes new file: build/repos new file: build/rsync.cave new file: build/rsync.dirs new file: build/setup.sh modified: cave/com.raytheon.viz.grid/src/com/raytheon/viz/grid/inv/GridUpdater.java modified: rpms/build/x86_64/build.sh
84 lines
2.8 KiB
Bash
Executable file
84 lines
2.8 KiB
Bash
Executable file
#!/bin/sh -xe
|
|
#
|
|
# Unidata AWIPS Build Setup Script
|
|
# author: Michael James
|
|
# maintainer: <tiffanym@ucar.edu>
|
|
#
|
|
|
|
#
|
|
# Require el6 or el7 be specified
|
|
#
|
|
if [ -z "$1" ]; then
|
|
echo "supply type (el7)"
|
|
exit
|
|
fi
|
|
os_version=$1
|
|
rpmname=$2
|
|
dirs=" -v `pwd`:/awips2/repo/awips2-builds:rw "
|
|
. /awips2/repo/awips2-builds/build/buildEnvironment.sh
|
|
|
|
version=${AWIPSII_VERSION}-${AWIPSII_RELEASE}
|
|
java -jar /awips2/repo/awips-unidata-builds/all/awips_splashscreen_updater.jar "$version"
|
|
splashLoc=$(find /awips2/repo/awips2/cave -name "splash.bmp")
|
|
mv splash.bmp $splashLoc
|
|
echo "replacing splash.bmp"
|
|
|
|
# If local source directories, exist, mount them to the container
|
|
if [ $rpmname = "buildCAVE" ]; then
|
|
for dn in `cat build/repos| grep -v static| grep -v nativelib |grep -v awips2-rpm`
|
|
do
|
|
echo $dn
|
|
if [ -d /awips2/repo/$dn ]; then
|
|
dirs+=" -v /awips2/repo/${dn}:/awips2/repo/${dn} "
|
|
fi
|
|
done
|
|
else
|
|
for dn in `cat build/repos`
|
|
do
|
|
echo $dn
|
|
if [ -d /awips2/repo/$dn ]; then
|
|
dirs+=" -v /awips2/repo/${dn}:/awips2/repo/${dn} "
|
|
fi
|
|
done
|
|
fi
|
|
|
|
#
|
|
# Run Docker AWIPS ADE Image
|
|
#
|
|
imgname=tiffanym13/awips-ade
|
|
imgvers=20.3.2
|
|
sudo docker run --entrypoint=/bin/bash --privileged -d -ti -e "container=docker" $dirs $imgname-$imgvers-1:$imgvers-$os_version
|
|
dockerID=$(sudo docker ps | grep awips-ade | awk '{print $1}' | head -1 )
|
|
sudo docker logs $dockerID
|
|
sudo docker exec -ti $dockerID /bin/bash -xec "/awips2/repo/awips2-builds/build/build_rpms.sh $os_version $rpmname";
|
|
#sudo docker stop $dockerID
|
|
#sudo docker rm -v $dockerID
|
|
|
|
#
|
|
# Update/Recreate YUM Repository
|
|
#
|
|
|
|
date=$(date +%Y%m%d)
|
|
|
|
if [[ $(whoami) == "awips" ]]; then # local build
|
|
#copy awips_install-YYYYMMDD.sh to robin
|
|
#TM#cp awips_install.sh awips_install-${date}.sh
|
|
#TM#echo "rsync -aP awips_install-${date}.sh tiffanym@fserv:/share/awips2/${AWIPSII_VERSION}/linux/"
|
|
#TM#rsync -aP awips_install-${date}.sh tiffanym@fserv:/share/awips2/${AWIPSII_VERSION}/linux/
|
|
|
|
#For testing, copy el7-test.repo to robin with updated path
|
|
#sed -i 's/el7-dev-[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]/el7-dev-${date}/' dist/el7-test.repo
|
|
|
|
sudo mv dist/${os_version}-dev dist/${os_version}-dev-${date}
|
|
sudo su - -c "createrepo -g /awips2/repo/awips2/dist/comps.xml /awips2/repo/awips2/dist/${os_version}-dev-${date}/"
|
|
sudo chown -R awips:fxalpha dist/${os_version}-dev-${date}
|
|
# rsync -aP dist/${os_version}-
|
|
#TM#echo "rsync -aP dist/${os_version}-dev-${date} tiffanym@fserv:/share/awips2/${AWIPSII_VERSION}/linux/"
|
|
#TM#rsync -aP dist/${os_version}-dev-${date} tiffanym@fserv:/share/awips2/${AWIPSII_VERSION}/linux/
|
|
#rsync -aP dist/${os_version}-dev-${date} awips@hardy:~/
|
|
#repomanage -k1 --old dist/${os_version}-dev | xargs rm -f
|
|
#
|
|
# Push to web server
|
|
#
|
|
#rsync --archive --delete dist/${os_version}-dev tomcat@www:/web/content/repos/yum/
|
|
fi
|