├── .dockerignore ├── .gitignore ├── CNAME ├── Dockerfile ├── LICENSE ├── ORACLE_LICENSE ├── README.md ├── _config.yml ├── build ├── docker-java.iml ├── java-logo.png ├── rootfs └── etc │ ├── cont-finish.d │ └── .gitignore │ ├── cont-init.d │ ├── .gitignore │ └── 40-import-trusted-ssl-certs.sh │ ├── fix-attrs.d │ └── .gitignore │ └── services.d │ └── .gitignore └── run /.dockerignore: -------------------------------------------------------------------------------- 1 | .idea 2 | .gitignore 3 | LICENSE 4 | README.md 5 | _config.yml 6 | CNAME 7 | docker-java.iml 8 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /.idea/ 2 | -------------------------------------------------------------------------------- /CNAME: -------------------------------------------------------------------------------- 1 | docker-java.frekele.org 2 | -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- 1 | FROM frekele/debian:stable 2 | 3 | MAINTAINER frekele 4 | 5 | # Set environment variables for program versions 6 | ENV JDK_VERSION=8 7 | ENV JDK_UPDATE=212 8 | ENV JDK_BUILD=b10 9 | ENV JDK_DISTRO_ARCH=linux-x64 10 | 11 | ENV JCE_FOLDER=UnlimitedJCEPolicyJDK$JDK_VERSION 12 | ENV JDK_FOLDER=jdk1.$JDK_VERSION.0_$JDK_UPDATE 13 | ENV JDK_VERSION_UPDATE=$JDK_VERSION'u'$JDK_UPDATE 14 | ENV JDK_VERSION_UPDATE_BUILD=$JDK_VERSION_UPDATE'-'$JDK_BUILD 15 | ENV JDK_VERSION_UPDATE_DISTRO_ARCH=$JDK_VERSION_UPDATE'-'$JDK_DISTRO_ARCH 16 | 17 | ENV JAVA_HOME=/opt/java 18 | ENV JRE_SECURITY_FOLDER=$JAVA_HOME/jre/lib/security 19 | ENV SSL_TRUSTED_CERTS_FOLDER=/opt/ssl/trusted 20 | 21 | # Change to tmp folder 22 | WORKDIR /tmp 23 | 24 | # Download and extract jdk to opt folder 25 | RUN wget --no-check-certificate https://github.com/frekele/oracle-java/releases/download/${JDK_VERSION_UPDATE_BUILD}/jdk-${JDK_VERSION_UPDATE_DISTRO_ARCH}.tar.gz \ 26 | && wget --no-check-certificate https://github.com/frekele/oracle-java/releases/download/${JDK_VERSION_UPDATE_BUILD}/jdk-${JDK_VERSION_UPDATE_DISTRO_ARCH}.tar.gz.md5 \ 27 | && echo "$(cat jdk-${JDK_VERSION_UPDATE_DISTRO_ARCH}.tar.gz.md5) jdk-${JDK_VERSION_UPDATE_DISTRO_ARCH}.tar.gz" | md5sum -c \ 28 | && tar -zvxf jdk-${JDK_VERSION_UPDATE_DISTRO_ARCH}.tar.gz -C /opt \ 29 | && ln -s /opt/${JDK_FOLDER} /opt/java \ 30 | && rm -f jdk-${JDK_VERSION_UPDATE_DISTRO_ARCH}.tar.gz \ 31 | && rm -f jdk-${JDK_VERSION_UPDATE_DISTRO_ARCH}.tar.gz.md5 32 | 33 | # Download zip file with java cryptography extension and unzip to jre security folder 34 | RUN wget --no-check-certificate https://github.com/frekele/oracle-java/releases/download/oracle_jce${JDK_VERSION}/jce_policy-${JDK_VERSION}.zip \ 35 | && unzip jce_policy-${JDK_VERSION}.zip \ 36 | && cp ${JCE_FOLDER}/*.jar ${JRE_SECURITY_FOLDER} \ 37 | && rm -f jce_policy-${JDK_VERSION}.zip \ 38 | && rm -rf ${JCE_FOLDER} 39 | 40 | # Add executables to path 41 | RUN update-alternatives --install "/usr/bin/java" "java" "/opt/java/bin/java" 1 && \ 42 | update-alternatives --set "java" "/opt/java/bin/java" && \ 43 | update-alternatives --install "/usr/bin/javac" "javac" "/opt/java/bin/javac" 1 && \ 44 | update-alternatives --set "javac" "/opt/java/bin/javac" && \ 45 | update-alternatives --install "/usr/bin/keytool" "keytool" "/opt/java/bin/keytool" 1 && \ 46 | update-alternatives --set "keytool" "/opt/java/bin/keytool" 47 | 48 | # Create trusted ssl certs folder 49 | RUN mkdir -p $SSL_TRUSTED_CERTS_FOLDER 50 | 51 | # Mark as volume 52 | VOLUME $SSL_TRUSTED_CERTS_FOLDER 53 | 54 | # Add the files 55 | ADD rootfs / 56 | 57 | # Change to root folder 58 | WORKDIR /root 59 | 60 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2016-2019 @frekele 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /ORACLE_LICENSE: -------------------------------------------------------------------------------- 1 | Oracle Binary Code License Agreement for the Java SE Platform Products and JavaFX 2 | 3 | ORACLE AMERICA, INC. ("ORACLE"), FOR AND ON BEHALF OF ITSELF AND ITS SUBSIDIARIES AND AFFILIATES UNDER COMMON CONTROL, IS WILLING TO LICENSE THE SOFTWARE TO YOU ONLY UPON THE CONDITION THAT YOU ACCEPT ALL OF THE TERMS CONTAINED IN THIS BINARY CODE LICENSE AGREEMENT AND SUPPLEMENTAL LICENSE TERMS (COLLECTIVELY "AGREEMENT"). PLEASE READ THE AGREEMENT CAREFULLY. BY SELECTING THE "ACCEPT LICENSE AGREEMENT" (OR THE EQUIVALENT) BUTTON AND/OR BY USING THE SOFTWARE YOU ACKNOWLEDGE THAT YOU HAVE READ THE TERMS AND AGREE TO THEM. IF YOU ARE AGREEING TO THESE TERMS ON BEHALF OF A COMPANY OR OTHER LEGAL ENTITY, YOU REPRESENT THAT YOU HAVE THE LEGAL AUTHORITY TO BIND THE LEGAL ENTITY TO THESE TERMS. IF YOU DO NOT HAVE SUCH AUTHORITY, OR IF YOU DO NOT WISH TO BE BOUND BY THE TERMS, THEN SELECT THE "DECLINE LICENSE AGREEMENT" (OR THE EQUIVALENT) BUTTON AND YOU MUST NOT USE THE SOFTWARE ON THIS SITE OR ANY OTHER MEDIA ON WHICH THE SOFTWARE IS CONTAINED. 4 | 5 | 1. DEFINITIONS. "Software" means the software identified above in binary form that you selected for download, install or use (in the version You selected for download, install or use) from Oracle or its authorized licensees, any other machine readable materials (including, but not limited to, libraries, source files, header files, and data files), any updates or error corrections provided by Oracle, and any user manuals, programming guides and other documentation provided to you by Oracle under this Agreement. "General Purpose Desktop Computers and Servers" means computers, including desktop and laptop computers, or servers, used for general computing functions under end user control (such as but not specifically limited to email, general purpose Internet browsing, and office suite productivity tools). The use of Software in systems and solutions that provide dedicated functionality (other than as mentioned above) or designed for use in embedded or function-specific software applications, for example but not limited to: Software embedded in or bundled with industrial control systems, wireless mobile telephones, wireless handheld devices, kiosks, TV/STB, Blu-ray Disc devices, telematics and network control switching equipment, printers and storage management systems, and other related systems are excluded from this definition and not licensed under this Agreement. "Programs" means (a) Java technology applets and applications intended to run on the Java Platform, Standard Edition platform on Java-enabled General Purpose Desktop Computers and Servers; and (b) JavaFX technology applications intended to run on the JavaFX Runtime on JavaFX-enabled General Purpose Desktop Computers and Servers. “Commercial Features” means those features identified in Table 1-1 (Commercial Features In Java SE Product Editions) of the Java SE documentation accessible at http://www.oracle.com/technetwork/java/javase/documentation/index.html. “README File” means the README file for the Software accessible at http://www.oracle.com/technetwork/java/javase/documentation/index.html. 6 | 7 | 2. LICENSE TO USE. Subject to the terms and conditions of this Agreement including, but not limited to, the Java Technology Restrictions of the Supplemental License Terms, Oracle grants you a non-exclusive, non-transferable, limited license without license fees to reproduce and use internally the Software complete and unmodified for the sole purpose of running Programs. THE LICENSE SET FORTH IN THIS SECTION 2 DOES NOT EXTEND TO THE COMMERCIAL FEATURES. YOUR RIGHTS AND OBLIGATIONS RELATED TO THE COMMERCIAL FEATURES ARE AS SET FORTH IN THE SUPPLEMENTAL TERMS ALONG WITH ADDITIONAL LICENSES FOR DEVELOPERS AND PUBLISHERS. 8 | 9 | 3. RESTRICTIONS. Software is copyrighted. Title to Software and all associated intellectual property rights is retained by Oracle and/or its licensors. Unless enforcement is prohibited by applicable law, you may not modify, decompile, or reverse engineer Software. You acknowledge that the Software is developed for general use in a variety of information management applications; it is not developed or intended for use in any inherently dangerous applications, including applications that may create a risk of personal injury. If you use the Software in dangerous applications, then you shall be responsible to take all appropriate fail-safe, backup, redundancy, and other measures to ensure its safe use. Oracle disclaims any express or implied warranty of fitness for such uses. No right, title or interest in or to any trademark, service mark, logo or trade name of Oracle or its licensors is granted under this Agreement. Additional restrictions for developers and/or publishers licenses are set forth in the Supplemental License Terms. 10 | 11 | 4. DISCLAIMER OF WARRANTY. THE SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. ORACLE FURTHER DISCLAIMS ALL WARRANTIES, EXPRESS AND IMPLIED, INCLUDING WITHOUT LIMITATION, ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT. 12 | 13 | 5. LIMITATION OF LIABILITY. IN NO EVENT SHALL ORACLE BE LIABLE FOR ANY INDIRECT, INCIDENTAL, SPECIAL, PUNITIVE OR CONSEQUENTIAL DAMAGES, OR DAMAGES FOR LOSS OF PROFITS, REVENUE, DATA OR DATA USE, INCURRED BY YOU OR ANY THIRD PARTY, WHETHER IN AN ACTION IN CONTRACT OR TORT, EVEN IF ORACLE HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. ORACLE'S ENTIRE LIABILITY FOR DAMAGES HEREUNDER SHALL IN NO EVENT EXCEED ONE THOUSAND DOLLARS (U.S. $1,000). 14 | 15 | 6. TERMINATION. This Agreement is effective until terminated. You may terminate this Agreement at any time by destroying all copies of Software. This Agreement will terminate immediately without notice from Oracle if you fail to comply with any provision of this Agreement. Either party may terminate this Agreement immediately should any Software become, or in either party's opinion be likely to become, the subject of a claim of infringement of any intellectual property right. Upon termination, you must destroy all copies of Software. 16 | 17 | 7. EXPORT REGULATIONS. You agree that U.S. export control laws and other applicable export and import laws govern your use of the Software, including technical data; additional information can be found on Oracle's Global Trade Compliance web site (http://www.oracle.com/us/products/export). You agree that neither the Software nor any direct product thereof will be exported, directly, or indirectly, in violation of these laws, or will be used for any purpose prohibited by these laws including, without limitation, nuclear, chemical, or biological weapons proliferation. 18 | 19 | 8. TRADEMARKS AND LOGOS. You acknowledge and agree as between you 20 | and Oracle that Oracle owns the ORACLE and JAVA trademarks and all ORACLE- and JAVA-related trademarks, service marks, logos and other brand 21 | designations ("Oracle Marks"), and you agree to comply with the Third 22 | Party Usage Guidelines for Oracle Trademarks currently located at 23 | http://www.oracle.com/us/legal/third-party-trademarks/index.html . Any use you make of the Oracle Marks inures to Oracle's benefit. 24 | 25 | 9. U.S. GOVERNMENT LICENSE RIGHTS. If Software is being acquired by or on behalf of the U.S. Government or by a U.S. Government prime contractor or subcontractor (at any tier), then the Government's rights in Software and accompanying documentation shall be only those set forth in this Agreement. 26 | 27 | 10. GOVERNING LAW. This agreement is governed by the substantive and procedural laws of California. You and Oracle agree to submit to the exclusive jurisdiction of, and venue in, the courts of San Francisco, or Santa Clara counties in California in any dispute arising out of or relating to this agreement. 28 | 29 | 11. SEVERABILITY. If any provision of this Agreement is held to be unenforceable, this Agreement will remain in effect with the provision omitted, unless omission would frustrate the intent of the parties, in which case this Agreement will immediately terminate. 30 | 31 | 12. INTEGRATION. This Agreement is the entire agreement between you and Oracle relating to its subject matter. It supersedes all prior or contemporaneous oral or written communications, proposals, representations and warranties and prevails over any conflicting or additional terms of any quote, order, acknowledgment, or other communication between the parties relating to its subject matter during the term of this Agreement. No modification of this Agreement will be binding, unless in writing and signed by an authorized representative of each party. 32 | 33 | SUPPLEMENTAL LICENSE TERMS 34 | 35 | These Supplemental License Terms add to or modify the terms of the Binary Code License Agreement. Capitalized terms not defined in these Supplemental Terms shall have the same meanings ascribed to them in the Binary Code License Agreement. These Supplemental Terms shall supersede any inconsistent or conflicting terms in the Binary Code License Agreement, or in any license contained within the Software. 36 | 37 | A. COMMERCIAL FEATURES. You may not use the Commercial Features for running Programs, Java applets or applications in your internal business operations or for any commercial or production purpose, or for any purpose other than as set forth in Sections B, C, D and E of these Supplemental Terms. If You want to use the Commercial Features for any purpose other than as permitted in this Agreement, You must obtain a separate license from Oracle. 38 | 39 | B. SOFTWARE INTERNAL USE FOR DEVELOPMENT LICENSE GRANT. Subject to the terms and conditions of this Agreement and restrictions and exceptions set forth in the README File incorporated herein by reference, including, but not limited to the Java Technology Restrictions of these Supplemental Terms, Oracle grants you a non-exclusive, non-transferable, limited license without fees to reproduce internally and use internally the Software complete and unmodified for the purpose of designing, developing, and testing your Programs. 40 | 41 | C. LICENSE TO DISTRIBUTE SOFTWARE. Subject to the terms and conditions of this Agreement and restrictions and exceptions set forth in the README File, including, but not limited to the Java Technology Restrictions and Limitations on Redistribution of these Supplemental Terms, Oracle grants you a non-exclusive, non-transferable, limited license without fees to reproduce and distribute the Software, provided that (i) you distribute the Software complete and unmodified and only bundled as part of, and for the sole purpose of running, your Programs, (ii) the Programs add significant and primary functionality to the Software, (iii) you do not distribute additional software intended to replace any component(s) of the Software, (iv) you do not remove or alter any proprietary legends or notices contained in the Software, (v) you only distribute the Software subject to a license agreement that: (a) is a complete, unmodified reproduction of this Agreement; or (b) protects Oracle's interests consistent with the terms contained in this Agreement and that includes the notice set forth in Section H, and (vi) you agree to defend and indemnify Oracle and its licensors from and against any damages, costs, liabilities, settlement amounts and/or expenses (including attorneys' fees) incurred in connection with any claim, lawsuit or action by any third party that arises or results from the use or distribution of any and all Programs and/or Software. The license set forth in this Section C does not extend to the Software identified in Section G. 42 | 43 | D. LICENSE TO DISTRIBUTE REDISTRIBUTABLES. Subject to the terms and conditions of this Agreement and restrictions and exceptions set forth in the README File, including but not limited to the Java Technology Restrictions and Limitations on Redistribution of these Supplemental Terms, Oracle grants you a non-exclusive, non-transferable, limited license without fees to reproduce and distribute those files specifically identified as redistributable in the README File ("Redistributables") provided that: (i) you distribute the Redistributables complete and unmodified, and only bundled as part of Programs, (ii) the Programs add significant and primary functionality to the Redistributables, (iii) you do not distribute additional software intended to supersede any component(s) of the Redistributables (unless otherwise specified in the applicable README File), (iv) you do not remove or alter any proprietary legends or notices contained in or on the Redistributables, (v) you only distribute the Redistributables pursuant to a license agreement that: (a) is a complete, unmodified reproduction of this Agreement; or (b) protects Oracle's interests consistent with the terms contained in the Agreement and includes the notice set forth in Section H, (vi) you agree to defend and indemnify Oracle and its licensors from and against any damages, costs, liabilities, settlement amounts and/or expenses (including attorneys' fees) incurred in connection with any claim, lawsuit or action by any third party that arises or results from the use or distribution of any and all Programs and/or Software. The license set forth in this Section D does not extend to the Software identified in Section G. 44 | 45 | E. DISTRIBUTION BY PUBLISHERS. This section pertains to your distribution of the JavaTM SE Development Kit Software (“JDK”) with your printed book or magazine (as those terms are commonly used in the industry) relating to Java technology ("Publication"). Subject to and conditioned upon your compliance with the restrictions and obligations contained in the Agreement, Oracle hereby grants to you a non-exclusive, nontransferable limited right to reproduce complete and unmodified copies of the JDK on electronic media (the "Media") for the sole purpose of inclusion and distribution with your Publication(s), subject to the following terms: (i) You may not distribute the JDK on a stand-alone basis; it must be distributed with your Publication(s); (ii) You are responsible for downloading the JDK from the applicable Oracle web site; (iii) You must refer to the JDK as JavaTM SE Development Kit; (iv) The JDK must be reproduced in its entirety and without any modification whatsoever (including with respect to all proprietary notices) and distributed with your Publication subject to a license agreement that is a complete, unmodified reproduction of this Agreement; (v) The Media label shall include the following information: “Copyright [YEAR], Oracle America, Inc. All rights reserved. Use is subject to license terms. ORACLE and JAVA trademarks and all ORACLE- and JAVA-related trademarks, service marks, logos and other brand designations are trademarks or registered trademarks of Oracle in the U.S. and other countries.” [YEAR] is the year of Oracle's release of the Software; the year information can typically be found in the Software’s “About” box or screen. This information must be placed on the Media label in such a manner as to only apply to the JDK; (vi) You must clearly identify the JDK as Oracle's product on the Media holder or Media label, and you may not state or imply that Oracle is responsible for any third-party software contained on the Media; (vii) You may not include any third party software on the Media which is intended to be a replacement or substitute for the JDK; (viii) You agree to defend and indemnify Oracle and its licensors from and against any damages, costs, liabilities, settlement amounts and/or expenses (including attorneys' fees) incurred in connection with any claim, lawsuit or action by any third party that arises or results from the use or distribution of the JDK and/or the Publication; ; and (ix) You shall provide Oracle with a written notice for each Publication; such notice shall include the following information: (1) title of Publication, (2) author(s), (3) date of Publication, and (4) ISBN or ISSN numbers. Such notice shall be sent to Oracle America, Inc., 500 Oracle Parkway, Redwood Shores, California 94065 U.S.A , Attention: General Counsel. 46 | 47 | F. JAVA TECHNOLOGY RESTRICTIONS. You may not create, modify, or change the behavior of, or authorize your licensees to create, modify, or change the behavior of, classes, interfaces, or subpackages that are in any way identified as "java", "javax", "sun", “oracle” or similar convention as specified by Oracle in any naming convention designation. 48 | 49 | G. LIMITATIONS ON REDISTRIBUTION. You may not redistribute or otherwise transfer patches, bug fixes or updates made available by Oracle through Oracle Premier Support, including those made available under Oracle's Java SE Support program. 50 | 51 | H. COMMERCIAL FEATURES NOTICE. For purpose of complying with Supplemental Term Section C.(v)(b) and D.(v)(b), your license agreement shall include the following notice, where the notice is displayed in a manner that anyone using the Software will see the notice: 52 | 53 | Use of the Commercial Features for any commercial or production purpose requires a separate license from Oracle. “Commercial Features” means those features identified Table 1-1 (Commercial Features In Java SE Product Editions) of the Java SE documentation accessible at http://www.oracle.com/technetwork/java/javase/documentation/index.html 54 | 55 | 56 | 57 | I. SOURCE CODE. Software may contain source code that, unless expressly licensed for other purposes, is provided solely for reference purposes pursuant to the terms of this Agreement. Source code may not be redistributed unless expressly provided for in this Agreement. 58 | 59 | J. THIRD PARTY CODE. Additional copyright notices and license terms applicable to portions of the Software are set forth in the THIRDPARTYLICENSEREADME file accessible at http://www.oracle.com/technetwork/java/javase/documentation/index.html. In addition to any terms and conditions of any third party opensource/freeware license identified in the THIRDPARTYLICENSEREADME file, the disclaimer of warranty and limitation of liability provisions in paragraphs 4 and 5 of the Binary Code License Agreement shall apply to all Software in this distribution. 60 | 61 | K. TERMINATION FOR INFRINGEMENT. Either party may terminate this Agreement immediately should any Software become, or in either party's opinion be likely to become, the subject of a claim of infringement of any intellectual property right. 62 | 63 | L. INSTALLATION AND AUTO-UPDATE. The Software's installation and auto-update processes transmit a limited amount of data to Oracle (or its service provider) about those specific processes to help Oracle understand and optimize them. Oracle does not associate the data with personally identifiable information. You can find more information about the data Oracle collects as a result of your Software download at http://www.oracle.com/technetwork/java/javase/documentation/index.html. 64 | 65 | For inquiries please contact: Oracle America, Inc., 500 Oracle Parkway, 66 | 67 | Redwood Shores, California 94065, USA. 68 | 69 | Last updated 02 April 2013 70 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Oracle Java (s6-overlay) Docker Image 2 | 3 | [![Docker Pulls](https://img.shields.io/docker/pulls/frekele/java.svg)](https://hub.docker.com/r/frekele/java/) 4 | [![Docker Stars](https://img.shields.io/docker/stars/frekele/java.svg)](https://hub.docker.com/r/frekele/java/) 5 | [![GitHub issues](https://img.shields.io/github/issues/frekele/docker-java.svg)](https://github.com/frekele/docker-java/issues) 6 | [![GitHub forks](https://img.shields.io/github/forks/frekele/docker-java.svg)](https://github.com/frekele/docker-java/network) 7 | [![GitHub stars](https://img.shields.io/github/stars/frekele/docker-java.svg)](https://github.com/frekele/docker-java/stargazers) 8 | [![Website](https://img.shields.io/website-up-down-green-red/http/shields.io.svg)](https://frekele.github.io/docker-java/) 9 | 10 | [![Java Image][JavaImage]][JavaWebsite] 11 | 12 | | [Website] | [GitHub] | [DockerHub] | 13 | 14 | 15 | #### Oracle JDK Branches: 16 | 17 | | Branch | Type | From | Tag Names | 18 | | --------------------- | ----- | ------------------------ | -------------------------------------------------- | 19 | | [jdk8u212] - latest | PSU | frekele/debian:stable | jdk8u212, 8u212, jdk8-psu, 8-psu, jdk8, 8, latest | 20 | | [jdk8u211] | CPU | frekele/debian:stable | jdk8u211, 8u211, jdk8-cpu, 8-cpu | 21 | | [jdk8u202] | PSU | frekele/debian:stable | jdk8u202, 8u202 | 22 | | [jdk8u201] | CPU | frekele/debian:stable | jdk8u201, 8u201 | 23 | | [jdk8u181] | CPU | frekele/debian:stable | jdk8u181, 8u181 | 24 | | [jdk8u172] | PSU | frekele/debian:stable | jdk8u172, 8u172 | 25 | | [jdk8u171] | CPU | frekele/debian:stable | jdk8u171, 8u171 | 26 | | [jdk8u162] | PSU | frekele/debian:stable | jdk8u162, 8u162 | 27 | | [jdk8u161] | CPU | frekele/debian:stable | jdk8u161, 8u161 | 28 | | [jdk8u152] | PSU | frekele/debian:stable | jdk8u152, 8u152 | 29 | | [jdk8u151] | CPU | frekele/debian:stable | jdk8u151, 8u151 | 30 | | [jdk8u144] | PSU | frekele/debian:stable | jdk8u144, 8u144 | 31 | | [jdk8u141] | CPU | frekele/debian:stable | jdk8u141, 8u141 | 32 | | [jdk8u131] | CPU | frekele/debian:stable | jdk8u131, 8u131 | 33 | | [jdk8u121] | CPU | frekele/debian:stable | jdk8u121, 8u121 | 34 | | [jdk8u112] | PSU | frekele/debian:stable | jdk8u112, 8u112 | 35 | | [jdk8u111] | CPU | frekele/debian:stable | jdk8u111, 8u111 | 36 | | [jdk8u102] | PSU | frekele/debian:stable | jdk8u102, 8u102 | 37 | | [jdk8u101] | CPU | frekele/debian:stable | jdk8u101, 8u101 | 38 | | [jdk8u92] | PSU | frekele/debian:stable | jdk8u92, 8u92 | 39 | | [jdk8u91] | CPU | frekele/debian:stable | jdk8u91, 8u91 | 40 | | [jdk8u77] | CPU | frekele/debian:stable | jdk8u77, 8u77 | 41 | | [jdk8u74] | PSU | frekele/debian:stable | jdk8u74, 8u74 | 42 | | [jdk8u73] | CPU | frekele/debian:stable | jdk8u73, 8u73 | 43 | | [jdk8u72] | PSU | frekele/debian:stable | jdk8u72, 8u72 | 44 | | [jdk8u71] | CPU | frekele/debian:stable | jdk8u71, 8u71 | 45 | | [jdk8u66] | PSU | frekele/debian:stable | jdk8u66, 8u66 | 46 | | [jdk8u65] | CPU | frekele/debian:stable | jdk8u65, 8u65 | 47 | | [jdk8u60] | PSU | frekele/debian:stable | jdk8u60, 8u60 | 48 | | [jdk8u51] | CPU | frekele/debian:stable | jdk8u51, 8u51 | 49 | | [jdk7u80] | PSU | frekele/debian:stable | jdk7u80, 7u80, jdk7-psu, 7-psu, jdk7, 7 | 50 | | [jdk7u79] | CPU | frekele/debian:stable | jdk7u79, 7u79, jdk7-cpu, 7-cpu | 51 | | [jdk7u76] | PSU | frekele/debian:stable | jdk7u76, 7u76 | 52 | | [jdk7u75] | CPU | frekele/debian:stable | jdk7u75, 7u75 | 53 | | [jdk7u72] | PSU | frekele/debian:stable | jdk7u72, 7u72 | 54 | | [jdk7u71] | CPU | frekele/debian:stable | jdk7u71, 7u71 | 55 | | [master] | * | frekele/debian:stable | jdk8dev | 56 | 57 | - [Oracle JDK 8 Update Release Notes] 58 | - [Oracle JDK 7 Update Release Notes] 59 | 60 | # [Java CPU and PSU Releases Explained] 61 | 62 | ## Which Java version should I choose: the CPU or the PSU? 63 | Oracle strongly recommends that all Java SE users upgrade to the latest CPU release available for a release family. Most users should choose the CPU release. 64 | 65 | *Users should only use the corresponding PSU release if they are being impacted by one of the additional bugs fixed in that version as noted in the release notes.* 66 | 67 | The subsequent CPU release will contain all of the fixes from the current PSU. For this reason, organizations should test the current PSU in their environment in anticipation of these fixes being included in the next CPU. 68 | 69 | ## What is the difference between a Java CPU and PSU release? 70 | Java SE Critical Patch Updates (CPU) contain fixes to security vulnerabilities and critical bug fixes. Oracle strongly recommends that all Java SE users upgrade to the latest CPU releases as they are made available. Java SE CPU releases are odd numbered versions (i.e. 7u71, 7u65 – see more on Java SE version numbering schemes here). 71 | 72 | Java SE Patch Set Updates (PSU) contain all of fixes in the corresponding CPU, as well as additional non-critical fixes. Java PSU releases should only be used if you are being impacted by one of the additional bugs fixed in that version. The release notes call out the additional fixes available in Java SE PSU releases. 73 | 74 | ## Is the cadence of CPU releases changing? 75 | As before, Java SE CPU releases are scheduled for release on the Tuesday closest to the 17th day of January, April, July and October under the normal Oracle Critical Patch Update schedule. 76 | 77 | Starting in October 2014 with the release of Java SE 7u71 (CPU) and Java SE 7u72 (PSU), Oracle plans to additionally release a corresponding PSU release along with each CPU release for Java SE 7. PSU releases provide organizations and developers with access to non-critical fixes in addition to the critical fixes contained in the corresponding CPU. 78 | 79 | 80 | # Dockerfile extends From: 81 | - https://github.com/frekele/docker-debian 82 | - https://hub.docker.com/r/frekele/debian 83 | 84 | ## Relations: 85 | - https://github.com/just-containers/s6-overlay 86 | - https://github.com/frekele/oracle-java 87 | 88 | 89 | ## Run Java container with the trusted SSL certificates: 90 | ```` 91 | docker run --rm -v /mnt/vol-ssl/trusted:/opt/ssl/trusted --name java frekele/java 92 | ```` 93 | 94 | 95 | ### License: 96 | See [ORACLE LICENSE] 97 | 98 | frekele/docker-java is **licensed** under the **[MIT License]**. The terms of the license are as follows: 99 | 100 | MIT License 101 | 102 | Copyright (c) 2016-2019 @frekele 103 | 104 | Permission is hereby granted, free of charge, to any person obtaining a copy 105 | of this software and associated documentation files (the "Software"), to deal 106 | in the Software without restriction, including without limitation the rights 107 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 108 | copies of the Software, and to permit persons to whom the Software is 109 | furnished to do so, subject to the following conditions: 110 | 111 | The above copyright notice and this permission notice shall be included in all 112 | copies or substantial portions of the Software. 113 | 114 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 115 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 116 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 117 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 118 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 119 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 120 | SOFTWARE. 121 | 122 | 123 | [JavaImage]: https://raw.githubusercontent.com/frekele/docker-java/master/java-logo.png 124 | [JavaWebsite]: http://www.oracle.com/technetwork/pt/java/javase/downloads/index.html 125 | [Website]: https://frekele.github.io/docker-java 126 | [GitHub]: https://github.com/frekele/docker-java 127 | [DockerHub]: https://hub.docker.com/r/frekele/java 128 | [ORACLE LICENSE]: http://www.oracle.com/technetwork/java/javase/terms/license/index.html 129 | [MIT LICENSE]: https://github.com/frekele/docker-java/blob/master/LICENSE 130 | [Java CPU and PSU Releases Explained]: http://www.oracle.com/technetwork/java/javase/cpu-psu-explained-2331472.html 131 | [Oracle JDK 8 Update Release Notes]: http://www.oracle.com/technetwork/java/javase/documentation/8u-relnotes-2225394.html 132 | [Oracle JDK 7 Update Release Notes]: http://www.oracle.com/technetwork/java/javase/7u-relnotes-515228.html 133 | 134 | [jdk8u212]: https://github.com/frekele/docker-java/blob/jdk8u212/Dockerfile 135 | [jdk8u211]: https://github.com/frekele/docker-java/blob/jdk8u211/Dockerfile 136 | [jdk8u202]: https://github.com/frekele/docker-java/blob/jdk8u202/Dockerfile 137 | [jdk8u201]: https://github.com/frekele/docker-java/blob/jdk8u201/Dockerfile 138 | [jdk8u181]: https://github.com/frekele/docker-java/blob/jdk8u181/Dockerfile 139 | [jdk8u172]: https://github.com/frekele/docker-java/blob/jdk8u172/Dockerfile 140 | [jdk8u171]: https://github.com/frekele/docker-java/blob/jdk8u171/Dockerfile 141 | [jdk8u162]: https://github.com/frekele/docker-java/blob/jdk8u162/Dockerfile 142 | [jdk8u161]: https://github.com/frekele/docker-java/blob/jdk8u161/Dockerfile 143 | [jdk8u152]: https://github.com/frekele/docker-java/blob/jdk8u152/Dockerfile 144 | [jdk8u151]: https://github.com/frekele/docker-java/blob/jdk8u151/Dockerfile 145 | [jdk8u144]: https://github.com/frekele/docker-java/blob/jdk8u144/Dockerfile 146 | [jdk8u141]: https://github.com/frekele/docker-java/blob/jdk8u141/Dockerfile 147 | [jdk8u131]: https://github.com/frekele/docker-java/blob/jdk8u131/Dockerfile 148 | [jdk8u121]: https://github.com/frekele/docker-java/blob/jdk8u121/Dockerfile 149 | [jdk8u112]: https://github.com/frekele/docker-java/blob/jdk8u112/Dockerfile 150 | [jdk8u111]: https://github.com/frekele/docker-java/blob/jdk8u111/Dockerfile 151 | [jdk8u102]: https://github.com/frekele/docker-java/blob/jdk8u102/Dockerfile 152 | [jdk8u101]: https://github.com/frekele/docker-java/blob/jdk8u101/Dockerfile 153 | [jdk8u92]: https://github.com/frekele/docker-java/blob/jdk8u92/Dockerfile 154 | [jdk8u91]: https://github.com/frekele/docker-java/blob/jdk8u91/Dockerfile 155 | [jdk8u77]: https://github.com/frekele/docker-java/blob/jdk8u77/Dockerfile 156 | [jdk8u74]: https://github.com/frekele/docker-java/blob/jdk8u74/Dockerfile 157 | [jdk8u73]: https://github.com/frekele/docker-java/blob/jdk8u73/Dockerfile 158 | [jdk8u72]: https://github.com/frekele/docker-java/blob/jdk8u72/Dockerfile 159 | [jdk8u71]: https://github.com/frekele/docker-java/blob/jdk8u71/Dockerfile 160 | [jdk8u66]: https://github.com/frekele/docker-java/blob/jdk8u66/Dockerfile 161 | [jdk8u65]: https://github.com/frekele/docker-java/blob/jdk8u65/Dockerfile 162 | [jdk8u60]: https://github.com/frekele/docker-java/blob/jdk8u60/Dockerfile 163 | [jdk8u51]: https://github.com/frekele/docker-java/blob/jdk8u51/Dockerfile 164 | [jdk7u80]: https://github.com/frekele/docker-java/blob/jdk7u80/Dockerfile 165 | [jdk7u79]: https://github.com/frekele/docker-java/blob/jdk7u79/Dockerfile 166 | [jdk7u76]: https://github.com/frekele/docker-java/blob/jdk7u76/Dockerfile 167 | [jdk7u75]: https://github.com/frekele/docker-java/blob/jdk7u75/Dockerfile 168 | [jdk7u72]: https://github.com/frekele/docker-java/blob/jdk7u72/Dockerfile 169 | [jdk7u71]: https://github.com/frekele/docker-java/blob/jdk7u71/Dockerfile 170 | [master]: https://github.com/frekele/docker-java/blob/master/Dockerfile 171 | -------------------------------------------------------------------------------- /_config.yml: -------------------------------------------------------------------------------- 1 | title: Java Oracle - Docker Image 2 | description: Java Oracle (s6-overlay) Docker Image - Extends frekele/debian. 3 | google_analytics: 4 | show_downloads: true 5 | 6 | markdown: redcarpet 7 | redcarpet: 8 | extensions: ["no_intra_emphasis", "fenced_code_blocks", "autolink", "tables", "strikethrough", "superscript", "with_toc_data"] 9 | 10 | theme: jekyll-theme-cayman 11 | 12 | gems: 13 | - jekyll-mentions 14 | -------------------------------------------------------------------------------- /build: -------------------------------------------------------------------------------- 1 | docker build -t frekele/java . 2 | -------------------------------------------------------------------------------- /docker-java.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /java-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frekele/docker-java/f08dfc2e6c117ed26900d5641de743b8e5cc515f/java-logo.png -------------------------------------------------------------------------------- /rootfs/etc/cont-finish.d/.gitignore: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /rootfs/etc/cont-init.d/.gitignore: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /rootfs/etc/cont-init.d/40-import-trusted-ssl-certs.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/with-contenv bash 2 | 3 | # import trusted ssl certs into JRE default keystore 4 | if [ -d $SSL_TRUSTED_CERTS_FOLDER ] 5 | then 6 | find $SSL_TRUSTED_CERTS_FOLDER -type f | while read SSL_CERT 7 | do 8 | ALIAS=$(basename $SSL_CERT) 9 | KEYSTORE=${JRE_SECURITY_FOLDER}/cacerts 10 | 11 | # ignore any keystore import errors 12 | keytool -noprompt -storepass changeit -keystore $KEYSTORE -import -file $SSL_CERT -alias $ALIAS || true 13 | done 14 | fi 15 | -------------------------------------------------------------------------------- /rootfs/etc/fix-attrs.d/.gitignore: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /rootfs/etc/services.d/.gitignore: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /run: -------------------------------------------------------------------------------- 1 | docker run --rm --name java frekele/java 2 | --------------------------------------------------------------------------------