Skip to content

Commit

Permalink
Merge pull request #5 from rh-openjdk/s2i_fix
Browse files Browse the repository at this point in the history
[OPENJDK-2807]Update testlib for chance issue with 1001 showing up in the container id hash.
  • Loading branch information
sefroberg authored Feb 29, 2024
2 parents eb1d6a2 + 2549276 commit 600c494
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions containersQa/testlib.bash
Original file line number Diff line number Diff line change
Expand Up @@ -534,14 +534,14 @@ function s2iLocal() {
# defined in the calling function if it is attempting to build a Jenkins plug-in.
if [[ "$JENKINS_BUILD" == "yes" ]] ; then
# copy the jenkins settings file to the local tmp directory
$s2iBin build -e "$MAIN" -e "$ARGS" -e "$SETTING_ARGS" "$REPO" "$HASH" "$NAME" --as-dockerfile $DF.orig
$s2iBin build -e "$MAIN" -e "$ARGS" -e "$SETTING_ARGS" "$REPO" "$HASH" "$NAME" --assemble-user $USERNAME --as-dockerfile $DF.orig
cp $LIBCQA_SCRIPT_DIR/jenkins_settings.xml upload/src
else
$s2iBin build -e "$MAIN" -e "$ARGS" "$REPO" "$HASH" "$NAME" --as-dockerfile $DF.orig
$s2iBin build -e "$MAIN" -e "$ARGS" "$REPO" "$HASH" "$NAME" --assemble-user $USERNAME --as-dockerfile $DF.orig
fi
if [ "x$OVERWRITE_USER" == x ] ; then
#update the container file for proper functionality
cat $DF.orig | sed "s;/usr/libexec;/usr/local;g" | sed "s;1001:0;$USERNAME:$USERNAME;g" | sed "s;1001;$USERNAME;g" | sed "s;/s2i/run;/s2i/run $ADDS;g;" > $DF.nw1
cat $DF.orig | sed "s;/usr/libexec;/usr/local;g" | sed "s;1001:0;$USERNAME:$USERNAME;g" | sed "s;/s2i/run;/s2i/run $ADDS;g;" > $DF.nw1
else
cat $DF.orig | sed "s;/s2i/run;/s2i/run $ADDS;g;" > $DF.nw1
fi
Expand Down

0 comments on commit 600c494

Please sign in to comment.