Skip to content

Commit

Permalink
Merge pull request #10 from rgdoliveira/sync_main
Browse files Browse the repository at this point in the history
Sync main branch with Apache main branch
  • Loading branch information
rgdoliveira authored Jan 29, 2024
2 parents e69f18c + 4ed82a9 commit df7d9fa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/kogito-dynamic-resources/added/container-limits
Original file line number Diff line number Diff line change
Expand Up @@ -121,17 +121,17 @@ min() {
printf "%s\n" "$@" | sort -g | head -n1
}

local limit="$(core_limit)"
limit="$(core_limit)"
if [ x$limit != x ]; then
export CONTAINER_CORE_LIMIT="$limit"
fi

local env_core_limit="$(min $CONTAINER_CORE_LIMIT $JAVA_CORE_LIMIT)"
env_core_limit="$(min $CONTAINER_CORE_LIMIT $JAVA_CORE_LIMIT)"
if [ -n "$env_core_limit" ]; then
export CORE_LIMIT="$env_core_limit"
fi

local max_mem="$(container_memory)"
max_mem="$(container_memory)"
if [ x$max_mem != x ]; then
export CONTAINER_MAX_MEMORY="$max_mem"
fi

0 comments on commit df7d9fa

Please sign in to comment.