diff --git a/services/git-bridge/Dockerfile b/services/git-bridge/Dockerfile index a9acf7c621..f7407b09ab 100644 --- a/services/git-bridge/Dockerfile +++ b/services/git-bridge/Dockerfile @@ -25,7 +25,7 @@ RUN make package \ FROM amazoncorretto:11-alpine -RUN apk add --update --no-cache git sqlite procps htop net-tools jemalloc +RUN apk add --update --no-cache bash git sqlite procps htop net-tools jemalloc ENV LD_PRELOAD=/usr/lib/libjemalloc.so.2 diff --git a/services/git-bridge/start.sh b/services/git-bridge/start.sh index 6f6ce3ad78..714eeba14b 100755 --- a/services/git-bridge/start.sh +++ b/services/git-bridge/start.sh @@ -4,11 +4,11 @@ VERSION=$(date +%y%m%d%H%M%S) -if [ "x$GIT_BRIDGE_JVM_ARGS" == "x" ]; then +if [ -z "$GIT_BRIDGE_JVM_ARGS" ]; then GIT_BRIDGE_JVM_ARGS="-XX:+UseContainerSupport -XX:MaxRAMPercentage=50.0" fi -if [ "$ENABLE_PROFILE_AGENT" == "true" ]; then +if [ "$ENABLE_PROFILE_AGENT" = "true" ]; then GIT_BRIDGE_JVM_ARGS="-agentpath:/opt/cprof/profiler_java_agent.so=-cprof_service=git-bridge,-cprof_service_version=${VERSION},-cprof_enable_heap_sampling=true ${GIT_BRIDGE_JVM_ARGS}" fi