Skip to content

Commit 925ee65

Browse files
authored
Revert "Remove docker build" (#122)
* Revert "Remove docker build (#110)" This reverts commit 0d9d5c3. * Update dailyBuild.sh
1 parent 4ca5c02 commit 925ee65

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

scripts/dailyBuild.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ do
44
case "${flag}" in
55
t) DATE="${OPTARG}";;
66
d) DRIVER="${OPTARG}";;
7+
b) BUILD="${OPTARG}";;
8+
u) DOCKER_USERNAME="${OPTARG}";;
79
*) echo "Invalid option";;
810
esac
911
done
@@ -13,4 +15,10 @@ echo "Testing daily build image"
1315
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
1416
cat inventory/pom.xml system/pom.xml
1517

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

0 commit comments

Comments
 (0)