Skip to content
This repository has been archived by the owner on Dec 4, 2023. It is now read-only.

Commit

Permalink
a fix for sonatype release, use jdk11 in docker
Browse files Browse the repository at this point in the history
  • Loading branch information
shuttie committed May 25, 2020
1 parent f97d98f commit 1efcef2
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ mainClass in assembly := Some("io.findify.s3mock.Main")
test in assembly := {}

dockerfile in docker := new Dockerfile {
from("openjdk:9.0.1-11-jre-slim")
from("adoptopenjdk/openjdk11:jre-11.0.7_10-debian")
expose(8001)
add(assembly.value, "/app/s3mock.jar")
entryPoint("java", "-Xmx128m", "-jar", "--add-modules", "java.xml.bind", "/app/s3mock.jar")
Expand All @@ -80,11 +80,4 @@ imageNames in docker := Seq(
ImageName(s"findify/s3mock:latest")
)

/*enablePlugins(JavaAppPackaging)
maintainer in Docker := "S3mock"
packageSummary in Docker := "S3Mock"
packageDescription := "Mock Service For S3"
dockerUpdateLatest := true
dockerExposedPorts := Seq(8001)
*/
publishTo := sonatypePublishToBundle.value

0 comments on commit 1efcef2

Please sign in to comment.