-
-
Notifications
You must be signed in to change notification settings - Fork 317
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update pingPerf test replacing OpenLiberty base image #4609
Conversation
LongyuZhang
commented
Jun 7, 2023
- Update pingPerf test replacing OpenLiberty base image
- Update pingPerf test replacing OpenLiberty base image Signed-off-by: LongyuZhang <longyu.zhang@ibm.com>
Test Links:
|
@@ -86,7 +86,8 @@ prepare() { | |||
curCommitID=$(git rev-parse HEAD) | |||
echo "Using dockerfile from OpenLiberty/ci.docker repo branch $openLibertyBranch with commit hash $curCommitID" | |||
libertyDockerfilePath="releases/latest/beta/Dockerfile.ubi.openjdk17" | |||
sed -i 's;FROM icr.io\/appcafe\/ibm-semeru-runtimes:open-17-ea-jdk-ubi-amd64;FROM local-ibm-semeru-runtimes:latest;' $libertyDockerfilePath | |||
# replace OpenLiberty dockerfile base image | |||
sed -i 's;FROM icr.io\/appcafe\/ibm-semeru-runtimes:open-17-jdk-ubi;FROM local-ibm-semeru-runtimes:latest;' $libertyDockerfilePath |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In case the OpenLiberty changes this again, we can add a check? If the string that we are looking for does not exist, fail the build? For example:
imageFrom="FROM icr.io/appcafe/ibm-semeru-runtimes:open-17-jdk-ubi;"
grep "${imageFrom}" $libertyDockerfilePath
rtCode=$?
if [ $rtCode == 0 ]; then
echo "Replace ${imageFrom} to FROM local-ibm-semeru-runtimes:latest;"
sed -i 's;FROM icr.io\/appcafe\/ibm-semeru-runtimes:open-17-jdk-ubi;FROM local-ibm-semeru-runtimes:latest;' $libertyDockerfilePath
else
echo "Cannot find ${imageFrom} in https://github.com/OpenLiberty/ci.docker/blob/instanton/releases/latest/beta/Dockerfile.ubi.openjdk17"
exit 1
fi
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The above code will not work as we have space in imageFrom. Maybe we can use q
command in sed:
https://stackoverflow.com/questions/15965073/return-value-of-sed-for-no-match/15965681#15965681
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have decided to do this in a separate PR so the weekly run will fail.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM