chore: add cgroup mem-limit awareness for the JVM
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
5ad4216f69
commit
b242a85230
|
@ -43,6 +43,10 @@ RUN while read -r package; do PACKAGES="${PACKAGES}${package} "; done < ${ANDROI
|
|||
|
||||
FROM adoptopenjdk/openjdk11:alpine-slim
|
||||
COPY --from=build /tmp/sdk /sdk
|
||||
|
||||
# Makes JVM aware of memory limit available to the container (cgroups)
|
||||
ENV JAVA_OPTS='-XX:+UseContainerSupport -XX:MaxRAMPercentage=80'
|
||||
|
||||
ENV ANDROID_HOME "/sdk"
|
||||
ENV ANDROID_SDK_ROOT "${ANDROID_SDK_ROOT}"
|
||||
ENV PATH "$PATH:${ANDROID_SDK_ROOT}/tools:${ANDROID_HOME}/tools"
|
||||
|
|
Loading…
Reference in New Issue