awips2/build/awips-ade/awips-ade.sh

27 lines
873 B
Bash
Raw Normal View History

Add in Unidata's awips-ade directory -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
2022-05-05 12:57:24 -05:00
#!/bin/bash
dir="$( cd "$(dirname "$0")" ; pwd -P )"
pushd $dir
. ../buildEnvironment.sh
if [ -z "$1" ]; then
echo "supply type (el7)"
exit
fi
os_version=$1
existing=$(docker images |grep awips-ade | grep $1 | awk '{ print $3 }')
Add in Unidata's awips-ade directory -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
2022-05-05 12:57:24 -05:00
if [ ! -z "$existing" ]; then
docker rmi $existing
Add in Unidata's awips-ade directory -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
2022-05-05 12:57:24 -05:00
fi
img="20.3.2-2"
Add in Unidata's awips-ade directory -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
2022-05-05 12:57:24 -05:00
pushd /awips2/repo/awips2-builds/build/awips-ade
docker build -t tiffanym13/awips-ade-${img} -f Dockerfile.awips-ade-${img}.${os_version} .
dockerID=$(docker images | grep awips-ade | awk '{print $3}' | head -1 )
#docker tag $dockerID unidata/awips-ade:${AWIPSII_VERSION}-${os_version}
docker tag $dockerID tiffanym13/awips-ade-${img}:${AWIPSII_VERSION}-${os_version}
docker rmi tiffanym13/awips-ade-${img}:latest
#docker rmi tiffanym13/awips-ade-${img}:${AWIPSII_VERSION}-${os_version}
docker push tiffanym13/awips-ade-${img}:${AWIPSII_VERSION}-${os_version}