6 ms·
Running Oracle JDK on Docker? You're Breaking the Law
- StreamBright 11y agoI wasn't aware of this, thanks for sharing. The lean JVM installation script is also useful (I won't re-distributed the image built that way though).
- dragandj 11y agoThe title is misleading. It should state "Oracle JDK" instead of "Java". As proposed in the text, with OpenJDK, you are just fine.
- kisstheblade 11y agoOr just download the jdk normally, accept license, create your own docker image with the jdk fully installed and you are ready to go. Not breaking any laws here (or even licence agreements, there's a difference you know!), so please change the silly headline.
- tkfx 11y agoIf you're distributing your image in any way / creating copies etc. then you do
- twic 11y agoIf you're giving copies to other people, that's distribution, which is dicey, but if you're making copies for your own use, that's reproduction, which is fine.
- dogma1138 11y agoIs there an actual legal distinction between the two? Even if there is it seems like in a corporate world that could be quite messy because the corporation it self could be split into multiple legal entities so if you have a group wide IT department that provides the images for developers to use it could still count as distribution.
- Leon 11y agoI'm agreeing with you because the alternative would make deployment processes of snapshotting built images for faster startup time against the law. If you couldn't use AMIs in AWS because the Oracle JRE is installed but instead are forced to install at launch time then that makes Oracle largely irrelevant to use in the cloud - no one wants to limit their startup time by a multiple minutes to download and install for a scaling event (and barring any network issues on their servers if hosting the installer package is seen as distribution as well). I haven't heard of any issues with moving around your own internally built virtual images with Oracle Java if you have accepted the licensing agreement for during the build and snapshot process, and using docker seems no different.
- kodablah 11y agoThese days is there any great benefit to Oracle JDK over Zulu? It can be deployed with Docker easily [1]. 1 - https://www.azul.com/products/zulu/docker/ https://www.azul.com/products/zulu/docker/
- pron 11y agoThe main advantage is the monitoring/profiling tools, and in particular the awesome Java Flight Recorder. It doesn't make a difference in practice (assuming you don't want to pay for JFR, though many would), as JFR is free for use only in a development environment and not in production.
- caboteria 11y agoWe switched from the Oracle JDK to OpenJDK a couple of months back and it's going fine. It's nice to "yum install openjdk" and not have to worry about license gotchas. What are the advantages to the Oracle JDK that we're missing?
- LaSombra 11y agoI believe the only worth feature missing is Flight Recorder/Mission Control. You gain debug symbols that can help you investigate JVM crashes.
- atgreen 11y agoFor what it's worth, Red Hat's OpenJDK release is validated with the TCK. So not all OpenJDK builds are equal... https://access.redhat.com/articles/1299013 https://access.redhat.com/articles/1299013
- gmuslera 11y agoShould not be exclusive to Docker. Vagrant boxes, AWS AMIs and other premade OS images with (Oracle) Java preinstalled could fall into the same problem.