Docker image which provides Eclipse Temurin OpenJDK 21 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:21
environment: smarthotel-dev
strategy:
runOnce:
deploy:
steps:
- bash: |
java -version