Skip to content

Commit

Permalink
Fix Pingperf failure due to semeru dockerfile authorization change (#…
Browse files Browse the repository at this point in the history
…4709)

- Fix Pingperf failure due to semeru dockerfile authorization change

Signed-off-by: LongyuZhang <longyu.zhang@ibm.com>
  • Loading branch information
LongyuZhang authored Aug 17, 2023
1 parent f62a0b0 commit c9e7c93
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions external/criu/pingPerf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,8 @@ getSemeruDockerfile() {
curl -OLJSks https://raw.githubusercontent.com/ibmruntimes/semeru-containers/ibm/$jdkVersion-ea/jdk/ubi/ubi8/Dockerfile.open.releases.full
semeruDockerfile="Dockerfile.open.releases.full"

findCommandAndReplace '# Set your Artifactory credentials here or pass them at build time' 'ARG DOCKER_REGISTRY_CREDENTIALS_USR' $semeruDockerfile
findCommandAndReplace 'ARG ARTIFACTORY_TOKEN' 'ARG DOCKER_REGISTRY_CREDENTIALS_PSW' $semeruDockerfile
findCommandAndReplace '\-H \"Authorization: Bearer \${ARTIFACTORY_TOKEN}\"' '--user \"\${DOCKER_REGISTRY_CREDENTIALS_USR}:\${DOCKER_REGISTRY_CREDENTIALS_PSW}\"' $semeruDockerfile ";"
findCommandAndReplace '\-H \"\${CRIU_AUTH_HEADER}\"' '--user \"\${DOCKER_REGISTRY_CREDENTIALS_USR}:\${DOCKER_REGISTRY_CREDENTIALS_PSW}\"' $semeruDockerfile ";"
findCommandAndReplace 'RUN --mount.*' 'ARG DOCKER_REGISTRY_CREDENTIALS_USR \n ARG DOCKER_REGISTRY_CREDENTIALS_PSW \n RUN set -eux; \\' $semeruDockerfile
findCommandAndReplace 'ENV JAVA_VERSION .*' " " $semeruDockerfile
findCommandAndReplace 'exit 1; \\' " " $semeruDockerfile
findCommandAndReplace 'curl -LfsSo \/tmp\/openjdk.tar.gz ${BINARY_URL};' " " $semeruDockerfile
Expand Down

0 comments on commit c9e7c93

Please sign in to comment.