├── .github └── workflows │ ├── build-gh-pages.yml │ ├── nightly-snapshot.yml │ ├── publish-container-images.yml │ ├── publish-gardenlinux-imageOnce-DoNotUse.yml │ └── publish-gardenlinux-images.yml ├── .gitignore ├── LICENSE ├── LICENSES └── Apache-2.0.txt ├── README.md ├── REUSE.toml ├── dockerfiles ├── 11 │ ├── README.md │ ├── distroless │ │ └── debian11 │ │ │ ├── debug-nonroot │ │ │ └── Dockerfile │ │ │ ├── debug │ │ │ └── Dockerfile │ │ │ ├── latest │ │ │ └── Dockerfile │ │ │ └── nonroot │ │ │ └── Dockerfile │ ├── gardenlinux │ │ └── 1592 │ │ │ ├── jdk-headless │ │ │ └── Dockerfile │ │ │ ├── jdk │ │ │ └── Dockerfile │ │ │ ├── jre-headless │ │ │ └── Dockerfile │ │ │ └── jre │ │ │ └── Dockerfile │ └── ubuntu │ │ ├── 20_04 │ │ ├── jdk-headless │ │ │ └── Dockerfile │ │ ├── jdk │ │ │ └── Dockerfile │ │ ├── jre-headless │ │ │ └── Dockerfile │ │ └── jre │ │ │ └── Dockerfile │ │ ├── 22_04 │ │ ├── jdk-headless │ │ │ └── Dockerfile │ │ ├── jdk │ │ │ └── Dockerfile │ │ ├── jre-headless │ │ │ └── Dockerfile │ │ └── jre │ │ │ └── Dockerfile │ │ └── 24_04 │ │ ├── jdk-headless │ │ └── Dockerfile │ │ ├── jdk │ │ └── Dockerfile │ │ ├── jre-headless │ │ └── Dockerfile │ │ └── jre │ │ └── Dockerfile ├── 17 │ ├── README.md │ ├── alpine │ │ └── 3_21 │ │ │ ├── jdk │ │ │ └── Dockerfile │ │ │ └── jre │ │ │ └── Dockerfile │ ├── distroless │ │ └── debian11 │ │ │ ├── debug-nonroot │ │ │ └── Dockerfile │ │ │ ├── debug │ │ │ └── Dockerfile │ │ │ ├── latest │ │ │ └── Dockerfile │ │ │ └── nonroot │ │ │ └── Dockerfile │ ├── gardenlinux │ │ └── 1592 │ │ │ ├── jdk-headless │ │ │ └── Dockerfile │ │ │ ├── jdk │ │ │ └── Dockerfile │ │ │ ├── jre-headless │ │ │ └── Dockerfile │ │ │ └── jre │ │ │ └── Dockerfile │ └── ubuntu │ │ ├── 20_04 │ │ ├── jdk-headless │ │ │ └── Dockerfile │ │ ├── jdk │ │ │ └── Dockerfile │ │ ├── jre-headless │ │ │ └── Dockerfile │ │ └── jre │ │ │ └── Dockerfile │ │ ├── 22_04 │ │ ├── jdk-headless │ │ │ └── Dockerfile │ │ ├── jdk │ │ │ └── Dockerfile │ │ ├── jre-headless │ │ │ └── Dockerfile │ │ └── jre │ │ │ └── Dockerfile │ │ └── 24_04 │ │ ├── jdk-headless │ │ └── Dockerfile │ │ ├── jdk │ │ └── Dockerfile │ │ ├── jre-headless │ │ └── Dockerfile │ │ └── jre │ │ └── Dockerfile ├── 21 │ ├── README.md │ ├── alpine │ │ └── 3_21 │ │ │ ├── jdk │ │ │ └── Dockerfile │ │ │ └── jre │ │ │ └── Dockerfile │ ├── distroless │ │ └── debian11 │ │ │ ├── debug-nonroot │ │ │ └── Dockerfile │ │ │ ├── debug │ │ │ └── Dockerfile │ │ │ ├── latest │ │ │ └── Dockerfile │ │ │ └── nonroot │ │ │ └── Dockerfile │ ├── gardenlinux │ │ └── 1592 │ │ │ ├── jdk-headless │ │ │ └── Dockerfile │ │ │ ├── jdk │ │ │ └── Dockerfile │ │ │ ├── jre-headless │ │ │ └── Dockerfile │ │ │ └── jre │ │ │ └── Dockerfile │ └── ubuntu │ │ ├── 20_04 │ │ ├── jdk-headless │ │ │ └── Dockerfile │ │ ├── jdk │ │ │ └── Dockerfile │ │ ├── jre-headless │ │ │ └── Dockerfile │ │ └── jre │ │ │ └── Dockerfile │ │ ├── 22_04 │ │ ├── jdk-headless │ │ │ └── Dockerfile │ │ ├── jdk │ │ │ └── Dockerfile │ │ ├── jre-headless │ │ │ └── Dockerfile │ │ └── jre │ │ │ └── Dockerfile │ │ └── 24_04 │ │ ├── jdk-headless │ │ └── Dockerfile │ │ ├── jdk │ │ └── Dockerfile │ │ ├── jre-headless │ │ └── Dockerfile │ │ └── jre │ │ └── Dockerfile └── 24 │ ├── README.md │ ├── alpine │ └── 3_21 │ │ ├── jdk │ │ └── Dockerfile │ │ └── jre │ │ └── Dockerfile │ ├── distroless │ └── debian11 │ │ ├── debug-nonroot │ │ └── Dockerfile │ │ ├── debug │ │ └── Dockerfile │ │ ├── latest │ │ └── Dockerfile │ │ └── nonroot │ │ └── Dockerfile │ ├── gardenlinux │ └── 1592 │ │ ├── jdk-headless │ │ └── Dockerfile │ │ ├── jdk │ │ └── Dockerfile │ │ ├── jre-headless │ │ └── Dockerfile │ │ └── jre │ │ └── Dockerfile │ └── ubuntu │ ├── 20_04 │ ├── jdk-headless │ │ └── Dockerfile │ ├── jdk │ │ └── Dockerfile │ ├── jre-headless │ │ └── Dockerfile │ └── jre │ │ └── Dockerfile │ ├── 22_04 │ ├── jdk-headless │ │ └── Dockerfile │ ├── jdk │ │ └── Dockerfile │ ├── jre-headless │ │ └── Dockerfile │ └── jre │ │ └── Dockerfile │ └── 24_04 │ ├── jdk-headless │ └── Dockerfile │ ├── jdk │ └── Dockerfile │ ├── jre-headless │ └── Dockerfile │ └── jre │ └── Dockerfile └── logos ├── SAPJVM_submarine.xcf ├── logo-xmas.png ├── logo.png ├── logo_small.png └── logo_title.png /.github/workflows/build-gh-pages.yml: -------------------------------------------------------------------------------- 1 | # Workflow for building the sapmachine.io site and deploying it to GitHub Pages 2 | name: Build and deploy sapmachine.io page 3 | 4 | on: 5 | # Allows to run this workflow manually from the Actions tab 6 | workflow_dispatch: 7 | 8 | # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages 9 | permissions: 10 | contents: read 11 | pages: write 12 | id-token: write 13 | 14 | # Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. 15 | # However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. 16 | concurrency: 17 | group: "pages" 18 | cancel-in-progress: false 19 | 20 | jobs: 21 | # Trigger (build on SAP/SapMachine) job 22 | trigger: 23 | runs-on: ubuntu-latest 24 | steps: 25 | - name: Trigger build in SAP/SapMachine repo 26 | uses: peter-evans/repository-dispatch@v3 27 | with: 28 | token: '${{ secrets.SAPMACHINE_TRIGGER_TOKEN }}' 29 | repository: SAP/SapMachine 30 | event-type: gh-page-build 31 | 32 | # Build job 33 | build: 34 | runs-on: ubuntu-latest 35 | steps: 36 | - name: Checkout 37 | uses: actions/checkout@v4 38 | with: 39 | ref: 'gh-pages' 40 | - name: Setup Pages 41 | uses: actions/configure-pages@v5 42 | - name: Build with Jekyll 43 | uses: actions/jekyll-build-pages@v1 44 | with: 45 | source: ./ 46 | destination: ./_site 47 | - name: Upload artifact 48 | uses: actions/upload-pages-artifact@v3 49 | 50 | # Deployment job 51 | deploy: 52 | environment: 53 | name: github-pages 54 | url: ${{ steps.deployment.outputs.page_url }} 55 | runs-on: ubuntu-latest 56 | needs: build 57 | steps: 58 | - name: Deploy to GitHub Pages 59 | id: deployment 60 | uses: actions/deploy-pages@v4 61 | -------------------------------------------------------------------------------- /.github/workflows/nightly-snapshot.yml: -------------------------------------------------------------------------------- 1 | name: Nightly Snapshot of Release Download Statistics 2 | 3 | on: 4 | schedule: 5 | - cron: '0 0 * * *' # Runs every day at 12:00 AM (UTC) 6 | workflow_dispatch: # Allows manual triggering 7 | 8 | permissions: 9 | contents: write # Ensure write permissions 10 | 11 | jobs: 12 | collect-stats: 13 | runs-on: ubuntu-latest 14 | 15 | steps: 16 | # 1. Checkout the repository 17 | - name: Checkout repository 18 | uses: actions/checkout@v3 19 | with: 20 | token: ${{ secrets.GITHUB_TOKEN }} 21 | fetch-depth: 0 # Fetch full history to ensure the branch is fully available 22 | 23 | # 2. Set up Python environment 24 | - name: Set up Python 25 | uses: actions/setup-python@v4 26 | with: 27 | python-version: '3.x' 28 | 29 | # 3. Install required Python dependencies 30 | - name: Install dependencies 31 | run: | 32 | pip install requests pandas 33 | 34 | # 4. Create stats directory (if it doesn't exist) 35 | - name: Create stats directory 36 | run: mkdir -p stats 37 | 38 | # 5. Checkout the release_stats branch 39 | - name: Checkout release_stats branch 40 | run: | 41 | git checkout release_stats || git checkout -b release_stats 42 | 43 | # 6. Run the Python script to fetch and append download stats 44 | - name: Run Python script to fetch and append download stats 45 | run: python .github/scripts/fetch_and_append_stats.py 46 | 47 | # 7. Configure Git for committing 48 | - name: Configure Git 49 | run: | 50 | git config --local user.email "sapmachine@sap.com" 51 | git config --local user.name "SapMachine Github Actions Bot" 52 | 53 | # 8. Commit and push changes to the "release_stats" branch 54 | - name: Commit and push changes 55 | run: | 56 | git add stats/release_stats*.csv 57 | git commit -m "Add nightly snapshot for $(date +'%Y-%m-%d %H:%M:%S')" || echo "No changes to commit" 58 | git push origin release_stats || { echo "Push failed, please check the logs"; exit 1; } 59 | -------------------------------------------------------------------------------- /.github/workflows/publish-container-images.yml: -------------------------------------------------------------------------------- 1 | name: build & publish SapMachine Garden Linux container image 2 | 3 | on: 4 | workflow_call: 5 | inputs: 6 | sapMachineVersion: 7 | type: string 8 | description: "SapMachine version (e.g. 21)" 9 | gardenLinuxVersion: 10 | type: string 11 | description: "GardenLinux version (e.g. 1592)" 12 | jobs: 13 | publish_container: 14 | name: publish gardenlinux container base image 15 | runs-on: ubuntu-24.04 16 | defaults: 17 | run: 18 | shell: bash 19 | steps: 20 | - name: Checkout repository 21 | uses: actions/checkout@v4 22 | 23 | - name: Install qemu dependency for multi-arch build 24 | run: | 25 | sudo apt-get update 26 | sudo apt-get install -y qemu-user-static 27 | 28 | - name: Publish SapMachine images 29 | run: | 30 | SM_FLAVOURS=(jdk jdk-headless jre jre-headless) 31 | SM_REGISTRY="ghcr.io/sap/sapmachine" 32 | cd dockerfiles/${{ inputs.sapMachineVersion }}/gardenlinux/${{ inputs.gardenLinuxVersion }} 33 | podman login -u token -p ${{ github.token }} ghcr.io 34 | for sm_flvr in "${SM_FLAVOURS[@]}" ; do 35 | tag=${{ inputs.sapMachineVersion }}-${sm_flvr}-gl-${{ inputs.gardenLinuxVersion }} 36 | cd ${sm_flvr} 37 | podman manifest create ${SM_REGISTRY}:$tag 38 | podman build --platform linux/amd64,linux/arm64 --manifest ${SM_REGISTRY}:$tag . 39 | podman manifest push ${SM_REGISTRY}:$tag 40 | cd .. 41 | done 42 | -------------------------------------------------------------------------------- /.github/workflows/publish-gardenlinux-imageOnce-DoNotUse.yml: -------------------------------------------------------------------------------- 1 | # used for creating the new Feature Release Build in March and September. 2 | # CPU updates in January/April/July/October are done via publish-gardenlinux-images.yml 3 | name: Build and Publish ONCE SapMachine new Feature Releases container images to the SAP GitHub Container Registry 4 | on: 5 | workflow_dispatch: 6 | 7 | jobs: 8 | publish_images: 9 | strategy: 10 | matrix: 11 | sapMachineVersion: [24] 12 | gardenLinuxVersion: [1592] 13 | uses: ./.github/workflows/publish-container-images.yml 14 | with: 15 | sapMachineVersion: ${{ matrix.sapMachineVersion }} 16 | gardenLinuxVersion: ${{ matrix.gardenLinuxVersion }} 17 | -------------------------------------------------------------------------------- /.github/workflows/publish-gardenlinux-images.yml: -------------------------------------------------------------------------------- 1 | # used for creating the new CPU Release Build in January/April/July/October. 2 | # new feature releases updates in March and Septemberb are done via publish-gardenlinux-imagesONCE-DoNotUse.yml 3 | name: Build and Publish SapMachine new CPU Releases container images to the SAP GitHub Container Registry 4 | on: 5 | workflow_dispatch: 6 | 7 | jobs: 8 | publish_images: 9 | strategy: 10 | matrix: 11 | sapMachineVersion: [17, 21, 24] 12 | gardenLinuxVersion: [1592] 13 | uses: ./.github/workflows/publish-container-images.yml 14 | with: 15 | sapMachineVersion: ${{ matrix.sapMachineVersion }} 16 | gardenLinuxVersion: ${{ matrix.gardenLinuxVersion }} 17 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | **/*.pyc 3 | **/.vscode 4 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | APPENDIX: How to apply the Apache License to your work. 179 | 180 | To apply the Apache License to your work, attach the following 181 | boilerplate notice, with the fields enclosed by brackets "[]" 182 | replaced with your own identifying information. (Don't include 183 | the brackets!) The text should be enclosed in the appropriate 184 | comment syntax for the file format. We also recommend that a 185 | file or class name and description of purpose be included on the 186 | same "printed page" as the copyright notice for easier 187 | identification within third-party archives. 188 | 189 | Copyright [yyyy] [name of copyright owner] 190 | 191 | Licensed under the Apache License, Version 2.0 (the "License"); 192 | you may not use this file except in compliance with the License. 193 | You may obtain a copy of the License at 194 | 195 | http://www.apache.org/licenses/LICENSE-2.0 196 | 197 | Unless required by applicable law or agreed to in writing, software 198 | distributed under the License is distributed on an "AS IS" BASIS, 199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 | See the License for the specific language governing permissions and 201 | limitations under the License. 202 | -------------------------------------------------------------------------------- /LICENSES/Apache-2.0.txt: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. 10 | 11 | "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. 12 | 13 | "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. 14 | 15 | "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. 16 | 17 | "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. 18 | 19 | "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. 20 | 21 | "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). 22 | 23 | "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. 24 | 25 | "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." 26 | 27 | "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. 28 | 29 | 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. 30 | 31 | 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. 32 | 33 | 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: 34 | 35 | (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and 36 | 37 | (b) You must cause any modified files to carry prominent notices stating that You changed the files; and 38 | 39 | (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and 40 | 41 | (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. 42 | 43 | You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. 44 | 45 | 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. 46 | 47 | 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. 48 | 49 | 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. 50 | 51 | 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. 52 | 53 | 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. 54 | 55 | END OF TERMS AND CONDITIONS 56 | 57 | APPENDIX: How to apply the Apache License to your work. 58 | 59 | To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives. 60 | 61 | Copyright [yyyy] [name of copyright owner] 62 | 63 | Licensed under the Apache License, Version 2.0 (the "License"); 64 | you may not use this file except in compliance with the License. 65 | You may obtain a copy of the License at 66 | 67 | http://www.apache.org/licenses/LICENSE-2.0 68 | 69 | Unless required by applicable law or agreed to in writing, software 70 | distributed under the License is distributed on an "AS IS" BASIS, 71 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 72 | See the License for the specific language governing permissions and 73 | limitations under the License. 74 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # SapMachine Infrastructure 2 | 3 | [![REUSE status](https://api.reuse.software/badge/github.com/SAP/SapMachine-infrastructure)](https://api.reuse.software/info/github.com/SAP/SapMachine-infrastructure) 4 | 5 | ## Description 6 | 7 | This repository contains auxiliary data for the [SapMachine project](https://github.com/SAP/SapMachine). 8 | 9 | Currently these are merely the docker files. 10 | 11 | ## License 12 | 13 | Copyright 2017-2024 SAP SE or an SAP affiliate company and SapMachine-infrastructure contributors. Please see our [LICENSE](LICENSE) for copyright and license information. Detailed information including third-party components and their licensing/copyright information is available [via the REUSE tool](https://api.reuse.software/info/github.com/SAP/SapMachine-infrastructure). 14 | -------------------------------------------------------------------------------- /REUSE.toml: -------------------------------------------------------------------------------- 1 | version = 1 2 | SPDX-PackageName = "SapMachine-infrastructure" 3 | SPDX-PackageDownloadLocation = "https://github.com/SAP/SapMachine-infrastructure" 4 | SPDX-PackageComment = "The code in this project may include calls to APIs (“API Calls”) of\n SAP or third-party products or services developed outside of this project\n (“External Products”).\n “APIs” means application programming interfaces, as well as their respective\n specifications and implementing code that allows software to communicate with\n other software.\n API Calls to External Products are not licensed under the open source license\n that governs this project. The use of such API Calls and related External\n Products are subject to applicable additional agreements with the relevant\n provider of the External Products. In no event shall the open source license\n that governs this project grant any rights in or to any External Products,or\n alter, expand or supersede any terms of the applicable additional agreements.\n If you have a valid license agreement with SAP for the use of a particular SAP\n External Product, then you may make use of any API Calls included in this\n project’s code for that SAP External Product, subject to the terms of such\n license agreement. If you do not have a valid license agreement for the use of\n a particular SAP External Product, then you may only make use of any API Calls\n in this project for that SAP External Product for your internal, non-productive\n and non-commercial test and evaluation of such API Calls. Nothing herein grants\n you any rights to use or access any SAP External Product, or provide any third\n parties the right to use of access any SAP External Product, through API Calls." 5 | 6 | [[annotations]] 7 | path = "**" 8 | precedence = "aggregate" 9 | SPDX-FileCopyrightText = "2017-2025 SAP SE or an SAP affiliate company and SapMachine-infrastructure contributors" 10 | SPDX-License-Identifier = "Apache-2.0" 11 | -------------------------------------------------------------------------------- /dockerfiles/11/README.md: -------------------------------------------------------------------------------- 1 | 2 | ### Overview 3 | 4 | The dockerfiles in this subdirectory define images for consuming the long term support release 11 (version: 11.0.27) of the SapMachine Java Virtual Machine (JVM). 5 | SapMachine is an OpenJDK based JVM that is built, quality tested and long-term supported by SAP. 6 | It is the default JVM on the [SAP Business Technology Platform](https://www.sap.com/products/technology-platform.html) and it is also supported as a [Standard JRE](https://github.com/cloudfoundry/java-buildpack/blob/master/docs/jre-sap_machine_jre.md) in the [Cloud Foundry Java Build Pack](https://github.com/cloudfoundry/java-buildpack). 7 | 8 | For more information see the [SapMachine website](https://sapmachine.io). 9 | 10 | The SapMachine image supports the x86/64, aarch64 and ppc64le architectures. 11 | 12 | Java and all Java-based trademarks and logos are trademarks or registered trademarks of Oracle and/or its affiliates. 13 | 14 | ### How to use this Image 15 | 16 | You can pull and test the image with the following commands: 17 | 18 | ```console 19 | docker pull sapmachine:11 20 | docker run -it sapmachine:11 java -version 21 | ``` 22 | 23 | You can also use the SapMachine image as a base image to run your own jar file: 24 | 25 | ```dockerfile 26 | FROM sapmachine:11 27 | RUN mkdir /opt/myapp 28 | COPY myapp.jar /opt/myapp 29 | CMD ["java", "-jar", "/opt/myapp/myapp.jar"] 30 | ``` 31 | 32 | You can then build and run your own Docker image: 33 | 34 | ```console 35 | docker build -t myapp . 36 | docker run -it --rm myapp 37 | ``` 38 | -------------------------------------------------------------------------------- /dockerfiles/11/distroless/debian11/debug-nonroot/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM gcr.io/distroless/java11-debian11:debug-nonroot as distroless 2 | 3 | FROM ubuntu as builder 4 | 5 | RUN apt-get update && apt-get -y --no-install-recommends install ca-certificates wget 6 | 7 | RUN dpkgArch="$(dpkg --print-architecture)"; \ 8 | case "${dpkgArch}" in \ 9 | 'amd64') \ 10 | url='https://github.com/SAP/SapMachine/releases/download/sapmachine-11.0.27/sapmachine-jdk-11.0.27_linux-x64_bin.tar.gz'; \ 11 | ;; \ 12 | 'arm64') \ 13 | url='https://github.com/SAP/SapMachine/releases/download/sapmachine-11.0.27/sapmachine-jdk-11.0.27_linux-aarch64_bin.tar.gz'; \ 14 | ;; \ 15 | 'ppc64el') \ 16 | url='https://github.com/SAP/SapMachine/releases/download/sapmachine-11.0.27/sapmachine-jdk-11.0.27_linux-ppc64le_bin.tar.gz'; \ 17 | ;; \ 18 | *) echo >&2 "error: unsupported architecture '$dpkgArch'"; exit 1 ;; \ 19 | esac; \ 20 | wget -O sapmachine.tar.gz $url --progress=dot:giga 21 | 22 | COPY --from=distroless / /distroless 23 | 24 | RUN tar xzf sapmachine.tar.gz && \ 25 | rm -rf /distroless/etc/java-11-openjdk /distroless/usr/lib/jvm/java-11-openjdk-amd64 && \ 26 | mv sapmachine-jdk-11.0.27 /distroless/usr/lib/jvm/java-11-openjdk-amd64 27 | 28 | FROM scratch 29 | COPY --from=builder /distroless / 30 | 31 | ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/busybox 32 | ENV SSL_CERT_FILE=/etc/ssl/certs/ca-certificates.crt 33 | ENV LANG=C.UTF-8 34 | ENV JAVA_VERSION=11.0.27 35 | 36 | ENTRYPOINT [ "/usr/bin/java", "-jar" ] 37 | -------------------------------------------------------------------------------- /dockerfiles/11/distroless/debian11/debug/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM gcr.io/distroless/java11-debian11:debug as distroless 2 | 3 | FROM ubuntu as builder 4 | 5 | RUN apt-get update && apt-get -y --no-install-recommends install ca-certificates wget 6 | 7 | RUN dpkgArch="$(dpkg --print-architecture)"; \ 8 | case "${dpkgArch}" in \ 9 | 'amd64') \ 10 | url='https://github.com/SAP/SapMachine/releases/download/sapmachine-11.0.27/sapmachine-jdk-11.0.27_linux-x64_bin.tar.gz'; \ 11 | ;; \ 12 | 'arm64') \ 13 | url='https://github.com/SAP/SapMachine/releases/download/sapmachine-11.0.27/sapmachine-jdk-11.0.27_linux-aarch64_bin.tar.gz'; \ 14 | ;; \ 15 | 'ppc64el') \ 16 | url='https://github.com/SAP/SapMachine/releases/download/sapmachine-11.0.27/sapmachine-jdk-11.0.27_linux-ppc64le_bin.tar.gz'; \ 17 | ;; \ 18 | *) echo >&2 "error: unsupported architecture '$dpkgArch'"; exit 1 ;; \ 19 | esac; \ 20 | wget -O sapmachine.tar.gz $url --progress=dot:giga 21 | 22 | COPY --from=distroless / /distroless 23 | 24 | RUN tar xzf sapmachine.tar.gz && \ 25 | rm -rf /distroless/etc/java-11-openjdk /distroless/usr/lib/jvm/java-11-openjdk-amd64 && \ 26 | mv sapmachine-jdk-11.0.27 /distroless/usr/lib/jvm/java-11-openjdk-amd64 27 | 28 | FROM scratch 29 | COPY --from=builder /distroless / 30 | 31 | ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/busybox 32 | ENV SSL_CERT_FILE=/etc/ssl/certs/ca-certificates.crt 33 | ENV LANG=C.UTF-8 34 | ENV JAVA_VERSION=11.0.27 35 | 36 | ENTRYPOINT [ "/usr/bin/java", "-jar" ] 37 | -------------------------------------------------------------------------------- /dockerfiles/11/distroless/debian11/latest/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM gcr.io/distroless/java11-debian11:latest as distroless 2 | 3 | FROM ubuntu as builder 4 | 5 | RUN apt-get update && apt-get -y --no-install-recommends install ca-certificates wget 6 | 7 | RUN dpkgArch="$(dpkg --print-architecture)"; \ 8 | case "${dpkgArch}" in \ 9 | 'amd64') \ 10 | url='https://github.com/SAP/SapMachine/releases/download/sapmachine-11.0.27/sapmachine-jre-11.0.27_linux-x64_bin.tar.gz'; \ 11 | ;; \ 12 | 'arm64') \ 13 | url='https://github.com/SAP/SapMachine/releases/download/sapmachine-11.0.27/sapmachine-jre-11.0.27_linux-aarch64_bin.tar.gz'; \ 14 | ;; \ 15 | 'ppc64el') \ 16 | url='https://github.com/SAP/SapMachine/releases/download/sapmachine-11.0.27/sapmachine-jre-11.0.27_linux-ppc64le_bin.tar.gz'; \ 17 | ;; \ 18 | *) echo >&2 "error: unsupported architecture '$dpkgArch'"; exit 1 ;; \ 19 | esac; \ 20 | wget -O sapmachine.tar.gz $url --progress=dot:giga 21 | 22 | COPY --from=distroless / /distroless 23 | 24 | RUN tar xzf sapmachine.tar.gz && \ 25 | rm -rf /distroless/etc/java-11-openjdk /distroless/usr/lib/jvm/java-11-openjdk-amd64 && \ 26 | mv sapmachine-jre-11.0.27 /distroless/usr/lib/jvm/java-11-openjdk-amd64 27 | 28 | FROM scratch 29 | COPY --from=builder /distroless / 30 | 31 | 32 | ENV SSL_CERT_FILE=/etc/ssl/certs/ca-certificates.crt 33 | ENV LANG=C.UTF-8 34 | ENV JAVA_VERSION=11.0.27 35 | 36 | ENTRYPOINT [ "/usr/bin/java", "-jar" ] 37 | -------------------------------------------------------------------------------- /dockerfiles/11/distroless/debian11/nonroot/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM gcr.io/distroless/java11-debian11:nonroot as distroless 2 | 3 | FROM ubuntu as builder 4 | 5 | RUN apt-get update && apt-get -y --no-install-recommends install ca-certificates wget 6 | 7 | RUN dpkgArch="$(dpkg --print-architecture)"; \ 8 | case "${dpkgArch}" in \ 9 | 'amd64') \ 10 | url='https://github.com/SAP/SapMachine/releases/download/sapmachine-11.0.27/sapmachine-jre-11.0.27_linux-x64_bin.tar.gz'; \ 11 | ;; \ 12 | 'arm64') \ 13 | url='https://github.com/SAP/SapMachine/releases/download/sapmachine-11.0.27/sapmachine-jre-11.0.27_linux-aarch64_bin.tar.gz'; \ 14 | ;; \ 15 | 'ppc64el') \ 16 | url='https://github.com/SAP/SapMachine/releases/download/sapmachine-11.0.27/sapmachine-jre-11.0.27_linux-ppc64le_bin.tar.gz'; \ 17 | ;; \ 18 | *) echo >&2 "error: unsupported architecture '$dpkgArch'"; exit 1 ;; \ 19 | esac; \ 20 | wget -O sapmachine.tar.gz $url --progress=dot:giga 21 | 22 | COPY --from=distroless / /distroless 23 | 24 | RUN tar xzf sapmachine.tar.gz && \ 25 | rm -rf /distroless/etc/java-11-openjdk /distroless/usr/lib/jvm/java-11-openjdk-amd64 && \ 26 | mv sapmachine-jre-11.0.27 /distroless/usr/lib/jvm/java-11-openjdk-amd64 27 | 28 | FROM scratch 29 | COPY --from=builder /distroless / 30 | 31 | 32 | ENV SSL_CERT_FILE=/etc/ssl/certs/ca-certificates.crt 33 | ENV LANG=C.UTF-8 34 | ENV JAVA_VERSION=11.0.27 35 | 36 | ENTRYPOINT [ "/usr/bin/java", "-jar" ] 37 | -------------------------------------------------------------------------------- /dockerfiles/11/gardenlinux/1592/jdk-headless/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ghcr.io/gardenlinux/gardenlinux:1592 2 | 3 | RUN apt-get update && \ 4 | apt-get -y --no-install-recommends install wget && \ 5 | wget -qO- https://dist.sapmachine.io/debian/sapmachine.key > /etc/apt/trusted.gpg.d/sapmachine.asc && \ 6 | chmod 644 /etc/apt/trusted.gpg.d/sapmachine.asc && \ 7 | echo "deb https://dist.sapmachine.io/debian/$(dpkg --print-architecture)/ ./" > /etc/apt/sources.list.d/sapmachine.list && \ 8 | apt-get update && \ 9 | apt-get -y --no-install-recommends install sapmachine-11-jdk-headless=11.0.27 && \ 10 | apt-get remove -y --purge --autoremove wget && \ 11 | rm -rf /var/lib/apt/lists/* 12 | 13 | ENV JAVA_HOME=/usr/lib/jvm/sapmachine-11 14 | 15 | CMD ["jshell"] 16 | -------------------------------------------------------------------------------- /dockerfiles/11/gardenlinux/1592/jdk/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ghcr.io/gardenlinux/gardenlinux:1592 2 | 3 | RUN apt-get update && \ 4 | apt-get -y --no-install-recommends install wget && \ 5 | wget -qO- https://dist.sapmachine.io/debian/sapmachine.key > /etc/apt/trusted.gpg.d/sapmachine.asc && \ 6 | chmod 644 /etc/apt/trusted.gpg.d/sapmachine.asc && \ 7 | echo "deb https://dist.sapmachine.io/debian/$(dpkg --print-architecture)/ ./" > /etc/apt/sources.list.d/sapmachine.list && \ 8 | apt-get update && \ 9 | apt-get -y --no-install-recommends install sapmachine-11-jdk=11.0.27 && \ 10 | apt-get remove -y --purge --autoremove wget && \ 11 | rm -rf /var/lib/apt/lists/* 12 | 13 | ENV JAVA_HOME=/usr/lib/jvm/sapmachine-11 14 | 15 | CMD ["jshell"] 16 | -------------------------------------------------------------------------------- /dockerfiles/11/gardenlinux/1592/jre-headless/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ghcr.io/gardenlinux/gardenlinux:1592 2 | 3 | RUN apt-get update && \ 4 | apt-get -y --no-install-recommends install wget && \ 5 | wget -qO- https://dist.sapmachine.io/debian/sapmachine.key > /etc/apt/trusted.gpg.d/sapmachine.asc && \ 6 | chmod 644 /etc/apt/trusted.gpg.d/sapmachine.asc && \ 7 | echo "deb https://dist.sapmachine.io/debian/$(dpkg --print-architecture)/ ./" > /etc/apt/sources.list.d/sapmachine.list && \ 8 | apt-get update && \ 9 | apt-get -y --no-install-recommends install sapmachine-11-jre-headless=11.0.27 && \ 10 | apt-get remove -y --purge --autoremove wget && \ 11 | rm -rf /var/lib/apt/lists/* 12 | 13 | ENV JAVA_HOME=/usr/lib/jvm/sapmachine-11 14 | 15 | CMD ["jshell"] 16 | -------------------------------------------------------------------------------- /dockerfiles/11/gardenlinux/1592/jre/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ghcr.io/gardenlinux/gardenlinux:1592 2 | 3 | RUN apt-get update && \ 4 | apt-get -y --no-install-recommends install wget && \ 5 | wget -qO- https://dist.sapmachine.io/debian/sapmachine.key > /etc/apt/trusted.gpg.d/sapmachine.asc && \ 6 | chmod 644 /etc/apt/trusted.gpg.d/sapmachine.asc && \ 7 | echo "deb https://dist.sapmachine.io/debian/$(dpkg --print-architecture)/ ./" > /etc/apt/sources.list.d/sapmachine.list && \ 8 | apt-get update && \ 9 | apt-get -y --no-install-recommends install sapmachine-11-jre=11.0.27 && \ 10 | apt-get remove -y --purge --autoremove wget && \ 11 | rm -rf /var/lib/apt/lists/* 12 | 13 | ENV JAVA_HOME=/usr/lib/jvm/sapmachine-11 14 | 15 | CMD ["jshell"] 16 | -------------------------------------------------------------------------------- /dockerfiles/11/ubuntu/20_04/jdk-headless/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ubuntu:20.04 2 | 3 | RUN apt-get update && \ 4 | apt-get -y --no-install-recommends install ca-certificates gnupg && \ 5 | export GNUPGHOME="$(mktemp -d)" && \ 6 | gpg --no-default-keyring --keyring gnupg-ring:/etc/apt/trusted.gpg.d/sapmachine.gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys CACB9FE09150307D1D22D82962754C3B3ABCFE23 && \ 7 | chmod 644 /etc/apt/trusted.gpg.d/sapmachine.gpg && \ 8 | echo "deb http://dist.sapmachine.io/debian/$(dpkg --print-architecture)/ ./" > /etc/apt/sources.list.d/sapmachine.list && \ 9 | apt-get update && \ 10 | apt-get -y --no-install-recommends install sapmachine-11-jdk-headless=11.0.27 && \ 11 | apt-get remove -y --purge --autoremove ca-certificates gnupg && \ 12 | rm -rf "$GNUPGHOME" /var/lib/apt/lists/* 13 | 14 | ENV JAVA_HOME=/usr/lib/jvm/sapmachine-11 15 | 16 | CMD ["jshell"] 17 | -------------------------------------------------------------------------------- /dockerfiles/11/ubuntu/20_04/jdk/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ubuntu:20.04 2 | 3 | RUN apt-get update && \ 4 | apt-get -y --no-install-recommends install ca-certificates gnupg && \ 5 | export GNUPGHOME="$(mktemp -d)" && \ 6 | gpg --no-default-keyring --keyring gnupg-ring:/etc/apt/trusted.gpg.d/sapmachine.gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys CACB9FE09150307D1D22D82962754C3B3ABCFE23 && \ 7 | chmod 644 /etc/apt/trusted.gpg.d/sapmachine.gpg && \ 8 | echo "deb http://dist.sapmachine.io/debian/$(dpkg --print-architecture)/ ./" > /etc/apt/sources.list.d/sapmachine.list && \ 9 | apt-get update && \ 10 | apt-get -y --no-install-recommends install sapmachine-11-jdk=11.0.27 && \ 11 | apt-get remove -y --purge --autoremove ca-certificates gnupg && \ 12 | rm -rf "$GNUPGHOME" /var/lib/apt/lists/* 13 | 14 | ENV JAVA_HOME=/usr/lib/jvm/sapmachine-11 15 | 16 | CMD ["jshell"] 17 | -------------------------------------------------------------------------------- /dockerfiles/11/ubuntu/20_04/jre-headless/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ubuntu:20.04 2 | 3 | RUN apt-get update && \ 4 | apt-get -y --no-install-recommends install ca-certificates gnupg && \ 5 | export GNUPGHOME="$(mktemp -d)" && \ 6 | gpg --no-default-keyring --keyring gnupg-ring:/etc/apt/trusted.gpg.d/sapmachine.gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys CACB9FE09150307D1D22D82962754C3B3ABCFE23 && \ 7 | chmod 644 /etc/apt/trusted.gpg.d/sapmachine.gpg && \ 8 | echo "deb http://dist.sapmachine.io/debian/$(dpkg --print-architecture)/ ./" > /etc/apt/sources.list.d/sapmachine.list && \ 9 | apt-get update && \ 10 | apt-get -y --no-install-recommends install sapmachine-11-jre-headless=11.0.27 && \ 11 | apt-get remove -y --purge --autoremove ca-certificates gnupg && \ 12 | rm -rf "$GNUPGHOME" /var/lib/apt/lists/* 13 | 14 | ENV JAVA_HOME=/usr/lib/jvm/sapmachine-11 15 | 16 | CMD ["jshell"] 17 | -------------------------------------------------------------------------------- /dockerfiles/11/ubuntu/20_04/jre/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ubuntu:20.04 2 | 3 | RUN apt-get update && \ 4 | apt-get -y --no-install-recommends install ca-certificates gnupg && \ 5 | export GNUPGHOME="$(mktemp -d)" && \ 6 | gpg --no-default-keyring --keyring gnupg-ring:/etc/apt/trusted.gpg.d/sapmachine.gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys CACB9FE09150307D1D22D82962754C3B3ABCFE23 && \ 7 | chmod 644 /etc/apt/trusted.gpg.d/sapmachine.gpg && \ 8 | echo "deb http://dist.sapmachine.io/debian/$(dpkg --print-architecture)/ ./" > /etc/apt/sources.list.d/sapmachine.list && \ 9 | apt-get update && \ 10 | apt-get -y --no-install-recommends install sapmachine-11-jre=11.0.27 && \ 11 | apt-get remove -y --purge --autoremove ca-certificates gnupg && \ 12 | rm -rf "$GNUPGHOME" /var/lib/apt/lists/* 13 | 14 | ENV JAVA_HOME=/usr/lib/jvm/sapmachine-11 15 | 16 | CMD ["jshell"] 17 | -------------------------------------------------------------------------------- /dockerfiles/11/ubuntu/22_04/jdk-headless/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ubuntu:22.04 2 | 3 | RUN apt-get update && \ 4 | apt-get -y --no-install-recommends install ca-certificates gnupg && \ 5 | export GNUPGHOME="$(mktemp -d)" && \ 6 | gpg --no-default-keyring --keyring gnupg-ring:/etc/apt/trusted.gpg.d/sapmachine.gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys CACB9FE09150307D1D22D82962754C3B3ABCFE23 && \ 7 | chmod 644 /etc/apt/trusted.gpg.d/sapmachine.gpg && \ 8 | echo "deb http://dist.sapmachine.io/debian/$(dpkg --print-architecture)/ ./" > /etc/apt/sources.list.d/sapmachine.list && \ 9 | apt-get update && \ 10 | apt-get -y --no-install-recommends install sapmachine-11-jdk-headless=11.0.27 && \ 11 | apt-get remove -y --purge --autoremove ca-certificates gnupg && \ 12 | rm -rf "$GNUPGHOME" /var/lib/apt/lists/* 13 | 14 | ENV JAVA_HOME=/usr/lib/jvm/sapmachine-11 15 | 16 | CMD ["jshell"] 17 | -------------------------------------------------------------------------------- /dockerfiles/11/ubuntu/22_04/jdk/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ubuntu:22.04 2 | 3 | RUN apt-get update && \ 4 | apt-get -y --no-install-recommends install ca-certificates gnupg && \ 5 | export GNUPGHOME="$(mktemp -d)" && \ 6 | gpg --no-default-keyring --keyring gnupg-ring:/etc/apt/trusted.gpg.d/sapmachine.gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys CACB9FE09150307D1D22D82962754C3B3ABCFE23 && \ 7 | chmod 644 /etc/apt/trusted.gpg.d/sapmachine.gpg && \ 8 | echo "deb http://dist.sapmachine.io/debian/$(dpkg --print-architecture)/ ./" > /etc/apt/sources.list.d/sapmachine.list && \ 9 | apt-get update && \ 10 | apt-get -y --no-install-recommends install sapmachine-11-jdk=11.0.27 && \ 11 | apt-get remove -y --purge --autoremove ca-certificates gnupg && \ 12 | rm -rf "$GNUPGHOME" /var/lib/apt/lists/* 13 | 14 | ENV JAVA_HOME=/usr/lib/jvm/sapmachine-11 15 | 16 | CMD ["jshell"] 17 | -------------------------------------------------------------------------------- /dockerfiles/11/ubuntu/22_04/jre-headless/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ubuntu:22.04 2 | 3 | RUN apt-get update && \ 4 | apt-get -y --no-install-recommends install ca-certificates gnupg && \ 5 | export GNUPGHOME="$(mktemp -d)" && \ 6 | gpg --no-default-keyring --keyring gnupg-ring:/etc/apt/trusted.gpg.d/sapmachine.gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys CACB9FE09150307D1D22D82962754C3B3ABCFE23 && \ 7 | chmod 644 /etc/apt/trusted.gpg.d/sapmachine.gpg && \ 8 | echo "deb http://dist.sapmachine.io/debian/$(dpkg --print-architecture)/ ./" > /etc/apt/sources.list.d/sapmachine.list && \ 9 | apt-get update && \ 10 | apt-get -y --no-install-recommends install sapmachine-11-jre-headless=11.0.27 && \ 11 | apt-get remove -y --purge --autoremove ca-certificates gnupg && \ 12 | rm -rf "$GNUPGHOME" /var/lib/apt/lists/* 13 | 14 | ENV JAVA_HOME=/usr/lib/jvm/sapmachine-11 15 | 16 | CMD ["jshell"] 17 | -------------------------------------------------------------------------------- /dockerfiles/11/ubuntu/22_04/jre/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ubuntu:22.04 2 | 3 | RUN apt-get update && \ 4 | apt-get -y --no-install-recommends install ca-certificates gnupg && \ 5 | export GNUPGHOME="$(mktemp -d)" && \ 6 | gpg --no-default-keyring --keyring gnupg-ring:/etc/apt/trusted.gpg.d/sapmachine.gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys CACB9FE09150307D1D22D82962754C3B3ABCFE23 && \ 7 | chmod 644 /etc/apt/trusted.gpg.d/sapmachine.gpg && \ 8 | echo "deb http://dist.sapmachine.io/debian/$(dpkg --print-architecture)/ ./" > /etc/apt/sources.list.d/sapmachine.list && \ 9 | apt-get update && \ 10 | apt-get -y --no-install-recommends install sapmachine-11-jre=11.0.27 && \ 11 | apt-get remove -y --purge --autoremove ca-certificates gnupg && \ 12 | rm -rf "$GNUPGHOME" /var/lib/apt/lists/* 13 | 14 | ENV JAVA_HOME=/usr/lib/jvm/sapmachine-11 15 | 16 | CMD ["jshell"] 17 | -------------------------------------------------------------------------------- /dockerfiles/11/ubuntu/24_04/jdk-headless/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ubuntu:24.04 2 | 3 | RUN apt-get update && \ 4 | apt-get -y --no-install-recommends install ca-certificates gnupg && \ 5 | export GNUPGHOME="$(mktemp -d)" && \ 6 | gpg --no-default-keyring --keyring gnupg-ring:/etc/apt/trusted.gpg.d/sapmachine.gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys CACB9FE09150307D1D22D82962754C3B3ABCFE23 && \ 7 | chmod 644 /etc/apt/trusted.gpg.d/sapmachine.gpg && \ 8 | echo "deb http://dist.sapmachine.io/debian/$(dpkg --print-architecture)/ ./" > /etc/apt/sources.list.d/sapmachine.list && \ 9 | apt-get update && \ 10 | apt-get -y --no-install-recommends install sapmachine-11-jdk-headless=11.0.27 && \ 11 | apt-get remove -y --purge --autoremove ca-certificates gnupg && \ 12 | rm -rf "$GNUPGHOME" /var/lib/apt/lists/* 13 | 14 | ENV JAVA_HOME=/usr/lib/jvm/sapmachine-11 15 | 16 | CMD ["jshell"] 17 | -------------------------------------------------------------------------------- /dockerfiles/11/ubuntu/24_04/jdk/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ubuntu:24.04 2 | 3 | RUN apt-get update && \ 4 | apt-get -y --no-install-recommends install ca-certificates gnupg && \ 5 | export GNUPGHOME="$(mktemp -d)" && \ 6 | gpg --no-default-keyring --keyring gnupg-ring:/etc/apt/trusted.gpg.d/sapmachine.gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys CACB9FE09150307D1D22D82962754C3B3ABCFE23 && \ 7 | chmod 644 /etc/apt/trusted.gpg.d/sapmachine.gpg && \ 8 | echo "deb http://dist.sapmachine.io/debian/$(dpkg --print-architecture)/ ./" > /etc/apt/sources.list.d/sapmachine.list && \ 9 | apt-get update && \ 10 | apt-get -y --no-install-recommends install sapmachine-11-jdk=11.0.27 && \ 11 | apt-get remove -y --purge --autoremove ca-certificates gnupg && \ 12 | rm -rf "$GNUPGHOME" /var/lib/apt/lists/* 13 | 14 | ENV JAVA_HOME=/usr/lib/jvm/sapmachine-11 15 | 16 | CMD ["jshell"] 17 | -------------------------------------------------------------------------------- /dockerfiles/11/ubuntu/24_04/jre-headless/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ubuntu:24.04 2 | 3 | RUN apt-get update && \ 4 | apt-get -y --no-install-recommends install ca-certificates gnupg && \ 5 | export GNUPGHOME="$(mktemp -d)" && \ 6 | gpg --no-default-keyring --keyring gnupg-ring:/etc/apt/trusted.gpg.d/sapmachine.gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys CACB9FE09150307D1D22D82962754C3B3ABCFE23 && \ 7 | chmod 644 /etc/apt/trusted.gpg.d/sapmachine.gpg && \ 8 | echo "deb http://dist.sapmachine.io/debian/$(dpkg --print-architecture)/ ./" > /etc/apt/sources.list.d/sapmachine.list && \ 9 | apt-get update && \ 10 | apt-get -y --no-install-recommends install sapmachine-11-jre-headless=11.0.27 && \ 11 | apt-get remove -y --purge --autoremove ca-certificates gnupg && \ 12 | rm -rf "$GNUPGHOME" /var/lib/apt/lists/* 13 | 14 | ENV JAVA_HOME=/usr/lib/jvm/sapmachine-11 15 | 16 | CMD ["jshell"] 17 | -------------------------------------------------------------------------------- /dockerfiles/11/ubuntu/24_04/jre/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ubuntu:24.04 2 | 3 | RUN apt-get update && \ 4 | apt-get -y --no-install-recommends install ca-certificates gnupg && \ 5 | export GNUPGHOME="$(mktemp -d)" && \ 6 | gpg --no-default-keyring --keyring gnupg-ring:/etc/apt/trusted.gpg.d/sapmachine.gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys CACB9FE09150307D1D22D82962754C3B3ABCFE23 && \ 7 | chmod 644 /etc/apt/trusted.gpg.d/sapmachine.gpg && \ 8 | echo "deb http://dist.sapmachine.io/debian/$(dpkg --print-architecture)/ ./" > /etc/apt/sources.list.d/sapmachine.list && \ 9 | apt-get update && \ 10 | apt-get -y --no-install-recommends install sapmachine-11-jre=11.0.27 && \ 11 | apt-get remove -y --purge --autoremove ca-certificates gnupg && \ 12 | rm -rf "$GNUPGHOME" /var/lib/apt/lists/* 13 | 14 | ENV JAVA_HOME=/usr/lib/jvm/sapmachine-11 15 | 16 | CMD ["jshell"] 17 | -------------------------------------------------------------------------------- /dockerfiles/17/README.md: -------------------------------------------------------------------------------- 1 | 2 | ### Overview 3 | 4 | The dockerfiles in this subdirectory define images for consuming the long term support release 17 (version: 17.0.15) of the SapMachine Java Virtual Machine (JVM). 5 | SapMachine is an OpenJDK based JVM that is built, quality tested and long-term supported by SAP. 6 | It is the default JVM on the [SAP Business Technology Platform](https://www.sap.com/products/technology-platform.html) and it is also supported as a [Standard JRE](https://github.com/cloudfoundry/java-buildpack/blob/master/docs/jre-sap_machine_jre.md) in the [Cloud Foundry Java Build Pack](https://github.com/cloudfoundry/java-buildpack). 7 | 8 | For more information see the [SapMachine website](https://sapmachine.io). 9 | 10 | The SapMachine image supports the x86/64, aarch64 and ppc64le architectures. 11 | 12 | Java and all Java-based trademarks and logos are trademarks or registered trademarks of Oracle and/or its affiliates. 13 | 14 | ### How to use this Image 15 | 16 | You can pull and test the image with the following commands: 17 | 18 | ```console 19 | docker pull sapmachine:17 20 | docker run -it sapmachine:17 java -version 21 | ``` 22 | 23 | You can also use the SapMachine image as a base image to run your own jar file: 24 | 25 | ```dockerfile 26 | FROM sapmachine:17 27 | RUN mkdir /opt/myapp 28 | COPY myapp.jar /opt/myapp 29 | CMD ["java", "-jar", "/opt/myapp/myapp.jar"] 30 | ``` 31 | 32 | You can then build and run your own Docker image: 33 | 34 | ```console 35 | docker build -t myapp . 36 | docker run -it --rm myapp 37 | ``` 38 | -------------------------------------------------------------------------------- /dockerfiles/17/alpine/3_21/jdk/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM alpine:3.21 2 | 3 | RUN wget -qO /etc/apk/keys/sapmachine-apk.rsa.pub https://dist.sapmachine.io/alpine/sapmachine-apk.rsa.pub && \ 4 | echo "4444e47cabf35695f9406692848de191d3b7cbd47dcdc1ffb62f4f70aea06e89 /etc/apk/keys/sapmachine-apk.rsa.pub" | sha256sum -c - && \ 5 | echo "https://dist.sapmachine.io/alpine" >> /etc/apk/repositories && \ 6 | apk add sapmachine-17-jdk=17.0.15-r0 7 | 8 | ENV JAVA_HOME=/usr/lib/jvm/java-17-sapmachine-jdk 9 | 10 | CMD ["jshell"] 11 | -------------------------------------------------------------------------------- /dockerfiles/17/alpine/3_21/jre/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM alpine:3.21 2 | 3 | RUN wget -qO /etc/apk/keys/sapmachine-apk.rsa.pub https://dist.sapmachine.io/alpine/sapmachine-apk.rsa.pub && \ 4 | echo "4444e47cabf35695f9406692848de191d3b7cbd47dcdc1ffb62f4f70aea06e89 /etc/apk/keys/sapmachine-apk.rsa.pub" | sha256sum -c - && \ 5 | echo "https://dist.sapmachine.io/alpine" >> /etc/apk/repositories && \ 6 | apk add sapmachine-17-jre=17.0.15-r0 7 | 8 | ENV JAVA_HOME=/usr/lib/jvm/java-17-sapmachine-jre 9 | 10 | CMD ["jshell"] 11 | -------------------------------------------------------------------------------- /dockerfiles/17/distroless/debian11/debug-nonroot/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM gcr.io/distroless/java17-debian11:debug-nonroot as distroless 2 | 3 | FROM ubuntu as builder 4 | 5 | RUN apt-get update && apt-get -y --no-install-recommends install ca-certificates wget 6 | 7 | RUN dpkgArch="$(dpkg --print-architecture)"; \ 8 | case "${dpkgArch}" in \ 9 | 'amd64') \ 10 | url='https://github.com/SAP/SapMachine/releases/download/sapmachine-17.0.15/sapmachine-jdk-17.0.15_linux-x64_bin.tar.gz'; \ 11 | ;; \ 12 | 'arm64') \ 13 | url='https://github.com/SAP/SapMachine/releases/download/sapmachine-17.0.15/sapmachine-jdk-17.0.15_linux-aarch64_bin.tar.gz'; \ 14 | ;; \ 15 | 'ppc64el') \ 16 | url='https://github.com/SAP/SapMachine/releases/download/sapmachine-17.0.15/sapmachine-jdk-17.0.15_linux-ppc64le_bin.tar.gz'; \ 17 | ;; \ 18 | *) echo >&2 "error: unsupported architecture '$dpkgArch'"; exit 1 ;; \ 19 | esac; \ 20 | wget -O sapmachine.tar.gz $url --progress=dot:giga 21 | 22 | COPY --from=distroless / /distroless 23 | 24 | RUN tar xzf sapmachine.tar.gz && \ 25 | rm -rf /distroless/etc/java-17-openjdk /distroless/usr/lib/jvm/java-17-openjdk-amd64 && \ 26 | mv sapmachine-jdk-17.0.15 /distroless/usr/lib/jvm/java-17-openjdk-amd64 27 | 28 | FROM scratch 29 | COPY --from=builder /distroless / 30 | 31 | ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/busybox 32 | ENV SSL_CERT_FILE=/etc/ssl/certs/ca-certificates.crt 33 | ENV LANG=C.UTF-8 34 | ENV JAVA_VERSION=17.0.15 35 | 36 | ENTRYPOINT [ "/usr/bin/java", "-jar" ] 37 | -------------------------------------------------------------------------------- /dockerfiles/17/distroless/debian11/debug/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM gcr.io/distroless/java17-debian11:debug as distroless 2 | 3 | FROM ubuntu as builder 4 | 5 | RUN apt-get update && apt-get -y --no-install-recommends install ca-certificates wget 6 | 7 | RUN dpkgArch="$(dpkg --print-architecture)"; \ 8 | case "${dpkgArch}" in \ 9 | 'amd64') \ 10 | url='https://github.com/SAP/SapMachine/releases/download/sapmachine-17.0.15/sapmachine-jdk-17.0.15_linux-x64_bin.tar.gz'; \ 11 | ;; \ 12 | 'arm64') \ 13 | url='https://github.com/SAP/SapMachine/releases/download/sapmachine-17.0.15/sapmachine-jdk-17.0.15_linux-aarch64_bin.tar.gz'; \ 14 | ;; \ 15 | 'ppc64el') \ 16 | url='https://github.com/SAP/SapMachine/releases/download/sapmachine-17.0.15/sapmachine-jdk-17.0.15_linux-ppc64le_bin.tar.gz'; \ 17 | ;; \ 18 | *) echo >&2 "error: unsupported architecture '$dpkgArch'"; exit 1 ;; \ 19 | esac; \ 20 | wget -O sapmachine.tar.gz $url --progress=dot:giga 21 | 22 | COPY --from=distroless / /distroless 23 | 24 | RUN tar xzf sapmachine.tar.gz && \ 25 | rm -rf /distroless/etc/java-17-openjdk /distroless/usr/lib/jvm/java-17-openjdk-amd64 && \ 26 | mv sapmachine-jdk-17.0.15 /distroless/usr/lib/jvm/java-17-openjdk-amd64 27 | 28 | FROM scratch 29 | COPY --from=builder /distroless / 30 | 31 | ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/busybox 32 | ENV SSL_CERT_FILE=/etc/ssl/certs/ca-certificates.crt 33 | ENV LANG=C.UTF-8 34 | ENV JAVA_VERSION=17.0.15 35 | 36 | ENTRYPOINT [ "/usr/bin/java", "-jar" ] 37 | -------------------------------------------------------------------------------- /dockerfiles/17/distroless/debian11/latest/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM gcr.io/distroless/java17-debian11:latest as distroless 2 | 3 | FROM ubuntu as builder 4 | 5 | RUN apt-get update && apt-get -y --no-install-recommends install ca-certificates wget 6 | 7 | RUN dpkgArch="$(dpkg --print-architecture)"; \ 8 | case "${dpkgArch}" in \ 9 | 'amd64') \ 10 | url='https://github.com/SAP/SapMachine/releases/download/sapmachine-17.0.15/sapmachine-jre-17.0.15_linux-x64_bin.tar.gz'; \ 11 | ;; \ 12 | 'arm64') \ 13 | url='https://github.com/SAP/SapMachine/releases/download/sapmachine-17.0.15/sapmachine-jre-17.0.15_linux-aarch64_bin.tar.gz'; \ 14 | ;; \ 15 | 'ppc64el') \ 16 | url='https://github.com/SAP/SapMachine/releases/download/sapmachine-17.0.15/sapmachine-jre-17.0.15_linux-ppc64le_bin.tar.gz'; \ 17 | ;; \ 18 | *) echo >&2 "error: unsupported architecture '$dpkgArch'"; exit 1 ;; \ 19 | esac; \ 20 | wget -O sapmachine.tar.gz $url --progress=dot:giga 21 | 22 | COPY --from=distroless / /distroless 23 | 24 | RUN tar xzf sapmachine.tar.gz && \ 25 | rm -rf /distroless/etc/java-17-openjdk /distroless/usr/lib/jvm/java-17-openjdk-amd64 && \ 26 | mv sapmachine-jre-17.0.15 /distroless/usr/lib/jvm/java-17-openjdk-amd64 27 | 28 | FROM scratch 29 | COPY --from=builder /distroless / 30 | 31 | 32 | ENV SSL_CERT_FILE=/etc/ssl/certs/ca-certificates.crt 33 | ENV LANG=C.UTF-8 34 | ENV JAVA_VERSION=17.0.15 35 | 36 | ENTRYPOINT [ "/usr/bin/java", "-jar" ] 37 | -------------------------------------------------------------------------------- /dockerfiles/17/distroless/debian11/nonroot/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM gcr.io/distroless/java17-debian11:nonroot as distroless 2 | 3 | FROM ubuntu as builder 4 | 5 | RUN apt-get update && apt-get -y --no-install-recommends install ca-certificates wget 6 | 7 | RUN dpkgArch="$(dpkg --print-architecture)"; \ 8 | case "${dpkgArch}" in \ 9 | 'amd64') \ 10 | url='https://github.com/SAP/SapMachine/releases/download/sapmachine-17.0.15/sapmachine-jre-17.0.15_linux-x64_bin.tar.gz'; \ 11 | ;; \ 12 | 'arm64') \ 13 | url='https://github.com/SAP/SapMachine/releases/download/sapmachine-17.0.15/sapmachine-jre-17.0.15_linux-aarch64_bin.tar.gz'; \ 14 | ;; \ 15 | 'ppc64el') \ 16 | url='https://github.com/SAP/SapMachine/releases/download/sapmachine-17.0.15/sapmachine-jre-17.0.15_linux-ppc64le_bin.tar.gz'; \ 17 | ;; \ 18 | *) echo >&2 "error: unsupported architecture '$dpkgArch'"; exit 1 ;; \ 19 | esac; \ 20 | wget -O sapmachine.tar.gz $url --progress=dot:giga 21 | 22 | COPY --from=distroless / /distroless 23 | 24 | RUN tar xzf sapmachine.tar.gz && \ 25 | rm -rf /distroless/etc/java-17-openjdk /distroless/usr/lib/jvm/java-17-openjdk-amd64 && \ 26 | mv sapmachine-jre-17.0.15 /distroless/usr/lib/jvm/java-17-openjdk-amd64 27 | 28 | FROM scratch 29 | COPY --from=builder /distroless / 30 | 31 | 32 | ENV SSL_CERT_FILE=/etc/ssl/certs/ca-certificates.crt 33 | ENV LANG=C.UTF-8 34 | ENV JAVA_VERSION=17.0.15 35 | 36 | ENTRYPOINT [ "/usr/bin/java", "-jar" ] 37 | -------------------------------------------------------------------------------- /dockerfiles/17/gardenlinux/1592/jdk-headless/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ghcr.io/gardenlinux/gardenlinux:1592 2 | 3 | RUN apt-get update && \ 4 | apt-get -y --no-install-recommends install wget && \ 5 | wget -qO- https://dist.sapmachine.io/debian/sapmachine.key > /etc/apt/trusted.gpg.d/sapmachine.asc && \ 6 | chmod 644 /etc/apt/trusted.gpg.d/sapmachine.asc && \ 7 | echo "deb https://dist.sapmachine.io/debian/$(dpkg --print-architecture)/ ./" > /etc/apt/sources.list.d/sapmachine.list && \ 8 | apt-get update && \ 9 | apt-get -y --no-install-recommends install sapmachine-17-jdk-headless=17.0.15 && \ 10 | apt-get remove -y --purge --autoremove wget && \ 11 | rm -rf /var/lib/apt/lists/* 12 | 13 | ENV JAVA_HOME=/usr/lib/jvm/sapmachine-17 14 | 15 | CMD ["jshell"] 16 | -------------------------------------------------------------------------------- /dockerfiles/17/gardenlinux/1592/jdk/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ghcr.io/gardenlinux/gardenlinux:1592 2 | 3 | RUN apt-get update && \ 4 | apt-get -y --no-install-recommends install wget && \ 5 | wget -qO- https://dist.sapmachine.io/debian/sapmachine.key > /etc/apt/trusted.gpg.d/sapmachine.asc && \ 6 | chmod 644 /etc/apt/trusted.gpg.d/sapmachine.asc && \ 7 | echo "deb https://dist.sapmachine.io/debian/$(dpkg --print-architecture)/ ./" > /etc/apt/sources.list.d/sapmachine.list && \ 8 | apt-get update && \ 9 | apt-get -y --no-install-recommends install sapmachine-17-jdk=17.0.15 && \ 10 | apt-get remove -y --purge --autoremove wget && \ 11 | rm -rf /var/lib/apt/lists/* 12 | 13 | ENV JAVA_HOME=/usr/lib/jvm/sapmachine-17 14 | 15 | CMD ["jshell"] 16 | -------------------------------------------------------------------------------- /dockerfiles/17/gardenlinux/1592/jre-headless/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ghcr.io/gardenlinux/gardenlinux:1592 2 | 3 | RUN apt-get update && \ 4 | apt-get -y --no-install-recommends install wget && \ 5 | wget -qO- https://dist.sapmachine.io/debian/sapmachine.key > /etc/apt/trusted.gpg.d/sapmachine.asc && \ 6 | chmod 644 /etc/apt/trusted.gpg.d/sapmachine.asc && \ 7 | echo "deb https://dist.sapmachine.io/debian/$(dpkg --print-architecture)/ ./" > /etc/apt/sources.list.d/sapmachine.list && \ 8 | apt-get update && \ 9 | apt-get -y --no-install-recommends install sapmachine-17-jre-headless=17.0.15 && \ 10 | apt-get remove -y --purge --autoremove wget && \ 11 | rm -rf /var/lib/apt/lists/* 12 | 13 | ENV JAVA_HOME=/usr/lib/jvm/sapmachine-17 14 | 15 | CMD ["jshell"] 16 | -------------------------------------------------------------------------------- /dockerfiles/17/gardenlinux/1592/jre/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ghcr.io/gardenlinux/gardenlinux:1592 2 | 3 | RUN apt-get update && \ 4 | apt-get -y --no-install-recommends install wget && \ 5 | wget -qO- https://dist.sapmachine.io/debian/sapmachine.key > /etc/apt/trusted.gpg.d/sapmachine.asc && \ 6 | chmod 644 /etc/apt/trusted.gpg.d/sapmachine.asc && \ 7 | echo "deb https://dist.sapmachine.io/debian/$(dpkg --print-architecture)/ ./" > /etc/apt/sources.list.d/sapmachine.list && \ 8 | apt-get update && \ 9 | apt-get -y --no-install-recommends install sapmachine-17-jre=17.0.15 && \ 10 | apt-get remove -y --purge --autoremove wget && \ 11 | rm -rf /var/lib/apt/lists/* 12 | 13 | ENV JAVA_HOME=/usr/lib/jvm/sapmachine-17 14 | 15 | CMD ["jshell"] 16 | -------------------------------------------------------------------------------- /dockerfiles/17/ubuntu/20_04/jdk-headless/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ubuntu:20.04 2 | 3 | RUN apt-get update && \ 4 | apt-get -y --no-install-recommends install ca-certificates gnupg && \ 5 | export GNUPGHOME="$(mktemp -d)" && \ 6 | gpg --no-default-keyring --keyring gnupg-ring:/etc/apt/trusted.gpg.d/sapmachine.gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys CACB9FE09150307D1D22D82962754C3B3ABCFE23 && \ 7 | chmod 644 /etc/apt/trusted.gpg.d/sapmachine.gpg && \ 8 | echo "deb http://dist.sapmachine.io/debian/$(dpkg --print-architecture)/ ./" > /etc/apt/sources.list.d/sapmachine.list && \ 9 | apt-get update && \ 10 | apt-get -y --no-install-recommends install sapmachine-17-jdk-headless=17.0.15 && \ 11 | apt-get remove -y --purge --autoremove ca-certificates gnupg && \ 12 | rm -rf "$GNUPGHOME" /var/lib/apt/lists/* 13 | 14 | ENV JAVA_HOME=/usr/lib/jvm/sapmachine-17 15 | 16 | CMD ["jshell"] 17 | -------------------------------------------------------------------------------- /dockerfiles/17/ubuntu/20_04/jdk/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ubuntu:20.04 2 | 3 | RUN apt-get update && \ 4 | apt-get -y --no-install-recommends install ca-certificates gnupg && \ 5 | export GNUPGHOME="$(mktemp -d)" && \ 6 | gpg --no-default-keyring --keyring gnupg-ring:/etc/apt/trusted.gpg.d/sapmachine.gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys CACB9FE09150307D1D22D82962754C3B3ABCFE23 && \ 7 | chmod 644 /etc/apt/trusted.gpg.d/sapmachine.gpg && \ 8 | echo "deb http://dist.sapmachine.io/debian/$(dpkg --print-architecture)/ ./" > /etc/apt/sources.list.d/sapmachine.list && \ 9 | apt-get update && \ 10 | apt-get -y --no-install-recommends install sapmachine-17-jdk=17.0.15 && \ 11 | apt-get remove -y --purge --autoremove ca-certificates gnupg && \ 12 | rm -rf "$GNUPGHOME" /var/lib/apt/lists/* 13 | 14 | ENV JAVA_HOME=/usr/lib/jvm/sapmachine-17 15 | 16 | CMD ["jshell"] 17 | -------------------------------------------------------------------------------- /dockerfiles/17/ubuntu/20_04/jre-headless/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ubuntu:20.04 2 | 3 | RUN apt-get update && \ 4 | apt-get -y --no-install-recommends install ca-certificates gnupg && \ 5 | export GNUPGHOME="$(mktemp -d)" && \ 6 | gpg --no-default-keyring --keyring gnupg-ring:/etc/apt/trusted.gpg.d/sapmachine.gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys CACB9FE09150307D1D22D82962754C3B3ABCFE23 && \ 7 | chmod 644 /etc/apt/trusted.gpg.d/sapmachine.gpg && \ 8 | echo "deb http://dist.sapmachine.io/debian/$(dpkg --print-architecture)/ ./" > /etc/apt/sources.list.d/sapmachine.list && \ 9 | apt-get update && \ 10 | apt-get -y --no-install-recommends install sapmachine-17-jre-headless=17.0.15 && \ 11 | apt-get remove -y --purge --autoremove ca-certificates gnupg && \ 12 | rm -rf "$GNUPGHOME" /var/lib/apt/lists/* 13 | 14 | ENV JAVA_HOME=/usr/lib/jvm/sapmachine-17 15 | 16 | CMD ["jshell"] 17 | -------------------------------------------------------------------------------- /dockerfiles/17/ubuntu/20_04/jre/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ubuntu:20.04 2 | 3 | RUN apt-get update && \ 4 | apt-get -y --no-install-recommends install ca-certificates gnupg && \ 5 | export GNUPGHOME="$(mktemp -d)" && \ 6 | gpg --no-default-keyring --keyring gnupg-ring:/etc/apt/trusted.gpg.d/sapmachine.gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys CACB9FE09150307D1D22D82962754C3B3ABCFE23 && \ 7 | chmod 644 /etc/apt/trusted.gpg.d/sapmachine.gpg && \ 8 | echo "deb http://dist.sapmachine.io/debian/$(dpkg --print-architecture)/ ./" > /etc/apt/sources.list.d/sapmachine.list && \ 9 | apt-get update && \ 10 | apt-get -y --no-install-recommends install sapmachine-17-jre=17.0.15 && \ 11 | apt-get remove -y --purge --autoremove ca-certificates gnupg && \ 12 | rm -rf "$GNUPGHOME" /var/lib/apt/lists/* 13 | 14 | ENV JAVA_HOME=/usr/lib/jvm/sapmachine-17 15 | 16 | CMD ["jshell"] 17 | -------------------------------------------------------------------------------- /dockerfiles/17/ubuntu/22_04/jdk-headless/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ubuntu:22.04 2 | 3 | RUN apt-get update && \ 4 | apt-get -y --no-install-recommends install ca-certificates gnupg && \ 5 | export GNUPGHOME="$(mktemp -d)" && \ 6 | gpg --no-default-keyring --keyring gnupg-ring:/etc/apt/trusted.gpg.d/sapmachine.gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys CACB9FE09150307D1D22D82962754C3B3ABCFE23 && \ 7 | chmod 644 /etc/apt/trusted.gpg.d/sapmachine.gpg && \ 8 | echo "deb http://dist.sapmachine.io/debian/$(dpkg --print-architecture)/ ./" > /etc/apt/sources.list.d/sapmachine.list && \ 9 | apt-get update && \ 10 | apt-get -y --no-install-recommends install sapmachine-17-jdk-headless=17.0.15 && \ 11 | apt-get remove -y --purge --autoremove ca-certificates gnupg && \ 12 | rm -rf "$GNUPGHOME" /var/lib/apt/lists/* 13 | 14 | ENV JAVA_HOME=/usr/lib/jvm/sapmachine-17 15 | 16 | CMD ["jshell"] 17 | -------------------------------------------------------------------------------- /dockerfiles/17/ubuntu/22_04/jdk/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ubuntu:22.04 2 | 3 | RUN apt-get update && \ 4 | apt-get -y --no-install-recommends install ca-certificates gnupg && \ 5 | export GNUPGHOME="$(mktemp -d)" && \ 6 | gpg --no-default-keyring --keyring gnupg-ring:/etc/apt/trusted.gpg.d/sapmachine.gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys CACB9FE09150307D1D22D82962754C3B3ABCFE23 && \ 7 | chmod 644 /etc/apt/trusted.gpg.d/sapmachine.gpg && \ 8 | echo "deb http://dist.sapmachine.io/debian/$(dpkg --print-architecture)/ ./" > /etc/apt/sources.list.d/sapmachine.list && \ 9 | apt-get update && \ 10 | apt-get -y --no-install-recommends install sapmachine-17-jdk=17.0.15 && \ 11 | apt-get remove -y --purge --autoremove ca-certificates gnupg && \ 12 | rm -rf "$GNUPGHOME" /var/lib/apt/lists/* 13 | 14 | ENV JAVA_HOME=/usr/lib/jvm/sapmachine-17 15 | 16 | CMD ["jshell"] 17 | -------------------------------------------------------------------------------- /dockerfiles/17/ubuntu/22_04/jre-headless/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ubuntu:22.04 2 | 3 | RUN apt-get update && \ 4 | apt-get -y --no-install-recommends install ca-certificates gnupg && \ 5 | export GNUPGHOME="$(mktemp -d)" && \ 6 | gpg --no-default-keyring --keyring gnupg-ring:/etc/apt/trusted.gpg.d/sapmachine.gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys CACB9FE09150307D1D22D82962754C3B3ABCFE23 && \ 7 | chmod 644 /etc/apt/trusted.gpg.d/sapmachine.gpg && \ 8 | echo "deb http://dist.sapmachine.io/debian/$(dpkg --print-architecture)/ ./" > /etc/apt/sources.list.d/sapmachine.list && \ 9 | apt-get update && \ 10 | apt-get -y --no-install-recommends install sapmachine-17-jre-headless=17.0.15 && \ 11 | apt-get remove -y --purge --autoremove ca-certificates gnupg && \ 12 | rm -rf "$GNUPGHOME" /var/lib/apt/lists/* 13 | 14 | ENV JAVA_HOME=/usr/lib/jvm/sapmachine-17 15 | 16 | CMD ["jshell"] 17 | -------------------------------------------------------------------------------- /dockerfiles/17/ubuntu/22_04/jre/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ubuntu:22.04 2 | 3 | RUN apt-get update && \ 4 | apt-get -y --no-install-recommends install ca-certificates gnupg && \ 5 | export GNUPGHOME="$(mktemp -d)" && \ 6 | gpg --no-default-keyring --keyring gnupg-ring:/etc/apt/trusted.gpg.d/sapmachine.gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys CACB9FE09150307D1D22D82962754C3B3ABCFE23 && \ 7 | chmod 644 /etc/apt/trusted.gpg.d/sapmachine.gpg && \ 8 | echo "deb http://dist.sapmachine.io/debian/$(dpkg --print-architecture)/ ./" > /etc/apt/sources.list.d/sapmachine.list && \ 9 | apt-get update && \ 10 | apt-get -y --no-install-recommends install sapmachine-17-jre=17.0.15 && \ 11 | apt-get remove -y --purge --autoremove ca-certificates gnupg && \ 12 | rm -rf "$GNUPGHOME" /var/lib/apt/lists/* 13 | 14 | ENV JAVA_HOME=/usr/lib/jvm/sapmachine-17 15 | 16 | CMD ["jshell"] 17 | -------------------------------------------------------------------------------- /dockerfiles/17/ubuntu/24_04/jdk-headless/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ubuntu:24.04 2 | 3 | RUN apt-get update && \ 4 | apt-get -y --no-install-recommends install ca-certificates gnupg && \ 5 | export GNUPGHOME="$(mktemp -d)" && \ 6 | gpg --no-default-keyring --keyring gnupg-ring:/etc/apt/trusted.gpg.d/sapmachine.gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys CACB9FE09150307D1D22D82962754C3B3ABCFE23 && \ 7 | chmod 644 /etc/apt/trusted.gpg.d/sapmachine.gpg && \ 8 | echo "deb http://dist.sapmachine.io/debian/$(dpkg --print-architecture)/ ./" > /etc/apt/sources.list.d/sapmachine.list && \ 9 | apt-get update && \ 10 | apt-get -y --no-install-recommends install sapmachine-17-jdk-headless=17.0.15 && \ 11 | apt-get remove -y --purge --autoremove ca-certificates gnupg && \ 12 | rm -rf "$GNUPGHOME" /var/lib/apt/lists/* 13 | 14 | ENV JAVA_HOME=/usr/lib/jvm/sapmachine-17 15 | 16 | CMD ["jshell"] 17 | -------------------------------------------------------------------------------- /dockerfiles/17/ubuntu/24_04/jdk/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ubuntu:24.04 2 | 3 | RUN apt-get update && \ 4 | apt-get -y --no-install-recommends install ca-certificates gnupg && \ 5 | export GNUPGHOME="$(mktemp -d)" && \ 6 | gpg --no-default-keyring --keyring gnupg-ring:/etc/apt/trusted.gpg.d/sapmachine.gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys CACB9FE09150307D1D22D82962754C3B3ABCFE23 && \ 7 | chmod 644 /etc/apt/trusted.gpg.d/sapmachine.gpg && \ 8 | echo "deb http://dist.sapmachine.io/debian/$(dpkg --print-architecture)/ ./" > /etc/apt/sources.list.d/sapmachine.list && \ 9 | apt-get update && \ 10 | apt-get -y --no-install-recommends install sapmachine-17-jdk=17.0.15 && \ 11 | apt-get remove -y --purge --autoremove ca-certificates gnupg && \ 12 | rm -rf "$GNUPGHOME" /var/lib/apt/lists/* 13 | 14 | ENV JAVA_HOME=/usr/lib/jvm/sapmachine-17 15 | 16 | CMD ["jshell"] 17 | -------------------------------------------------------------------------------- /dockerfiles/17/ubuntu/24_04/jre-headless/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ubuntu:24.04 2 | 3 | RUN apt-get update && \ 4 | apt-get -y --no-install-recommends install ca-certificates gnupg && \ 5 | export GNUPGHOME="$(mktemp -d)" && \ 6 | gpg --no-default-keyring --keyring gnupg-ring:/etc/apt/trusted.gpg.d/sapmachine.gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys CACB9FE09150307D1D22D82962754C3B3ABCFE23 && \ 7 | chmod 644 /etc/apt/trusted.gpg.d/sapmachine.gpg && \ 8 | echo "deb http://dist.sapmachine.io/debian/$(dpkg --print-architecture)/ ./" > /etc/apt/sources.list.d/sapmachine.list && \ 9 | apt-get update && \ 10 | apt-get -y --no-install-recommends install sapmachine-17-jre-headless=17.0.15 && \ 11 | apt-get remove -y --purge --autoremove ca-certificates gnupg && \ 12 | rm -rf "$GNUPGHOME" /var/lib/apt/lists/* 13 | 14 | ENV JAVA_HOME=/usr/lib/jvm/sapmachine-17 15 | 16 | CMD ["jshell"] 17 | -------------------------------------------------------------------------------- /dockerfiles/17/ubuntu/24_04/jre/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ubuntu:24.04 2 | 3 | RUN apt-get update && \ 4 | apt-get -y --no-install-recommends install ca-certificates gnupg && \ 5 | export GNUPGHOME="$(mktemp -d)" && \ 6 | gpg --no-default-keyring --keyring gnupg-ring:/etc/apt/trusted.gpg.d/sapmachine.gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys CACB9FE09150307D1D22D82962754C3B3ABCFE23 && \ 7 | chmod 644 /etc/apt/trusted.gpg.d/sapmachine.gpg && \ 8 | echo "deb http://dist.sapmachine.io/debian/$(dpkg --print-architecture)/ ./" > /etc/apt/sources.list.d/sapmachine.list && \ 9 | apt-get update && \ 10 | apt-get -y --no-install-recommends install sapmachine-17-jre=17.0.15 && \ 11 | apt-get remove -y --purge --autoremove ca-certificates gnupg && \ 12 | rm -rf "$GNUPGHOME" /var/lib/apt/lists/* 13 | 14 | ENV JAVA_HOME=/usr/lib/jvm/sapmachine-17 15 | 16 | CMD ["jshell"] 17 | -------------------------------------------------------------------------------- /dockerfiles/21/README.md: -------------------------------------------------------------------------------- 1 | 2 | ### Overview 3 | 4 | The dockerfiles in this subdirectory define images for consuming the long term support release 21 (version: 21.0.7) of the SapMachine Java Virtual Machine (JVM). 5 | SapMachine is an OpenJDK based JVM that is built, quality tested and long-term supported by SAP. 6 | It is the default JVM on the [SAP Business Technology Platform](https://www.sap.com/products/technology-platform.html) and it is also supported as a [Standard JRE](https://github.com/cloudfoundry/java-buildpack/blob/master/docs/jre-sap_machine_jre.md) in the [Cloud Foundry Java Build Pack](https://github.com/cloudfoundry/java-buildpack). 7 | 8 | For more information see the [SapMachine website](https://sapmachine.io). 9 | 10 | The SapMachine image supports the x86/64, aarch64 and ppc64le architectures. 11 | 12 | Java and all Java-based trademarks and logos are trademarks or registered trademarks of Oracle and/or its affiliates. 13 | 14 | ### How to use this Image 15 | 16 | You can pull and test the image with the following commands: 17 | 18 | ```console 19 | docker pull sapmachine:21 20 | docker run -it sapmachine:21 java -version 21 | ``` 22 | 23 | You can also use the SapMachine image as a base image to run your own jar file: 24 | 25 | ```dockerfile 26 | FROM sapmachine:21 27 | RUN mkdir /opt/myapp 28 | COPY myapp.jar /opt/myapp 29 | CMD ["java", "-jar", "/opt/myapp/myapp.jar"] 30 | ``` 31 | 32 | You can then build and run your own Docker image: 33 | 34 | ```console 35 | docker build -t myapp . 36 | docker run -it --rm myapp 37 | ``` 38 | -------------------------------------------------------------------------------- /dockerfiles/21/alpine/3_21/jdk/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM alpine:3.21 2 | 3 | RUN wget -qO /etc/apk/keys/sapmachine-apk.rsa.pub https://dist.sapmachine.io/alpine/sapmachine-apk.rsa.pub && \ 4 | echo "4444e47cabf35695f9406692848de191d3b7cbd47dcdc1ffb62f4f70aea06e89 /etc/apk/keys/sapmachine-apk.rsa.pub" | sha256sum -c - && \ 5 | echo "https://dist.sapmachine.io/alpine" >> /etc/apk/repositories && \ 6 | apk add sapmachine-21-jdk=21.0.7-r0 7 | 8 | ENV JAVA_HOME=/usr/lib/jvm/java-21-sapmachine-jdk 9 | 10 | CMD ["jshell"] 11 | -------------------------------------------------------------------------------- /dockerfiles/21/alpine/3_21/jre/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM alpine:3.21 2 | 3 | RUN wget -qO /etc/apk/keys/sapmachine-apk.rsa.pub https://dist.sapmachine.io/alpine/sapmachine-apk.rsa.pub && \ 4 | echo "4444e47cabf35695f9406692848de191d3b7cbd47dcdc1ffb62f4f70aea06e89 /etc/apk/keys/sapmachine-apk.rsa.pub" | sha256sum -c - && \ 5 | echo "https://dist.sapmachine.io/alpine" >> /etc/apk/repositories && \ 6 | apk add sapmachine-21-jre=21.0.7-r0 7 | 8 | ENV JAVA_HOME=/usr/lib/jvm/java-21-sapmachine-jre 9 | 10 | CMD ["jshell"] 11 | -------------------------------------------------------------------------------- /dockerfiles/21/distroless/debian11/debug-nonroot/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM gcr.io/distroless/java21-debian11:debug-nonroot as distroless 2 | 3 | FROM ubuntu as builder 4 | 5 | RUN apt-get update && apt-get -y --no-install-recommends install ca-certificates wget 6 | 7 | RUN dpkgArch="$(dpkg --print-architecture)"; \ 8 | case "${dpkgArch}" in \ 9 | 'amd64') \ 10 | url='https://github.com/SAP/SapMachine/releases/download/sapmachine-21.0.7/sapmachine-jdk-21.0.7_linux-x64_bin.tar.gz'; \ 11 | ;; \ 12 | 'arm64') \ 13 | url='https://github.com/SAP/SapMachine/releases/download/sapmachine-21.0.7/sapmachine-jdk-21.0.7_linux-aarch64_bin.tar.gz'; \ 14 | ;; \ 15 | 'ppc64el') \ 16 | url='https://github.com/SAP/SapMachine/releases/download/sapmachine-21.0.7/sapmachine-jdk-21.0.7_linux-ppc64le_bin.tar.gz'; \ 17 | ;; \ 18 | *) echo >&2 "error: unsupported architecture '$dpkgArch'"; exit 1 ;; \ 19 | esac; \ 20 | wget -O sapmachine.tar.gz $url --progress=dot:giga 21 | 22 | COPY --from=distroless / /distroless 23 | 24 | RUN tar xzf sapmachine.tar.gz && \ 25 | rm -rf /distroless/etc/java-21-openjdk /distroless/usr/lib/jvm/java-21-openjdk-amd64 && \ 26 | mv sapmachine-jdk-21.0.7 /distroless/usr/lib/jvm/java-21-openjdk-amd64 27 | 28 | FROM scratch 29 | COPY --from=builder /distroless / 30 | 31 | ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/busybox 32 | ENV SSL_CERT_FILE=/etc/ssl/certs/ca-certificates.crt 33 | ENV LANG=C.UTF-8 34 | ENV JAVA_VERSION=21.0.7 35 | 36 | ENTRYPOINT [ "/usr/bin/java", "-jar" ] 37 | -------------------------------------------------------------------------------- /dockerfiles/21/distroless/debian11/debug/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM gcr.io/distroless/java21-debian11:debug as distroless 2 | 3 | FROM ubuntu as builder 4 | 5 | RUN apt-get update && apt-get -y --no-install-recommends install ca-certificates wget 6 | 7 | RUN dpkgArch="$(dpkg --print-architecture)"; \ 8 | case "${dpkgArch}" in \ 9 | 'amd64') \ 10 | url='https://github.com/SAP/SapMachine/releases/download/sapmachine-21.0.7/sapmachine-jdk-21.0.7_linux-x64_bin.tar.gz'; \ 11 | ;; \ 12 | 'arm64') \ 13 | url='https://github.com/SAP/SapMachine/releases/download/sapmachine-21.0.7/sapmachine-jdk-21.0.7_linux-aarch64_bin.tar.gz'; \ 14 | ;; \ 15 | 'ppc64el') \ 16 | url='https://github.com/SAP/SapMachine/releases/download/sapmachine-21.0.7/sapmachine-jdk-21.0.7_linux-ppc64le_bin.tar.gz'; \ 17 | ;; \ 18 | *) echo >&2 "error: unsupported architecture '$dpkgArch'"; exit 1 ;; \ 19 | esac; \ 20 | wget -O sapmachine.tar.gz $url --progress=dot:giga 21 | 22 | COPY --from=distroless / /distroless 23 | 24 | RUN tar xzf sapmachine.tar.gz && \ 25 | rm -rf /distroless/etc/java-21-openjdk /distroless/usr/lib/jvm/java-21-openjdk-amd64 && \ 26 | mv sapmachine-jdk-21.0.7 /distroless/usr/lib/jvm/java-21-openjdk-amd64 27 | 28 | FROM scratch 29 | COPY --from=builder /distroless / 30 | 31 | ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/busybox 32 | ENV SSL_CERT_FILE=/etc/ssl/certs/ca-certificates.crt 33 | ENV LANG=C.UTF-8 34 | ENV JAVA_VERSION=21.0.7 35 | 36 | ENTRYPOINT [ "/usr/bin/java", "-jar" ] 37 | -------------------------------------------------------------------------------- /dockerfiles/21/distroless/debian11/latest/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM gcr.io/distroless/java21-debian11:latest as distroless 2 | 3 | FROM ubuntu as builder 4 | 5 | RUN apt-get update && apt-get -y --no-install-recommends install ca-certificates wget 6 | 7 | RUN dpkgArch="$(dpkg --print-architecture)"; \ 8 | case "${dpkgArch}" in \ 9 | 'amd64') \ 10 | url='https://github.com/SAP/SapMachine/releases/download/sapmachine-21.0.7/sapmachine-jre-21.0.7_linux-x64_bin.tar.gz'; \ 11 | ;; \ 12 | 'arm64') \ 13 | url='https://github.com/SAP/SapMachine/releases/download/sapmachine-21.0.7/sapmachine-jre-21.0.7_linux-aarch64_bin.tar.gz'; \ 14 | ;; \ 15 | 'ppc64el') \ 16 | url='https://github.com/SAP/SapMachine/releases/download/sapmachine-21.0.7/sapmachine-jre-21.0.7_linux-ppc64le_bin.tar.gz'; \ 17 | ;; \ 18 | *) echo >&2 "error: unsupported architecture '$dpkgArch'"; exit 1 ;; \ 19 | esac; \ 20 | wget -O sapmachine.tar.gz $url --progress=dot:giga 21 | 22 | COPY --from=distroless / /distroless 23 | 24 | RUN tar xzf sapmachine.tar.gz && \ 25 | rm -rf /distroless/etc/java-21-openjdk /distroless/usr/lib/jvm/java-21-openjdk-amd64 && \ 26 | mv sapmachine-jre-21.0.7 /distroless/usr/lib/jvm/java-21-openjdk-amd64 27 | 28 | FROM scratch 29 | COPY --from=builder /distroless / 30 | 31 | 32 | ENV SSL_CERT_FILE=/etc/ssl/certs/ca-certificates.crt 33 | ENV LANG=C.UTF-8 34 | ENV JAVA_VERSION=21.0.7 35 | 36 | ENTRYPOINT [ "/usr/bin/java", "-jar" ] 37 | -------------------------------------------------------------------------------- /dockerfiles/21/distroless/debian11/nonroot/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM gcr.io/distroless/java21-debian11:nonroot as distroless 2 | 3 | FROM ubuntu as builder 4 | 5 | RUN apt-get update && apt-get -y --no-install-recommends install ca-certificates wget 6 | 7 | RUN dpkgArch="$(dpkg --print-architecture)"; \ 8 | case "${dpkgArch}" in \ 9 | 'amd64') \ 10 | url='https://github.com/SAP/SapMachine/releases/download/sapmachine-21.0.7/sapmachine-jre-21.0.7_linux-x64_bin.tar.gz'; \ 11 | ;; \ 12 | 'arm64') \ 13 | url='https://github.com/SAP/SapMachine/releases/download/sapmachine-21.0.7/sapmachine-jre-21.0.7_linux-aarch64_bin.tar.gz'; \ 14 | ;; \ 15 | 'ppc64el') \ 16 | url='https://github.com/SAP/SapMachine/releases/download/sapmachine-21.0.7/sapmachine-jre-21.0.7_linux-ppc64le_bin.tar.gz'; \ 17 | ;; \ 18 | *) echo >&2 "error: unsupported architecture '$dpkgArch'"; exit 1 ;; \ 19 | esac; \ 20 | wget -O sapmachine.tar.gz $url --progress=dot:giga 21 | 22 | COPY --from=distroless / /distroless 23 | 24 | RUN tar xzf sapmachine.tar.gz && \ 25 | rm -rf /distroless/etc/java-21-openjdk /distroless/usr/lib/jvm/java-21-openjdk-amd64 && \ 26 | mv sapmachine-jre-21.0.7 /distroless/usr/lib/jvm/java-21-openjdk-amd64 27 | 28 | FROM scratch 29 | COPY --from=builder /distroless / 30 | 31 | 32 | ENV SSL_CERT_FILE=/etc/ssl/certs/ca-certificates.crt 33 | ENV LANG=C.UTF-8 34 | ENV JAVA_VERSION=21.0.7 35 | 36 | ENTRYPOINT [ "/usr/bin/java", "-jar" ] 37 | -------------------------------------------------------------------------------- /dockerfiles/21/gardenlinux/1592/jdk-headless/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ghcr.io/gardenlinux/gardenlinux:1592 2 | 3 | RUN apt-get update && \ 4 | apt-get -y --no-install-recommends install wget && \ 5 | wget -qO- https://dist.sapmachine.io/debian/sapmachine.key > /etc/apt/trusted.gpg.d/sapmachine.asc && \ 6 | chmod 644 /etc/apt/trusted.gpg.d/sapmachine.asc && \ 7 | echo "deb https://dist.sapmachine.io/debian/$(dpkg --print-architecture)/ ./" > /etc/apt/sources.list.d/sapmachine.list && \ 8 | apt-get update && \ 9 | apt-get -y --no-install-recommends install sapmachine-21-jdk-headless=21.0.7 && \ 10 | apt-get remove -y --purge --autoremove wget && \ 11 | rm -rf /var/lib/apt/lists/* 12 | 13 | ENV JAVA_HOME=/usr/lib/jvm/sapmachine-21 14 | 15 | CMD ["jshell"] 16 | -------------------------------------------------------------------------------- /dockerfiles/21/gardenlinux/1592/jdk/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ghcr.io/gardenlinux/gardenlinux:1592 2 | 3 | RUN apt-get update && \ 4 | apt-get -y --no-install-recommends install wget && \ 5 | wget -qO- https://dist.sapmachine.io/debian/sapmachine.key > /etc/apt/trusted.gpg.d/sapmachine.asc && \ 6 | chmod 644 /etc/apt/trusted.gpg.d/sapmachine.asc && \ 7 | echo "deb https://dist.sapmachine.io/debian/$(dpkg --print-architecture)/ ./" > /etc/apt/sources.list.d/sapmachine.list && \ 8 | apt-get update && \ 9 | apt-get -y --no-install-recommends install sapmachine-21-jdk=21.0.7 && \ 10 | apt-get remove -y --purge --autoremove wget && \ 11 | rm -rf /var/lib/apt/lists/* 12 | 13 | ENV JAVA_HOME=/usr/lib/jvm/sapmachine-21 14 | 15 | CMD ["jshell"] 16 | -------------------------------------------------------------------------------- /dockerfiles/21/gardenlinux/1592/jre-headless/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ghcr.io/gardenlinux/gardenlinux:1592 2 | 3 | RUN apt-get update && \ 4 | apt-get -y --no-install-recommends install wget && \ 5 | wget -qO- https://dist.sapmachine.io/debian/sapmachine.key > /etc/apt/trusted.gpg.d/sapmachine.asc && \ 6 | chmod 644 /etc/apt/trusted.gpg.d/sapmachine.asc && \ 7 | echo "deb https://dist.sapmachine.io/debian/$(dpkg --print-architecture)/ ./" > /etc/apt/sources.list.d/sapmachine.list && \ 8 | apt-get update && \ 9 | apt-get -y --no-install-recommends install sapmachine-21-jre-headless=21.0.7 && \ 10 | apt-get remove -y --purge --autoremove wget && \ 11 | rm -rf /var/lib/apt/lists/* 12 | 13 | ENV JAVA_HOME=/usr/lib/jvm/sapmachine-21 14 | 15 | CMD ["jshell"] 16 | -------------------------------------------------------------------------------- /dockerfiles/21/gardenlinux/1592/jre/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ghcr.io/gardenlinux/gardenlinux:1592 2 | 3 | RUN apt-get update && \ 4 | apt-get -y --no-install-recommends install wget && \ 5 | wget -qO- https://dist.sapmachine.io/debian/sapmachine.key > /etc/apt/trusted.gpg.d/sapmachine.asc && \ 6 | chmod 644 /etc/apt/trusted.gpg.d/sapmachine.asc && \ 7 | echo "deb https://dist.sapmachine.io/debian/$(dpkg --print-architecture)/ ./" > /etc/apt/sources.list.d/sapmachine.list && \ 8 | apt-get update && \ 9 | apt-get -y --no-install-recommends install sapmachine-21-jre=21.0.7 && \ 10 | apt-get remove -y --purge --autoremove wget && \ 11 | rm -rf /var/lib/apt/lists/* 12 | 13 | ENV JAVA_HOME=/usr/lib/jvm/sapmachine-21 14 | 15 | CMD ["jshell"] 16 | -------------------------------------------------------------------------------- /dockerfiles/21/ubuntu/20_04/jdk-headless/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ubuntu:20.04 2 | 3 | RUN apt-get update && \ 4 | apt-get -y --no-install-recommends install ca-certificates gnupg && \ 5 | export GNUPGHOME="$(mktemp -d)" && \ 6 | gpg --no-default-keyring --keyring gnupg-ring:/etc/apt/trusted.gpg.d/sapmachine.gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys CACB9FE09150307D1D22D82962754C3B3ABCFE23 && \ 7 | chmod 644 /etc/apt/trusted.gpg.d/sapmachine.gpg && \ 8 | echo "deb http://dist.sapmachine.io/debian/$(dpkg --print-architecture)/ ./" > /etc/apt/sources.list.d/sapmachine.list && \ 9 | apt-get update && \ 10 | apt-get -y --no-install-recommends install sapmachine-21-jdk-headless=21.0.7 && \ 11 | apt-get remove -y --purge --autoremove ca-certificates gnupg && \ 12 | rm -rf "$GNUPGHOME" /var/lib/apt/lists/* 13 | 14 | ENV JAVA_HOME=/usr/lib/jvm/sapmachine-21 15 | 16 | CMD ["jshell"] 17 | -------------------------------------------------------------------------------- /dockerfiles/21/ubuntu/20_04/jdk/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ubuntu:20.04 2 | 3 | RUN apt-get update && \ 4 | apt-get -y --no-install-recommends install ca-certificates gnupg && \ 5 | export GNUPGHOME="$(mktemp -d)" && \ 6 | gpg --no-default-keyring --keyring gnupg-ring:/etc/apt/trusted.gpg.d/sapmachine.gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys CACB9FE09150307D1D22D82962754C3B3ABCFE23 && \ 7 | chmod 644 /etc/apt/trusted.gpg.d/sapmachine.gpg && \ 8 | echo "deb http://dist.sapmachine.io/debian/$(dpkg --print-architecture)/ ./" > /etc/apt/sources.list.d/sapmachine.list && \ 9 | apt-get update && \ 10 | apt-get -y --no-install-recommends install sapmachine-21-jdk=21.0.7 && \ 11 | apt-get remove -y --purge --autoremove ca-certificates gnupg && \ 12 | rm -rf "$GNUPGHOME" /var/lib/apt/lists/* 13 | 14 | ENV JAVA_HOME=/usr/lib/jvm/sapmachine-21 15 | 16 | CMD ["jshell"] 17 | -------------------------------------------------------------------------------- /dockerfiles/21/ubuntu/20_04/jre-headless/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ubuntu:20.04 2 | 3 | RUN apt-get update && \ 4 | apt-get -y --no-install-recommends install ca-certificates gnupg && \ 5 | export GNUPGHOME="$(mktemp -d)" && \ 6 | gpg --no-default-keyring --keyring gnupg-ring:/etc/apt/trusted.gpg.d/sapmachine.gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys CACB9FE09150307D1D22D82962754C3B3ABCFE23 && \ 7 | chmod 644 /etc/apt/trusted.gpg.d/sapmachine.gpg && \ 8 | echo "deb http://dist.sapmachine.io/debian/$(dpkg --print-architecture)/ ./" > /etc/apt/sources.list.d/sapmachine.list && \ 9 | apt-get update && \ 10 | apt-get -y --no-install-recommends install sapmachine-21-jre-headless=21.0.7 && \ 11 | apt-get remove -y --purge --autoremove ca-certificates gnupg && \ 12 | rm -rf "$GNUPGHOME" /var/lib/apt/lists/* 13 | 14 | ENV JAVA_HOME=/usr/lib/jvm/sapmachine-21 15 | 16 | CMD ["jshell"] 17 | -------------------------------------------------------------------------------- /dockerfiles/21/ubuntu/20_04/jre/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ubuntu:20.04 2 | 3 | RUN apt-get update && \ 4 | apt-get -y --no-install-recommends install ca-certificates gnupg && \ 5 | export GNUPGHOME="$(mktemp -d)" && \ 6 | gpg --no-default-keyring --keyring gnupg-ring:/etc/apt/trusted.gpg.d/sapmachine.gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys CACB9FE09150307D1D22D82962754C3B3ABCFE23 && \ 7 | chmod 644 /etc/apt/trusted.gpg.d/sapmachine.gpg && \ 8 | echo "deb http://dist.sapmachine.io/debian/$(dpkg --print-architecture)/ ./" > /etc/apt/sources.list.d/sapmachine.list && \ 9 | apt-get update && \ 10 | apt-get -y --no-install-recommends install sapmachine-21-jre=21.0.7 && \ 11 | apt-get remove -y --purge --autoremove ca-certificates gnupg && \ 12 | rm -rf "$GNUPGHOME" /var/lib/apt/lists/* 13 | 14 | ENV JAVA_HOME=/usr/lib/jvm/sapmachine-21 15 | 16 | CMD ["jshell"] 17 | -------------------------------------------------------------------------------- /dockerfiles/21/ubuntu/22_04/jdk-headless/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ubuntu:22.04 2 | 3 | RUN apt-get update && \ 4 | apt-get -y --no-install-recommends install ca-certificates gnupg && \ 5 | export GNUPGHOME="$(mktemp -d)" && \ 6 | gpg --no-default-keyring --keyring gnupg-ring:/etc/apt/trusted.gpg.d/sapmachine.gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys CACB9FE09150307D1D22D82962754C3B3ABCFE23 && \ 7 | chmod 644 /etc/apt/trusted.gpg.d/sapmachine.gpg && \ 8 | echo "deb http://dist.sapmachine.io/debian/$(dpkg --print-architecture)/ ./" > /etc/apt/sources.list.d/sapmachine.list && \ 9 | apt-get update && \ 10 | apt-get -y --no-install-recommends install sapmachine-21-jdk-headless=21.0.7 && \ 11 | apt-get remove -y --purge --autoremove ca-certificates gnupg && \ 12 | rm -rf "$GNUPGHOME" /var/lib/apt/lists/* 13 | 14 | ENV JAVA_HOME=/usr/lib/jvm/sapmachine-21 15 | 16 | CMD ["jshell"] 17 | -------------------------------------------------------------------------------- /dockerfiles/21/ubuntu/22_04/jdk/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ubuntu:22.04 2 | 3 | RUN apt-get update && \ 4 | apt-get -y --no-install-recommends install ca-certificates gnupg && \ 5 | export GNUPGHOME="$(mktemp -d)" && \ 6 | gpg --no-default-keyring --keyring gnupg-ring:/etc/apt/trusted.gpg.d/sapmachine.gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys CACB9FE09150307D1D22D82962754C3B3ABCFE23 && \ 7 | chmod 644 /etc/apt/trusted.gpg.d/sapmachine.gpg && \ 8 | echo "deb http://dist.sapmachine.io/debian/$(dpkg --print-architecture)/ ./" > /etc/apt/sources.list.d/sapmachine.list && \ 9 | apt-get update && \ 10 | apt-get -y --no-install-recommends install sapmachine-21-jdk=21.0.7 && \ 11 | apt-get remove -y --purge --autoremove ca-certificates gnupg && \ 12 | rm -rf "$GNUPGHOME" /var/lib/apt/lists/* 13 | 14 | ENV JAVA_HOME=/usr/lib/jvm/sapmachine-21 15 | 16 | CMD ["jshell"] 17 | -------------------------------------------------------------------------------- /dockerfiles/21/ubuntu/22_04/jre-headless/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ubuntu:22.04 2 | 3 | RUN apt-get update && \ 4 | apt-get -y --no-install-recommends install ca-certificates gnupg && \ 5 | export GNUPGHOME="$(mktemp -d)" && \ 6 | gpg --no-default-keyring --keyring gnupg-ring:/etc/apt/trusted.gpg.d/sapmachine.gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys CACB9FE09150307D1D22D82962754C3B3ABCFE23 && \ 7 | chmod 644 /etc/apt/trusted.gpg.d/sapmachine.gpg && \ 8 | echo "deb http://dist.sapmachine.io/debian/$(dpkg --print-architecture)/ ./" > /etc/apt/sources.list.d/sapmachine.list && \ 9 | apt-get update && \ 10 | apt-get -y --no-install-recommends install sapmachine-21-jre-headless=21.0.7 && \ 11 | apt-get remove -y --purge --autoremove ca-certificates gnupg && \ 12 | rm -rf "$GNUPGHOME" /var/lib/apt/lists/* 13 | 14 | ENV JAVA_HOME=/usr/lib/jvm/sapmachine-21 15 | 16 | CMD ["jshell"] 17 | -------------------------------------------------------------------------------- /dockerfiles/21/ubuntu/22_04/jre/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ubuntu:22.04 2 | 3 | RUN apt-get update && \ 4 | apt-get -y --no-install-recommends install ca-certificates gnupg && \ 5 | export GNUPGHOME="$(mktemp -d)" && \ 6 | gpg --no-default-keyring --keyring gnupg-ring:/etc/apt/trusted.gpg.d/sapmachine.gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys CACB9FE09150307D1D22D82962754C3B3ABCFE23 && \ 7 | chmod 644 /etc/apt/trusted.gpg.d/sapmachine.gpg && \ 8 | echo "deb http://dist.sapmachine.io/debian/$(dpkg --print-architecture)/ ./" > /etc/apt/sources.list.d/sapmachine.list && \ 9 | apt-get update && \ 10 | apt-get -y --no-install-recommends install sapmachine-21-jre=21.0.7 && \ 11 | apt-get remove -y --purge --autoremove ca-certificates gnupg && \ 12 | rm -rf "$GNUPGHOME" /var/lib/apt/lists/* 13 | 14 | ENV JAVA_HOME=/usr/lib/jvm/sapmachine-21 15 | 16 | CMD ["jshell"] 17 | -------------------------------------------------------------------------------- /dockerfiles/21/ubuntu/24_04/jdk-headless/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ubuntu:24.04 2 | 3 | RUN apt-get update && \ 4 | apt-get -y --no-install-recommends install ca-certificates gnupg && \ 5 | export GNUPGHOME="$(mktemp -d)" && \ 6 | gpg --no-default-keyring --keyring gnupg-ring:/etc/apt/trusted.gpg.d/sapmachine.gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys CACB9FE09150307D1D22D82962754C3B3ABCFE23 && \ 7 | chmod 644 /etc/apt/trusted.gpg.d/sapmachine.gpg && \ 8 | echo "deb http://dist.sapmachine.io/debian/$(dpkg --print-architecture)/ ./" > /etc/apt/sources.list.d/sapmachine.list && \ 9 | apt-get update && \ 10 | apt-get -y --no-install-recommends install sapmachine-21-jdk-headless=21.0.7 && \ 11 | apt-get remove -y --purge --autoremove ca-certificates gnupg && \ 12 | rm -rf "$GNUPGHOME" /var/lib/apt/lists/* 13 | 14 | ENV JAVA_HOME=/usr/lib/jvm/sapmachine-21 15 | 16 | CMD ["jshell"] 17 | -------------------------------------------------------------------------------- /dockerfiles/21/ubuntu/24_04/jdk/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ubuntu:24.04 2 | 3 | RUN apt-get update && \ 4 | apt-get -y --no-install-recommends install ca-certificates gnupg && \ 5 | export GNUPGHOME="$(mktemp -d)" && \ 6 | gpg --no-default-keyring --keyring gnupg-ring:/etc/apt/trusted.gpg.d/sapmachine.gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys CACB9FE09150307D1D22D82962754C3B3ABCFE23 && \ 7 | chmod 644 /etc/apt/trusted.gpg.d/sapmachine.gpg && \ 8 | echo "deb http://dist.sapmachine.io/debian/$(dpkg --print-architecture)/ ./" > /etc/apt/sources.list.d/sapmachine.list && \ 9 | apt-get update && \ 10 | apt-get -y --no-install-recommends install sapmachine-21-jdk=21.0.7 && \ 11 | apt-get remove -y --purge --autoremove ca-certificates gnupg && \ 12 | rm -rf "$GNUPGHOME" /var/lib/apt/lists/* 13 | 14 | ENV JAVA_HOME=/usr/lib/jvm/sapmachine-21 15 | 16 | CMD ["jshell"] 17 | -------------------------------------------------------------------------------- /dockerfiles/21/ubuntu/24_04/jre-headless/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ubuntu:24.04 2 | 3 | RUN apt-get update && \ 4 | apt-get -y --no-install-recommends install ca-certificates gnupg && \ 5 | export GNUPGHOME="$(mktemp -d)" && \ 6 | gpg --no-default-keyring --keyring gnupg-ring:/etc/apt/trusted.gpg.d/sapmachine.gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys CACB9FE09150307D1D22D82962754C3B3ABCFE23 && \ 7 | chmod 644 /etc/apt/trusted.gpg.d/sapmachine.gpg && \ 8 | echo "deb http://dist.sapmachine.io/debian/$(dpkg --print-architecture)/ ./" > /etc/apt/sources.list.d/sapmachine.list && \ 9 | apt-get update && \ 10 | apt-get -y --no-install-recommends install sapmachine-21-jre-headless=21.0.7 && \ 11 | apt-get remove -y --purge --autoremove ca-certificates gnupg && \ 12 | rm -rf "$GNUPGHOME" /var/lib/apt/lists/* 13 | 14 | ENV JAVA_HOME=/usr/lib/jvm/sapmachine-21 15 | 16 | CMD ["jshell"] 17 | -------------------------------------------------------------------------------- /dockerfiles/21/ubuntu/24_04/jre/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ubuntu:24.04 2 | 3 | RUN apt-get update && \ 4 | apt-get -y --no-install-recommends install ca-certificates gnupg && \ 5 | export GNUPGHOME="$(mktemp -d)" && \ 6 | gpg --no-default-keyring --keyring gnupg-ring:/etc/apt/trusted.gpg.d/sapmachine.gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys CACB9FE09150307D1D22D82962754C3B3ABCFE23 && \ 7 | chmod 644 /etc/apt/trusted.gpg.d/sapmachine.gpg && \ 8 | echo "deb http://dist.sapmachine.io/debian/$(dpkg --print-architecture)/ ./" > /etc/apt/sources.list.d/sapmachine.list && \ 9 | apt-get update && \ 10 | apt-get -y --no-install-recommends install sapmachine-21-jre=21.0.7 && \ 11 | apt-get remove -y --purge --autoremove ca-certificates gnupg && \ 12 | rm -rf "$GNUPGHOME" /var/lib/apt/lists/* 13 | 14 | ENV JAVA_HOME=/usr/lib/jvm/sapmachine-21 15 | 16 | CMD ["jshell"] 17 | -------------------------------------------------------------------------------- /dockerfiles/24/README.md: -------------------------------------------------------------------------------- 1 | 2 | ### Overview 3 | 4 | The dockerfiles in this subdirectory define images for consuming the stable release 24 (version: 24.0.1) of the SapMachine Java Virtual Machine (JVM). 5 | SapMachine is an OpenJDK based JVM that is built, quality tested and long-term supported by SAP. 6 | It is the default JVM on the [SAP Business Technology Platform](https://www.sap.com/products/technology-platform.html) and it is also supported as a [Standard JRE](https://github.com/cloudfoundry/java-buildpack/blob/master/docs/jre-sap_machine_jre.md) in the [Cloud Foundry Java Build Pack](https://github.com/cloudfoundry/java-buildpack). 7 | 8 | For more information see the [SapMachine website](https://sapmachine.io). 9 | 10 | The SapMachine image supports the x86/64, aarch64 and ppc64le architectures. 11 | 12 | Java and all Java-based trademarks and logos are trademarks or registered trademarks of Oracle and/or its affiliates. 13 | 14 | ### How to use this Image 15 | 16 | You can pull and test the image with the following commands: 17 | 18 | ```console 19 | docker pull sapmachine:stable 20 | docker run -it sapmachine:stable java -version 21 | ``` 22 | 23 | You can also use the SapMachine image as a base image to run your own jar file: 24 | 25 | ```dockerfile 26 | FROM sapmachine:stable 27 | RUN mkdir /opt/myapp 28 | COPY myapp.jar /opt/myapp 29 | CMD ["java", "-jar", "/opt/myapp/myapp.jar"] 30 | ``` 31 | 32 | You can then build and run your own Docker image: 33 | 34 | ```console 35 | docker build -t myapp . 36 | docker run -it --rm myapp 37 | ``` 38 | -------------------------------------------------------------------------------- /dockerfiles/24/alpine/3_21/jdk/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM alpine:3.21 2 | 3 | RUN wget -qO /etc/apk/keys/sapmachine-apk.rsa.pub https://dist.sapmachine.io/alpine/sapmachine-apk.rsa.pub && \ 4 | echo "4444e47cabf35695f9406692848de191d3b7cbd47dcdc1ffb62f4f70aea06e89 /etc/apk/keys/sapmachine-apk.rsa.pub" | sha256sum -c - && \ 5 | echo "https://dist.sapmachine.io/alpine" >> /etc/apk/repositories && \ 6 | apk add sapmachine-24-jdk=24.0.1-r0 7 | 8 | ENV JAVA_HOME=/usr/lib/jvm/java-24-sapmachine-jdk 9 | 10 | CMD ["jshell"] 11 | -------------------------------------------------------------------------------- /dockerfiles/24/alpine/3_21/jre/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM alpine:3.21 2 | 3 | RUN wget -qO /etc/apk/keys/sapmachine-apk.rsa.pub https://dist.sapmachine.io/alpine/sapmachine-apk.rsa.pub && \ 4 | echo "4444e47cabf35695f9406692848de191d3b7cbd47dcdc1ffb62f4f70aea06e89 /etc/apk/keys/sapmachine-apk.rsa.pub" | sha256sum -c - && \ 5 | echo "https://dist.sapmachine.io/alpine" >> /etc/apk/repositories && \ 6 | apk add sapmachine-24-jre=24.0.1-r0 7 | 8 | ENV JAVA_HOME=/usr/lib/jvm/java-24-sapmachine-jre 9 | 10 | CMD ["jshell"] 11 | -------------------------------------------------------------------------------- /dockerfiles/24/distroless/debian11/debug-nonroot/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM gcr.io/distroless/java-base-debian11:debug-nonroot as distroless 2 | 3 | FROM ubuntu as builder 4 | 5 | RUN apt-get update && apt-get -y --no-install-recommends install ca-certificates wget 6 | 7 | RUN dpkgArch="$(dpkg --print-architecture)"; \ 8 | case "${dpkgArch}" in \ 9 | 'amd64') \ 10 | url='https://github.com/SAP/SapMachine/releases/download/sapmachine-24.0.1/sapmachine-jdk-24.0.1_linux-x64_bin.tar.gz'; \ 11 | ;; \ 12 | 'arm64') \ 13 | url='https://github.com/SAP/SapMachine/releases/download/sapmachine-24.0.1/sapmachine-jdk-24.0.1_linux-aarch64_bin.tar.gz'; \ 14 | ;; \ 15 | 'ppc64el') \ 16 | url='https://github.com/SAP/SapMachine/releases/download/sapmachine-24.0.1/sapmachine-jdk-24.0.1_linux-ppc64le_bin.tar.gz'; \ 17 | ;; \ 18 | *) echo >&2 "error: unsupported architecture '$dpkgArch'"; exit 1 ;; \ 19 | esac; \ 20 | wget -O sapmachine.tar.gz $url --progress=dot:giga 21 | 22 | COPY --from=distroless / /distroless 23 | 24 | RUN tar xzf sapmachine.tar.gz && \ 25 | rm -rf /distroless/etc/java-24-openjdk /distroless/usr/lib/jvm/java-24-openjdk-amd64 && \ 26 | mv sapmachine-jdk-24.0.1 /distroless/usr/lib/jvm/java-24-openjdk-amd64 27 | 28 | FROM scratch 29 | COPY --from=builder /distroless / 30 | 31 | ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/busybox 32 | ENV SSL_CERT_FILE=/etc/ssl/certs/ca-certificates.crt 33 | ENV LANG=C.UTF-8 34 | ENV JAVA_VERSION=24.0.1 35 | 36 | ENTRYPOINT [ "/usr/bin/java", "-jar" ] 37 | -------------------------------------------------------------------------------- /dockerfiles/24/distroless/debian11/debug/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM gcr.io/distroless/java-base-debian11:debug as distroless 2 | 3 | FROM ubuntu as builder 4 | 5 | RUN apt-get update && apt-get -y --no-install-recommends install ca-certificates wget 6 | 7 | RUN dpkgArch="$(dpkg --print-architecture)"; \ 8 | case "${dpkgArch}" in \ 9 | 'amd64') \ 10 | url='https://github.com/SAP/SapMachine/releases/download/sapmachine-24.0.1/sapmachine-jdk-24.0.1_linux-x64_bin.tar.gz'; \ 11 | ;; \ 12 | 'arm64') \ 13 | url='https://github.com/SAP/SapMachine/releases/download/sapmachine-24.0.1/sapmachine-jdk-24.0.1_linux-aarch64_bin.tar.gz'; \ 14 | ;; \ 15 | 'ppc64el') \ 16 | url='https://github.com/SAP/SapMachine/releases/download/sapmachine-24.0.1/sapmachine-jdk-24.0.1_linux-ppc64le_bin.tar.gz'; \ 17 | ;; \ 18 | *) echo >&2 "error: unsupported architecture '$dpkgArch'"; exit 1 ;; \ 19 | esac; \ 20 | wget -O sapmachine.tar.gz $url --progress=dot:giga 21 | 22 | COPY --from=distroless / /distroless 23 | 24 | RUN tar xzf sapmachine.tar.gz && \ 25 | rm -rf /distroless/etc/java-24-openjdk /distroless/usr/lib/jvm/java-24-openjdk-amd64 && \ 26 | mv sapmachine-jdk-24.0.1 /distroless/usr/lib/jvm/java-24-openjdk-amd64 27 | 28 | FROM scratch 29 | COPY --from=builder /distroless / 30 | 31 | ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/busybox 32 | ENV SSL_CERT_FILE=/etc/ssl/certs/ca-certificates.crt 33 | ENV LANG=C.UTF-8 34 | ENV JAVA_VERSION=24.0.1 35 | 36 | ENTRYPOINT [ "/usr/bin/java", "-jar" ] 37 | -------------------------------------------------------------------------------- /dockerfiles/24/distroless/debian11/latest/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM gcr.io/distroless/java-base-debian11:latest as distroless 2 | 3 | FROM ubuntu as builder 4 | 5 | RUN apt-get update && apt-get -y --no-install-recommends install ca-certificates wget 6 | 7 | RUN dpkgArch="$(dpkg --print-architecture)"; \ 8 | case "${dpkgArch}" in \ 9 | 'amd64') \ 10 | url='https://github.com/SAP/SapMachine/releases/download/sapmachine-24.0.1/sapmachine-jre-24.0.1_linux-x64_bin.tar.gz'; \ 11 | ;; \ 12 | 'arm64') \ 13 | url='https://github.com/SAP/SapMachine/releases/download/sapmachine-24.0.1/sapmachine-jre-24.0.1_linux-aarch64_bin.tar.gz'; \ 14 | ;; \ 15 | 'ppc64el') \ 16 | url='https://github.com/SAP/SapMachine/releases/download/sapmachine-24.0.1/sapmachine-jre-24.0.1_linux-ppc64le_bin.tar.gz'; \ 17 | ;; \ 18 | *) echo >&2 "error: unsupported architecture '$dpkgArch'"; exit 1 ;; \ 19 | esac; \ 20 | wget -O sapmachine.tar.gz $url --progress=dot:giga 21 | 22 | COPY --from=distroless / /distroless 23 | 24 | RUN tar xzf sapmachine.tar.gz && \ 25 | rm -rf /distroless/etc/java-24-openjdk /distroless/usr/lib/jvm/java-24-openjdk-amd64 && \ 26 | mv sapmachine-jre-24.0.1 /distroless/usr/lib/jvm/java-24-openjdk-amd64 27 | 28 | FROM scratch 29 | COPY --from=builder /distroless / 30 | 31 | 32 | ENV SSL_CERT_FILE=/etc/ssl/certs/ca-certificates.crt 33 | ENV LANG=C.UTF-8 34 | ENV JAVA_VERSION=24.0.1 35 | 36 | ENTRYPOINT [ "/usr/bin/java", "-jar" ] 37 | -------------------------------------------------------------------------------- /dockerfiles/24/distroless/debian11/nonroot/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM gcr.io/distroless/java-base-debian11:nonroot as distroless 2 | 3 | FROM ubuntu as builder 4 | 5 | RUN apt-get update && apt-get -y --no-install-recommends install ca-certificates wget 6 | 7 | RUN dpkgArch="$(dpkg --print-architecture)"; \ 8 | case "${dpkgArch}" in \ 9 | 'amd64') \ 10 | url='https://github.com/SAP/SapMachine/releases/download/sapmachine-24.0.1/sapmachine-jre-24.0.1_linux-x64_bin.tar.gz'; \ 11 | ;; \ 12 | 'arm64') \ 13 | url='https://github.com/SAP/SapMachine/releases/download/sapmachine-24.0.1/sapmachine-jre-24.0.1_linux-aarch64_bin.tar.gz'; \ 14 | ;; \ 15 | 'ppc64el') \ 16 | url='https://github.com/SAP/SapMachine/releases/download/sapmachine-24.0.1/sapmachine-jre-24.0.1_linux-ppc64le_bin.tar.gz'; \ 17 | ;; \ 18 | *) echo >&2 "error: unsupported architecture '$dpkgArch'"; exit 1 ;; \ 19 | esac; \ 20 | wget -O sapmachine.tar.gz $url --progress=dot:giga 21 | 22 | COPY --from=distroless / /distroless 23 | 24 | RUN tar xzf sapmachine.tar.gz && \ 25 | rm -rf /distroless/etc/java-24-openjdk /distroless/usr/lib/jvm/java-24-openjdk-amd64 && \ 26 | mv sapmachine-jre-24.0.1 /distroless/usr/lib/jvm/java-24-openjdk-amd64 27 | 28 | FROM scratch 29 | COPY --from=builder /distroless / 30 | 31 | 32 | ENV SSL_CERT_FILE=/etc/ssl/certs/ca-certificates.crt 33 | ENV LANG=C.UTF-8 34 | ENV JAVA_VERSION=24.0.1 35 | 36 | ENTRYPOINT [ "/usr/bin/java", "-jar" ] 37 | -------------------------------------------------------------------------------- /dockerfiles/24/gardenlinux/1592/jdk-headless/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ghcr.io/gardenlinux/gardenlinux:1592 2 | 3 | RUN apt-get update && \ 4 | apt-get -y --no-install-recommends install wget && \ 5 | wget -qO- https://dist.sapmachine.io/debian/sapmachine.key > /etc/apt/trusted.gpg.d/sapmachine.asc && \ 6 | chmod 644 /etc/apt/trusted.gpg.d/sapmachine.asc && \ 7 | echo "deb https://dist.sapmachine.io/debian/$(dpkg --print-architecture)/ ./" > /etc/apt/sources.list.d/sapmachine.list && \ 8 | apt-get update && \ 9 | apt-get -y --no-install-recommends install sapmachine-24-jdk-headless=24.0.1 && \ 10 | apt-get remove -y --purge --autoremove wget && \ 11 | rm -rf /var/lib/apt/lists/* 12 | 13 | ENV JAVA_HOME=/usr/lib/jvm/sapmachine-24 14 | 15 | CMD ["jshell"] 16 | -------------------------------------------------------------------------------- /dockerfiles/24/gardenlinux/1592/jdk/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ghcr.io/gardenlinux/gardenlinux:1592 2 | 3 | RUN apt-get update && \ 4 | apt-get -y --no-install-recommends install wget && \ 5 | wget -qO- https://dist.sapmachine.io/debian/sapmachine.key > /etc/apt/trusted.gpg.d/sapmachine.asc && \ 6 | chmod 644 /etc/apt/trusted.gpg.d/sapmachine.asc && \ 7 | echo "deb https://dist.sapmachine.io/debian/$(dpkg --print-architecture)/ ./" > /etc/apt/sources.list.d/sapmachine.list && \ 8 | apt-get update && \ 9 | apt-get -y --no-install-recommends install sapmachine-24-jdk=24.0.1 && \ 10 | apt-get remove -y --purge --autoremove wget && \ 11 | rm -rf /var/lib/apt/lists/* 12 | 13 | ENV JAVA_HOME=/usr/lib/jvm/sapmachine-24 14 | 15 | CMD ["jshell"] 16 | -------------------------------------------------------------------------------- /dockerfiles/24/gardenlinux/1592/jre-headless/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ghcr.io/gardenlinux/gardenlinux:1592 2 | 3 | RUN apt-get update && \ 4 | apt-get -y --no-install-recommends install wget && \ 5 | wget -qO- https://dist.sapmachine.io/debian/sapmachine.key > /etc/apt/trusted.gpg.d/sapmachine.asc && \ 6 | chmod 644 /etc/apt/trusted.gpg.d/sapmachine.asc && \ 7 | echo "deb https://dist.sapmachine.io/debian/$(dpkg --print-architecture)/ ./" > /etc/apt/sources.list.d/sapmachine.list && \ 8 | apt-get update && \ 9 | apt-get -y --no-install-recommends install sapmachine-24-jre-headless=24.0.1 && \ 10 | apt-get remove -y --purge --autoremove wget && \ 11 | rm -rf /var/lib/apt/lists/* 12 | 13 | ENV JAVA_HOME=/usr/lib/jvm/sapmachine-24 14 | 15 | CMD ["jshell"] 16 | -------------------------------------------------------------------------------- /dockerfiles/24/gardenlinux/1592/jre/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ghcr.io/gardenlinux/gardenlinux:1592 2 | 3 | RUN apt-get update && \ 4 | apt-get -y --no-install-recommends install wget && \ 5 | wget -qO- https://dist.sapmachine.io/debian/sapmachine.key > /etc/apt/trusted.gpg.d/sapmachine.asc && \ 6 | chmod 644 /etc/apt/trusted.gpg.d/sapmachine.asc && \ 7 | echo "deb https://dist.sapmachine.io/debian/$(dpkg --print-architecture)/ ./" > /etc/apt/sources.list.d/sapmachine.list && \ 8 | apt-get update && \ 9 | apt-get -y --no-install-recommends install sapmachine-24-jre=24.0.1 && \ 10 | apt-get remove -y --purge --autoremove wget && \ 11 | rm -rf /var/lib/apt/lists/* 12 | 13 | ENV JAVA_HOME=/usr/lib/jvm/sapmachine-24 14 | 15 | CMD ["jshell"] 16 | -------------------------------------------------------------------------------- /dockerfiles/24/ubuntu/20_04/jdk-headless/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ubuntu:20.04 2 | 3 | RUN apt-get update && \ 4 | apt-get -y --no-install-recommends install ca-certificates gnupg && \ 5 | export GNUPGHOME="$(mktemp -d)" && \ 6 | gpg --no-default-keyring --keyring gnupg-ring:/etc/apt/trusted.gpg.d/sapmachine.gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys CACB9FE09150307D1D22D82962754C3B3ABCFE23 && \ 7 | chmod 644 /etc/apt/trusted.gpg.d/sapmachine.gpg && \ 8 | echo "deb http://dist.sapmachine.io/debian/$(dpkg --print-architecture)/ ./" > /etc/apt/sources.list.d/sapmachine.list && \ 9 | apt-get update && \ 10 | apt-get -y --no-install-recommends install sapmachine-24-jdk-headless=24.0.1 && \ 11 | apt-get remove -y --purge --autoremove ca-certificates gnupg && \ 12 | rm -rf "$GNUPGHOME" /var/lib/apt/lists/* 13 | 14 | ENV JAVA_HOME=/usr/lib/jvm/sapmachine-24 15 | 16 | CMD ["jshell"] 17 | -------------------------------------------------------------------------------- /dockerfiles/24/ubuntu/20_04/jdk/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ubuntu:20.04 2 | 3 | RUN apt-get update && \ 4 | apt-get -y --no-install-recommends install ca-certificates gnupg && \ 5 | export GNUPGHOME="$(mktemp -d)" && \ 6 | gpg --no-default-keyring --keyring gnupg-ring:/etc/apt/trusted.gpg.d/sapmachine.gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys CACB9FE09150307D1D22D82962754C3B3ABCFE23 && \ 7 | chmod 644 /etc/apt/trusted.gpg.d/sapmachine.gpg && \ 8 | echo "deb http://dist.sapmachine.io/debian/$(dpkg --print-architecture)/ ./" > /etc/apt/sources.list.d/sapmachine.list && \ 9 | apt-get update && \ 10 | apt-get -y --no-install-recommends install sapmachine-24-jdk=24.0.1 && \ 11 | apt-get remove -y --purge --autoremove ca-certificates gnupg && \ 12 | rm -rf "$GNUPGHOME" /var/lib/apt/lists/* 13 | 14 | ENV JAVA_HOME=/usr/lib/jvm/sapmachine-24 15 | 16 | CMD ["jshell"] 17 | -------------------------------------------------------------------------------- /dockerfiles/24/ubuntu/20_04/jre-headless/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ubuntu:20.04 2 | 3 | RUN apt-get update && \ 4 | apt-get -y --no-install-recommends install ca-certificates gnupg && \ 5 | export GNUPGHOME="$(mktemp -d)" && \ 6 | gpg --no-default-keyring --keyring gnupg-ring:/etc/apt/trusted.gpg.d/sapmachine.gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys CACB9FE09150307D1D22D82962754C3B3ABCFE23 && \ 7 | chmod 644 /etc/apt/trusted.gpg.d/sapmachine.gpg && \ 8 | echo "deb http://dist.sapmachine.io/debian/$(dpkg --print-architecture)/ ./" > /etc/apt/sources.list.d/sapmachine.list && \ 9 | apt-get update && \ 10 | apt-get -y --no-install-recommends install sapmachine-24-jre-headless=24.0.1 && \ 11 | apt-get remove -y --purge --autoremove ca-certificates gnupg && \ 12 | rm -rf "$GNUPGHOME" /var/lib/apt/lists/* 13 | 14 | ENV JAVA_HOME=/usr/lib/jvm/sapmachine-24 15 | 16 | CMD ["jshell"] 17 | -------------------------------------------------------------------------------- /dockerfiles/24/ubuntu/20_04/jre/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ubuntu:20.04 2 | 3 | RUN apt-get update && \ 4 | apt-get -y --no-install-recommends install ca-certificates gnupg && \ 5 | export GNUPGHOME="$(mktemp -d)" && \ 6 | gpg --no-default-keyring --keyring gnupg-ring:/etc/apt/trusted.gpg.d/sapmachine.gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys CACB9FE09150307D1D22D82962754C3B3ABCFE23 && \ 7 | chmod 644 /etc/apt/trusted.gpg.d/sapmachine.gpg && \ 8 | echo "deb http://dist.sapmachine.io/debian/$(dpkg --print-architecture)/ ./" > /etc/apt/sources.list.d/sapmachine.list && \ 9 | apt-get update && \ 10 | apt-get -y --no-install-recommends install sapmachine-24-jre=24.0.1 && \ 11 | apt-get remove -y --purge --autoremove ca-certificates gnupg && \ 12 | rm -rf "$GNUPGHOME" /var/lib/apt/lists/* 13 | 14 | ENV JAVA_HOME=/usr/lib/jvm/sapmachine-24 15 | 16 | CMD ["jshell"] 17 | -------------------------------------------------------------------------------- /dockerfiles/24/ubuntu/22_04/jdk-headless/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ubuntu:22.04 2 | 3 | RUN apt-get update && \ 4 | apt-get -y --no-install-recommends install ca-certificates gnupg && \ 5 | export GNUPGHOME="$(mktemp -d)" && \ 6 | gpg --no-default-keyring --keyring gnupg-ring:/etc/apt/trusted.gpg.d/sapmachine.gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys CACB9FE09150307D1D22D82962754C3B3ABCFE23 && \ 7 | chmod 644 /etc/apt/trusted.gpg.d/sapmachine.gpg && \ 8 | echo "deb http://dist.sapmachine.io/debian/$(dpkg --print-architecture)/ ./" > /etc/apt/sources.list.d/sapmachine.list && \ 9 | apt-get update && \ 10 | apt-get -y --no-install-recommends install sapmachine-24-jdk-headless=24.0.1 && \ 11 | apt-get remove -y --purge --autoremove ca-certificates gnupg && \ 12 | rm -rf "$GNUPGHOME" /var/lib/apt/lists/* 13 | 14 | ENV JAVA_HOME=/usr/lib/jvm/sapmachine-24 15 | 16 | CMD ["jshell"] 17 | -------------------------------------------------------------------------------- /dockerfiles/24/ubuntu/22_04/jdk/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ubuntu:22.04 2 | 3 | RUN apt-get update && \ 4 | apt-get -y --no-install-recommends install ca-certificates gnupg && \ 5 | export GNUPGHOME="$(mktemp -d)" && \ 6 | gpg --no-default-keyring --keyring gnupg-ring:/etc/apt/trusted.gpg.d/sapmachine.gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys CACB9FE09150307D1D22D82962754C3B3ABCFE23 && \ 7 | chmod 644 /etc/apt/trusted.gpg.d/sapmachine.gpg && \ 8 | echo "deb http://dist.sapmachine.io/debian/$(dpkg --print-architecture)/ ./" > /etc/apt/sources.list.d/sapmachine.list && \ 9 | apt-get update && \ 10 | apt-get -y --no-install-recommends install sapmachine-24-jdk=24.0.1 && \ 11 | apt-get remove -y --purge --autoremove ca-certificates gnupg && \ 12 | rm -rf "$GNUPGHOME" /var/lib/apt/lists/* 13 | 14 | ENV JAVA_HOME=/usr/lib/jvm/sapmachine-24 15 | 16 | CMD ["jshell"] 17 | -------------------------------------------------------------------------------- /dockerfiles/24/ubuntu/22_04/jre-headless/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ubuntu:22.04 2 | 3 | RUN apt-get update && \ 4 | apt-get -y --no-install-recommends install ca-certificates gnupg && \ 5 | export GNUPGHOME="$(mktemp -d)" && \ 6 | gpg --no-default-keyring --keyring gnupg-ring:/etc/apt/trusted.gpg.d/sapmachine.gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys CACB9FE09150307D1D22D82962754C3B3ABCFE23 && \ 7 | chmod 644 /etc/apt/trusted.gpg.d/sapmachine.gpg && \ 8 | echo "deb http://dist.sapmachine.io/debian/$(dpkg --print-architecture)/ ./" > /etc/apt/sources.list.d/sapmachine.list && \ 9 | apt-get update && \ 10 | apt-get -y --no-install-recommends install sapmachine-24-jre-headless=24.0.1 && \ 11 | apt-get remove -y --purge --autoremove ca-certificates gnupg && \ 12 | rm -rf "$GNUPGHOME" /var/lib/apt/lists/* 13 | 14 | ENV JAVA_HOME=/usr/lib/jvm/sapmachine-24 15 | 16 | CMD ["jshell"] 17 | -------------------------------------------------------------------------------- /dockerfiles/24/ubuntu/22_04/jre/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ubuntu:22.04 2 | 3 | RUN apt-get update && \ 4 | apt-get -y --no-install-recommends install ca-certificates gnupg && \ 5 | export GNUPGHOME="$(mktemp -d)" && \ 6 | gpg --no-default-keyring --keyring gnupg-ring:/etc/apt/trusted.gpg.d/sapmachine.gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys CACB9FE09150307D1D22D82962754C3B3ABCFE23 && \ 7 | chmod 644 /etc/apt/trusted.gpg.d/sapmachine.gpg && \ 8 | echo "deb http://dist.sapmachine.io/debian/$(dpkg --print-architecture)/ ./" > /etc/apt/sources.list.d/sapmachine.list && \ 9 | apt-get update && \ 10 | apt-get -y --no-install-recommends install sapmachine-24-jre=24.0.1 && \ 11 | apt-get remove -y --purge --autoremove ca-certificates gnupg && \ 12 | rm -rf "$GNUPGHOME" /var/lib/apt/lists/* 13 | 14 | ENV JAVA_HOME=/usr/lib/jvm/sapmachine-24 15 | 16 | CMD ["jshell"] 17 | -------------------------------------------------------------------------------- /dockerfiles/24/ubuntu/24_04/jdk-headless/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ubuntu:24.04 2 | 3 | RUN apt-get update && \ 4 | apt-get -y --no-install-recommends install ca-certificates gnupg && \ 5 | export GNUPGHOME="$(mktemp -d)" && \ 6 | gpg --no-default-keyring --keyring gnupg-ring:/etc/apt/trusted.gpg.d/sapmachine.gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys CACB9FE09150307D1D22D82962754C3B3ABCFE23 && \ 7 | chmod 644 /etc/apt/trusted.gpg.d/sapmachine.gpg && \ 8 | echo "deb http://dist.sapmachine.io/debian/$(dpkg --print-architecture)/ ./" > /etc/apt/sources.list.d/sapmachine.list && \ 9 | apt-get update && \ 10 | apt-get -y --no-install-recommends install sapmachine-24-jdk-headless=24.0.1 && \ 11 | apt-get remove -y --purge --autoremove ca-certificates gnupg && \ 12 | rm -rf "$GNUPGHOME" /var/lib/apt/lists/* 13 | 14 | ENV JAVA_HOME=/usr/lib/jvm/sapmachine-24 15 | 16 | CMD ["jshell"] 17 | -------------------------------------------------------------------------------- /dockerfiles/24/ubuntu/24_04/jdk/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ubuntu:24.04 2 | 3 | RUN apt-get update && \ 4 | apt-get -y --no-install-recommends install ca-certificates gnupg && \ 5 | export GNUPGHOME="$(mktemp -d)" && \ 6 | gpg --no-default-keyring --keyring gnupg-ring:/etc/apt/trusted.gpg.d/sapmachine.gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys CACB9FE09150307D1D22D82962754C3B3ABCFE23 && \ 7 | chmod 644 /etc/apt/trusted.gpg.d/sapmachine.gpg && \ 8 | echo "deb http://dist.sapmachine.io/debian/$(dpkg --print-architecture)/ ./" > /etc/apt/sources.list.d/sapmachine.list && \ 9 | apt-get update && \ 10 | apt-get -y --no-install-recommends install sapmachine-24-jdk=24.0.1 && \ 11 | apt-get remove -y --purge --autoremove ca-certificates gnupg && \ 12 | rm -rf "$GNUPGHOME" /var/lib/apt/lists/* 13 | 14 | ENV JAVA_HOME=/usr/lib/jvm/sapmachine-24 15 | 16 | CMD ["jshell"] 17 | -------------------------------------------------------------------------------- /dockerfiles/24/ubuntu/24_04/jre-headless/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ubuntu:24.04 2 | 3 | RUN apt-get update && \ 4 | apt-get -y --no-install-recommends install ca-certificates gnupg && \ 5 | export GNUPGHOME="$(mktemp -d)" && \ 6 | gpg --no-default-keyring --keyring gnupg-ring:/etc/apt/trusted.gpg.d/sapmachine.gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys CACB9FE09150307D1D22D82962754C3B3ABCFE23 && \ 7 | chmod 644 /etc/apt/trusted.gpg.d/sapmachine.gpg && \ 8 | echo "deb http://dist.sapmachine.io/debian/$(dpkg --print-architecture)/ ./" > /etc/apt/sources.list.d/sapmachine.list && \ 9 | apt-get update && \ 10 | apt-get -y --no-install-recommends install sapmachine-24-jre-headless=24.0.1 && \ 11 | apt-get remove -y --purge --autoremove ca-certificates gnupg && \ 12 | rm -rf "$GNUPGHOME" /var/lib/apt/lists/* 13 | 14 | ENV JAVA_HOME=/usr/lib/jvm/sapmachine-24 15 | 16 | CMD ["jshell"] 17 | -------------------------------------------------------------------------------- /dockerfiles/24/ubuntu/24_04/jre/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ubuntu:24.04 2 | 3 | RUN apt-get update && \ 4 | apt-get -y --no-install-recommends install ca-certificates gnupg && \ 5 | export GNUPGHOME="$(mktemp -d)" && \ 6 | gpg --no-default-keyring --keyring gnupg-ring:/etc/apt/trusted.gpg.d/sapmachine.gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys CACB9FE09150307D1D22D82962754C3B3ABCFE23 && \ 7 | chmod 644 /etc/apt/trusted.gpg.d/sapmachine.gpg && \ 8 | echo "deb http://dist.sapmachine.io/debian/$(dpkg --print-architecture)/ ./" > /etc/apt/sources.list.d/sapmachine.list && \ 9 | apt-get update && \ 10 | apt-get -y --no-install-recommends install sapmachine-24-jre=24.0.1 && \ 11 | apt-get remove -y --purge --autoremove ca-certificates gnupg && \ 12 | rm -rf "$GNUPGHOME" /var/lib/apt/lists/* 13 | 14 | ENV JAVA_HOME=/usr/lib/jvm/sapmachine-24 15 | 16 | CMD ["jshell"] 17 | -------------------------------------------------------------------------------- /logos/SAPJVM_submarine.xcf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/SapMachine-infrastructure/718484dd9e65fc96c4958ceeb923a792117ce419/logos/SAPJVM_submarine.xcf -------------------------------------------------------------------------------- /logos/logo-xmas.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/SapMachine-infrastructure/718484dd9e65fc96c4958ceeb923a792117ce419/logos/logo-xmas.png -------------------------------------------------------------------------------- /logos/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/SapMachine-infrastructure/718484dd9e65fc96c4958ceeb923a792117ce419/logos/logo.png -------------------------------------------------------------------------------- /logos/logo_small.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/SapMachine-infrastructure/718484dd9e65fc96c4958ceeb923a792117ce419/logos/logo_small.png -------------------------------------------------------------------------------- /logos/logo_title.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/SapMachine-infrastructure/718484dd9e65fc96c4958ceeb923a792117ce419/logos/logo_title.png --------------------------------------------------------------------------------