Skip to content

Commit

Permalink
feat: migrate docker image of the Agent to Java 21
Browse files Browse the repository at this point in the history
Signed-off-by: Yurii Shynbuiev <[email protected]>
  • Loading branch information
yshyn-iohk authored and Anton Baliasnikov committed Oct 23, 2023
1 parent 5204838 commit 9659797
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
5 changes: 2 additions & 3 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,6 @@ lazy val D_Castor = new {
D.circeCore,
D.circeGeneric,
D.circeParser,
prismCrypto,
prismIdentity,
scalaUri
)
Expand Down Expand Up @@ -789,12 +788,12 @@ lazy val prismAgentServer = project
Docker / dockerUsername := Some("input-output-hk"),
Docker / dockerRepository := Some("ghcr.io"),
dockerExposedPorts := Seq(8080, 8085, 8090),
dockerBaseImage := "openjdk:11",
dockerBaseImage := "amazoncorretto:21.0.0-alpine3.18",
buildInfoKeys := Seq[BuildInfoKey](name, version, scalaVersion, sbtVersion),
buildInfoPackage := "io.iohk.atala.agent.server.buildinfo",
Compile / packageDoc / publishArtifact := false
)
.enablePlugins(JavaAppPackaging, DockerPlugin)
.enablePlugins(JavaAppPackaging, DockerPlugin, AshScriptPlugin)
.enablePlugins(BuildInfoPlugin)
.dependsOn(prismAgentWalletAPI % "compile->compile;test->test")
.dependsOn(
Expand Down
2 changes: 1 addition & 1 deletion infrastructure/local/.env
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
PRISM_AGENT_VERSION=1.16.0
PRISM_AGENT_VERSION=1.16.4-SNAPSHOT
PRISM_NODE_VERSION=2.2.1
VAULT_DEV_ROOT_TOKEN_ID=root
2 changes: 1 addition & 1 deletion infrastructure/shared/docker-compose-demo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ services:
prism-node:
condition: service_started
healthcheck:
test: ["CMD", "curl", "-f", "http://prism-agent:8085/_system/health"]
test: ["CMD", "wget", "--timeout=5", "--tries=3", "-O", "/dev/null", "http://prism-agent:8085/_system/health"]
interval: 30s
timeout: 10s
retries: 5
Expand Down
2 changes: 1 addition & 1 deletion infrastructure/shared/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ services:
vault-server:
condition: service_healthy
healthcheck:
test: ["CMD", "curl", "-f", "http://prism-agent:8085/_system/health"]
test: ["CMD", "wget", "--timeout=5", "--tries=3", "-O", "/dev/null", "http://prism-agent:8085/_system/health"]
interval: 30s
timeout: 10s
retries: 5
Expand Down

0 comments on commit 9659797

Please sign in to comment.