Skip to content

Commit

Permalink
feat: Add docker config to build.sbt (#5)
Browse files Browse the repository at this point in the history
Signed-off-by: Fabio Pinheiro <[email protected]>

Signed-off-by: Shailesh Patil <[email protected]>
  • Loading branch information
FabioPinheiro authored and mineme0110 committed May 1, 2024
1 parent 9fc5469 commit 2982cc8
Showing 1 changed file with 8 additions and 28 deletions.
36 changes: 8 additions & 28 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -6,33 +6,6 @@ inThisBuild(
scalaVersion := "3.2.2", // Also update docs/publishWebsite.sh and any ref to scala-3.2.2
)
)
// publish config
inThisBuild(
Seq(
Test / publishArtifact := false,
// pomIncludeRepository := (_ => false),
organization := "app.fmgp",
homepage := Some(url("https://github.com/input-output-hk/atala-prism-mediator")),
licenses := Seq(
"Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0")
// url ("https://github.com/input-output-hk/atala-prism-mediator" + "/blob/master/LICENSE")
),
scmInfo := Some(
ScmInfo(
url("https://github.com/input-output-hk/atala-prism-mediator"),
"scm:git:[email protected]:input-output-hk/atala-prism-mediator.git"
)
),
developers := List(
Developer("FabioPinheiro", "Fabio Pinheiro", "[email protected]", url("http://fmgp.app"))
),
// updateOptions := updateOptions.value.withLatestSnapshots(false),
versionScheme := Some("early-semver"), // https://www.scala-sbt.org/1.x/docs/Publishing.html#Version+scheme
)
)
lazy val notYetPublishedConfigure: Project => Project = _.settings(
publish / skip := true
)

/** Versions */
lazy val V = new {
Expand Down Expand Up @@ -209,7 +182,14 @@ lazy val mediator = project
libraryDependencies += D.scalaDID_peer.value,
libraryDependencies += D.ziohttp.value,
)
// .jvmConfigure(e => e.dependsOn(httpUtils))
.settings(
Compile / mainClass := Some("fmgp.did.demo.MediatorStandalone"),
Docker / maintainer := "[email protected]",
Docker / dockerUsername := Some("input-output-hk"),
Docker / dockerRepository := Some("ghcr.io"),
dockerExposedPorts := Seq(8080),
dockerBaseImage := "openjdk:11",
)
.dependsOn(httpUtils.jvm) // did, didExample,

// ############################
Expand Down

0 comments on commit 2982cc8

Please sign in to comment.