Skip to content

Commit

Permalink
[CALCITE-6106] Switch from gradle to eclipse-temurin image for avatic…
Browse files Browse the repository at this point in the history
…a docker-compose release commands
  • Loading branch information
F21 committed Nov 11, 2023
1 parent 519d1ce commit 7ce1c9d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
10 changes: 5 additions & 5 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
version: '3'
services:
dry-run:
image: gradle:7.4.2-jdk17
image: eclipse-temurin:19
working_dir: /src
command: sh -c "./docker.sh dry-run"
network_mode: "host"
Expand All @@ -26,31 +26,31 @@ services:
- gradle-cache:/home/gradle/.gradle

publish-release-for-voting:
image: gradle:7.4.2-jdk17
image: eclipse-temurin:19
working_dir: /src
command: sh -c "./docker.sh publish-release-for-voting"
volumes:
- .:/src
- gradle-cache:/home/gradle/.gradle

clean:
image: gradle:7.4.2-jdk17
image: eclipse-temurin:19
working_dir: /src
command: sh -c "./docker.sh clean"
volumes:
- .:/src
- gradle-cache:/home/gradle/.gradle

promote-release:
image: gradle:7.4.2-jdk17
image: eclipse-temurin:19
working_dir: /src
command: sh -c "./docker.sh promote-release"
volumes:
- .:/src
- gradle-cache:/home/gradle/.gradle

test:
image: gradle:7.4.2-jdk17
image: eclipse-temurin:19
working_dir: /src
command: sh -c "./docker.sh test"
volumes:
Expand Down
10 changes: 5 additions & 5 deletions docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ promote_release(){
fi

get_asf_credentials
gradle publishDist -Pasf -PasfSvnUsername=$ASF_USERNAME -PasfSvnPassword=$ASF_PASSWORD -PasfNexusUsername=$ASF_USERNAME -PasfNexusPassword=$ASF_PASSWORD -PasfGitSourceUsername=$ASF_USERNAME -PasfGitSourcePassword=$ASF_PASSWORD -Prc=$RC_NUMBER -Pasf.git.pushRepositoryProvider=GITBOX
./gradlew publishDist -Pasf -PasfSvnUsername=$ASF_USERNAME -PasfSvnPassword=$ASF_PASSWORD -PasfNexusUsername=$ASF_USERNAME -PasfNexusPassword=$ASF_PASSWORD -PasfGitSourceUsername=$ASF_USERNAME -PasfGitSourcePassword=$ASF_PASSWORD -Prc=$RC_NUMBER -Pasf.git.pushRepositoryProvider=GITBOX

# If there is more than 1 release, delete all of them, except for the newest one
# To do this, we do the following:
Expand Down Expand Up @@ -285,7 +285,7 @@ case $1 in
select_gpg_key
get_dry_run_build_configuration

gradle prepareVote -PasfTestSvnUsername=test -PasfTestSvnPassword=test -PasfTestNexusUsername=test -PasfTestNexusPassword=test -PasfTestGitSourceUsername=test -PasfTestGitSourcePassword=test -Prc=$RC_NUMBER -PuseGpgCmd -Psigning.gnupg.keyName=$SELECTED_GPG_KEY
./gradlew prepareVote -PasfTestSvnUsername=test -PasfTestSvnPassword=test -PasfTestNexusUsername=test -PasfTestNexusPassword=test -PasfTestGitSourceUsername=test -PasfTestGitSourcePassword=test -Prc=$RC_NUMBER -PuseGpgCmd -Psigning.gnupg.keyName=$SELECTED_GPG_KEY
;;

publish-release-for-voting)
Expand All @@ -295,19 +295,19 @@ case $1 in
get_build_configuration
get_asf_credentials

gradle prepareVote -Pasf -PasfCommitterId=$ASF_USERNAME -PasfSvnUsername=$ASF_USERNAME -PasfSvnPassword=$ASF_PASSWORD -PasfNexusUsername=$ASF_USERNAME -PasfNexusPassword=$ASF_PASSWORD -PasfGitSourceUsername=$ASF_USERNAME -PasfGitSourcePassword=$ASF_PASSWORD -Prc=$RC_NUMBER -PuseGpgCmd -Psigning.gnupg.keyName=$SELECTED_GPG_KEY -Pasf.git.pushRepositoryProvider=GITBOX
./gradlew prepareVote -Pasf -PasfCommitterId=$ASF_USERNAME -PasfSvnUsername=$ASF_USERNAME -PasfSvnPassword=$ASF_PASSWORD -PasfNexusUsername=$ASF_USERNAME -PasfNexusPassword=$ASF_PASSWORD -PasfGitSourceUsername=$ASF_USERNAME -PasfGitSourcePassword=$ASF_PASSWORD -Prc=$RC_NUMBER -PuseGpgCmd -Psigning.gnupg.keyName=$SELECTED_GPG_KEY -Pasf.git.pushRepositoryProvider=GITBOX
;;

clean)
gradle clean
./gradlew clean
;;

promote-release)
promote_release
;;

test)
gradle test
./gradlew test
;;

*)
Expand Down
2 changes: 1 addition & 1 deletion site/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ services:
volumes:
- .:/srv/jekyll
generate-javadoc:
image: openjdk:17
image: eclipse-temurin:19
working_dir: /usr/src/calcite-avatica
command: sh -c "./gradlew javadocAggregate; rm -rf site/target/avatica/javadocAggregate; mkdir -p site/target/avatica; mv build/docs/javadocAggregate site/target/avatica"
volumes:
Expand Down

0 comments on commit 7ce1c9d

Please sign in to comment.