Skip to content

Commit

Permalink
Updated dockerfile to pin specific Gradle version (#77)
Browse files Browse the repository at this point in the history
* Updated dockerfile to pin specific gradle version for gpcc-mocks and service
Updated gradle wrapper version to use gradle 6.9.4 for gpcc-mocks and service

Used 6.9.4 as 6.8.2 is not supported on DockerHub

* resolve checkstyle error with whitespace
  • Loading branch information
MartinWheelerMT authored Jan 2, 2024
1 parent 82640b8 commit 309badd
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docker/gpcc-mocks/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM gradle:jdk11 AS build
FROM gradle:6.9.4-jdk11 AS build

COPY --chown=gradle:gradle gpcc-mocks /home/gradle/gpcc-mocks

Expand Down
2 changes: 1 addition & 1 deletion docker/service/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM gradle:jdk11-hotspot AS build
FROM gradle:6.9.4-jdk11 AS build

COPY --chown=gradle:gradle service /home/gradle/service

Expand Down
2 changes: 1 addition & 1 deletion gpcc-mocks/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.9-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-6.9.4-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
2 changes: 1 addition & 1 deletion service/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.8.2-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-6.9.4-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,4 @@ public ExchangeStrategies buildExchangeStrategies() {
configurer -> configurer.defaultCodecs()
.maxInMemorySize(BYTE_COUNT)).build();
}

}

0 comments on commit 309badd

Please sign in to comment.