Skip to content

Commit

Permalink
Merge pull request #134 from OpenLiberty/staging
Browse files Browse the repository at this point in the history
Merge staging to prod - Revert "Remove docker build" (#133)
  • Loading branch information
gkwan-ibm authored May 8, 2024
2 parents 8530777 + ef019fb commit 1922890
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions scripts/dailyBuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ while getopts t:d:b:u: flag; do
case "${flag}" in
t) DATE="${OPTARG}" ;;
d) DRIVER="${OPTARG}" ;;
b) BUILD="${OPTARG}" ;;
u) DOCKER_USERNAME="${OPTARG}" ;;
*) echo "Invalid option" ;;
esac
done
Expand All @@ -12,4 +14,10 @@ echo "Testing daily build image"
sed -i "\#</containerRunOpts>#a<install><runtimeUrl>https://public.dhe.ibm.com/ibmdl/export/pub/software/openliberty/runtime/nightly/$DATE/$DRIVER</runtimeUrl></install>" inventory/pom.xml system/pom.xml
cat inventory/pom.xml system/pom.xml

if [[ "$DOCKER_USERNAME" != "" ]]; then
sed -i "s;FROM icr.io/appcafe/open-liberty:kernel-slim-java11-openj9-ubi;FROM $DOCKER_USERNAME/olguides:$BUILD;g" system/Dockerfile inventory/Dockerfile
sed -i "s;RUN features.sh;#RUN features.sh;g" inventory/Dockerfile system/Dockerfile
cat inventory/Dockerfile system/Dockerfile
fi

../scripts/testApp.sh

0 comments on commit 1922890

Please sign in to comment.