Docker image which provides Eclipse Temurin OpenJDK 17 in an Azure Pipelines container jobs. The image contains also Docker CLI to access Docker engine on the agent.
This image can be used to run Java applications in Azure Pipelines container jobs.
To use the image in an Azure Pipelines Container Job, add one of the following example tasks and use it with the container
property.
The following example shows the container used for a deployment step which shows .NET version:
- stage: deploy
jobs:
- deployment: runJava
container: swissgrc/azure-pipelines-openjdk:17
environment: smarthotel-dev
strategy:
runOnce:
deploy:
steps:
- bash: |
java -version
Tag | Description | Base Image | OpenJDK | Size |
---|---|---|---|---|
17 | Latest stable release (from main branch) |
azure-pipelines-dockercli:27.1.1 | 17.0.12.0 | |
17-unstable | Latest unstable release (from develop branch) |
azure-pipelines-dockercli:27.4.1 | 17.0.12.0 | |
17.0.4.0 | OpenJDK 17.0.4 | debian:11.3-slim | 17.0.4.0 | |
17.0.4.1 | OpenJDK 17.0.4 | debian:11.5-slim | 17.0.4.1 | |
17.0.5.0 | OpenJDK 17.0.5 | debian:11.6-slim | 17.0.5.0 | |
17.0.6.0 | OpenJDK 17.0.6 | debian:11.6-slim | 17.0.6.0 | |
17.0.7.0 | OpenJDK 17.0.7 | debian:11.6-slim | 17.0.7.0 | |
17.0.8.0 | OpenJDK 17.0.8 | azure-pipelines-dockercli:24.0.5 | 17.0.8.0 | |
17.0.8.1 | OpenJDK 17.0.8 | azure-pipelines-dockercli:24.0.5 | 17.0.8.1 | |
17.0.9.0 | OpenJDK 17.0.9 | azure-pipelines-dockercli:24.0.7 | 17.0.9.0 | |
17.0.10.0 | OpenJDK 17.0.10 | azure-pipelines-dockercli:25.0.3 | 17.0.10.0 | |
17.0.11.0 | OpenJDK 17.0.11 | azure-pipelines-dockercli:26.1.1 | 17.0.11.0 | |
17.0.12.0 | OpenJDK 17.0.12 | azure-pipelines-dockercli:27.1.1 | 17.0.12.0 |
These environment variables are supported:
Environment variable | Default value | Description |
---|---|---|
OPENJDK_VERSION | 17.0.12.0.0+7 |
Version of Eclipse Temurin OpenJDK installed in the image. |