Skip to content

Commit

Permalink
Merge pull request #239 from OpenLiberty/qa
Browse files Browse the repository at this point in the history
Merge qa to master: Daily build update (#237)
  • Loading branch information
gkwan-ibm authored May 6, 2021
2 parents 135eda5 + 1275709 commit bd8fff3
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
5 changes: 3 additions & 2 deletions scripts/dailyBuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,16 @@ do
d) DRIVER="${OPTARG}";;
b) BUILD="${OPTARG}";;
u) DOCKER_USERNAME="${OPTARG}";;
*) echo "Invalid option";;
esac
done

echo "Testing daily build image"

sed -i "\#<artifactId>liberty-maven-plugin</artifactId>#a<configuration><install><runtimeUrl>https://public.dhe.ibm.com/ibmdl/export/pub/software/openliberty/runtime/nightly/"$DATE"/"$DRIVER"</runtimeUrl></install></configuration>" pom.xml
sed -i "\#<artifactId>liberty-maven-plugin</artifactId>#a<configuration><install><runtimeUrl>https://public.dhe.ibm.com/ibmdl/export/pub/software/openliberty/runtime/nightly/$DATE/$DRIVER</runtimeUrl></install></configuration>" pom.xml
cat pom.xml

sed -i "s;FROM openliberty/open-liberty:kernel-java8-openj9-ubi;FROM "$DOCKER_USERNAME"/olguides:"$BUILD";g" Dockerfile
sed -i "s;FROM openliberty/open-liberty:kernel-java8-openj9-ubi;FROM $DOCKER_USERNAME/olguides:$BUILD;g" Dockerfile
cat Dockerfile

../scripts/testApp.sh
3 changes: 2 additions & 1 deletion scripts/dockerImageTest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@ do
case "${flag}" in
t) DATE="${OPTARG}";;
d) DRIVER="${OPTARG}";;
*) echo "Invalid option";;
esac
done

echo "Testing daily Docker image"

sed -i "\#<artifactId>liberty-maven-plugin</artifactId>#a<configuration><install><runtimeUrl>https://public.dhe.ibm.com/ibmdl/export/pub/software/openliberty/runtime/nightly/"$DATE"/"$DRIVER"</runtimeUrl></install></configuration>" pom.xml
sed -i "\#<artifactId>liberty-maven-plugin</artifactId>#a<configuration><install><runtimeUrl>https://public.dhe.ibm.com/ibmdl/export/pub/software/openliberty/runtime/nightly/$DATE/$DRIVER</runtimeUrl></install></configuration>" pom.xml
cat pom.xml

sed -i "s;FROM openliberty/open-liberty:kernel-java8-openj9-ubi;FROM openliberty/daily:latest;g" Dockerfile
Expand Down
10 changes: 8 additions & 2 deletions scripts/testApp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,15 @@ fi
docker stop gettingstarted-app && docker rm gettingstarted-app

# TEST 2: Building and running the application
mvn -q clean package liberty:create liberty:install-feature liberty:deploy
mvn -Dhttp.keepAlive=false \
-Dmaven.wagon.http.pool=false \
-Dmaven.wagon.httpconnectionManager.ttlSeconds=120 \
-q clean package liberty:create liberty:install-feature liberty:deploy
mvn liberty:start
mvn -Dcontext.root=/dev/ failsafe:integration-test liberty:stop
mvn -Dhttp.keepAlive=false \
-Dmaven.wagon.http.pool=false \
-Dmaven.wagon.httpconnectionManager.ttlSeconds=120 \
-Dcontext.root=/dev/ failsafe:integration-test liberty:stop
mvn failsafe:verify
mvn liberty:package -Dinclude=runnable
if [ ! -f "target/guide-getting-started.jar" ]; then
Expand Down

0 comments on commit bd8fff3

Please sign in to comment.