Skip to content

Commit

Permalink
✨ Feat. Add heap size configuration as an environment variable to doc…
Browse files Browse the repository at this point in the history
…ker run. Advance embedded mongo version to fix the ubuntu build.
  • Loading branch information
sinaci committed Jan 14, 2025
1 parent 5cc5efa commit 3e3723e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
9 changes: 8 additions & 1 deletion docker/docker-entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
#!/usr/bin/env bash

JAVA_CMD="java -Xms256m -Xmx3g -jar "
# Set default Java options
DEFAULT_JAVA_OPTIONS="-Xms256m -Xmx3g"

# Use environment variable if provided, otherwise use default value
JAVA_OPTIONS="${JAVA_OPTIONS:-$DEFAULT_JAVA_OPTIONS}"

# Construct JAVA_CMD with Java options
JAVA_CMD="java $JAVA_OPTIONS -jar "

# Configure application.conf path
if [ ! -z "$APP_CONF_FILE" ]; then
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ class FhirPathAggFunctions(context:FhirPathEnvironment, current:Seq[FhirPathResu
.flatMap(c => {
val result = new FhirPathExpressionEvaluator(context, Seq(c)).visit(expr)
if (result.length > 1)
throw new FhirPathException(s"Invalid function call 'min', the expression ${expr.getText} does not return a single value or Nil!")
throw new FhirPathException(s"Invalid function call 'max', the expression ${expr.getText} does not return a single value or Nil!")
result.headOption
})

Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@
<akka.version>2.8.5</akka.version>
<!--mongodb.scala.version>4.11.1</mongodb.scala.version-->
<mongodb.scala.version>5.1.3</mongodb.scala.version>
<mongo.embedded.version>4.12.0</mongo.embedded.version>
<mongo.embedded.version>4.18.1</mongo.embedded.version>
<json4s.version>3.7.0-M11</json4s.version>
<scala.xml.version>2.2.0</scala.xml.version>
<logback.version>1.4.14</logback.version>
Expand Down

0 comments on commit 3e3723e

Please sign in to comment.