Giter Site home page Giter Site logo

Comments (5)

thyrlian avatar thyrlian commented on May 19, 2024

Sure. We can think about several solutions:

  • A sub-image for the legacy JDK
  • Multiple JDK support, config/choose via ARG

Thanks Fabian :)

from androidsdk.

neugartf avatar neugartf commented on May 19, 2024

I would suggest the ARG way and then publish two different images like they do here: https://github.com/alvr/alpine-android.

from androidsdk.

thyrlian avatar thyrlian commented on May 19, 2024

Sounds good, so far no better alternative solution.

from androidsdk.

thyrlian avatar thyrlian commented on May 19, 2024

Done.
Now the default image is with JDK11, and the variant image android-sdk-jdk8 is with JDK8.

To pull the latest JDK11 image: docker pull thyrlian/android-sdk:7.0.
Details can be found here.

from androidsdk.

thyrlian avatar thyrlian commented on May 19, 2024

README is updated as well:

Earlier in JDK 8, you need to set the environment variable _JAVA_OPTIONS to -XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap. Then you'll see such logs like Picked up _JAVA_OPTIONS: -XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap during any task execution, which means it takes effect. JDK 10 has introduced -XX:+UseContainerSupport which is enabled by default to improve the execution and configurability of Java running in Docker containers. Since JDK 1.8.0_191, -XX:+UseContainerSupport was also backported, then you don't need to set -XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap any more. UseCGroupMemoryLimitForHeap was deprecated in JDK 10 and removed in JDK 11.

from androidsdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.