Skip to content

Commit

Permalink
0006003: Upgraded Gradle Docker Plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
evan-miller-jumpmind committed Oct 5, 2023
1 parent 8811063 commit a54ceb2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion symmetric-assemble/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM openjdk:8-jdk
FROM eclipse-temurin:17-alpine

# Input the server zip file used to install SymmetricDS
# This file must be in the Docker context (i.e. working directory)
Expand Down
15 changes: 8 additions & 7 deletions symmetric-assemble/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ buildscript {
classpath 'org.asciidoctor:asciidoctorj-pdf:1.6.2'
classpath 'org.asciidoctor:asciidoctor-gradle-jvm:3.3.2'
classpath 'com.diffplug.spotless:spotless-plugin-gradle:6.4.2'
//classpath 'com.bmuschko:gradle-docker-plugin:5.3.0'
classpath 'com.bmuschko:gradle-docker-plugin:9.3.4'
classpath 'io.github.humblerookie:gradle-github-plugin:0.5.0'
classpath 'org.jacoco:org.jacoco.ant:0.8.5'
}
Expand All @@ -22,7 +22,7 @@ plugins {
apply plugin: 'java-library'
apply plugin: 'idea'
apply plugin: 'eclipse'
//apply plugin: 'com.bmuschko.docker-remote-api'
apply plugin: 'com.bmuschko.docker-remote-api'
apply plugin: 'io.github.humblerookie.gradle'
apply plugin: 'jacoco'

Expand Down Expand Up @@ -229,7 +229,7 @@ task releaseSymmetric {
description = 'Publish software to SourceForge website and online documentation to SymmetricDS website'
}

/*

docker {
registryCredentials {
username = "$dockerUser".toString()
Expand All @@ -251,20 +251,21 @@ task copyDockerfile(type: Copy) {
task buildImage(type: com.bmuschko.gradle.docker.tasks.image.DockerBuildImage) {
dependsOn copyDockerfile
inputDir = file("../symmetric-server/build/distributions")
tags = ["jumpmind/symmetricds:latest", "jumpmind/symmetricds:${version}".toString()]
images = ["jumpmind/symmetricds:latest", "jumpmind/symmetricds:${version}".toString()]
buildArgs = ["SERVER_ZIP":"symmetric-server-${version}.zip"]
}

task publishDockerLatest(type: com.bmuschko.gradle.docker.tasks.image.DockerPushImage) {
dependsOn buildImage
imageName = "jumpmind/symmetricds:latest"
images.empty()
images.add("jumpmind/symmetricds:latest")
}

task publishDocker(type: com.bmuschko.gradle.docker.tasks.image.DockerPushImage) {
dependsOn publishDockerLatest
imageName = "jumpmind/symmetricds:${version}".toString()
images.empty()
images.add("jumpmind/symmetricds:${version}".toString())
doLast {
println "Pushing Docker Image to the jumpmind/symmetricds Repository"
}
}
*/

0 comments on commit a54ceb2

Please sign in to comment.