https://github.com/swissgrc/docker-azure-pipelines-openjdk-21
🐳 Docker image which provides Eclipse Temurin OpenJDK 21 in an Azure Pipelines container job
https://github.com/swissgrc/docker-azure-pipelines-openjdk-21
adoptium azure-devops azure-pipelines docker hacktoberfest java openjdk temurin
Last synced: 7 months ago
JSON representation
🐳 Docker image which provides Eclipse Temurin OpenJDK 21 in an Azure Pipelines container job
- Host: GitHub
- URL: https://github.com/swissgrc/docker-azure-pipelines-openjdk-21
- Owner: swissgrc
- License: mit
- Created: 2024-02-10T11:06:24.000Z (over 1 year ago)
- Default Branch: develop
- Last Pushed: 2025-02-04T08:11:21.000Z (8 months ago)
- Last Synced: 2025-02-04T09:20:42.661Z (8 months ago)
- Topics: adoptium, azure-devops, azure-pipelines, docker, hacktoberfest, java, openjdk, temurin
- Language: Dockerfile
- Homepage: https://hub.docker.com/r/swissgrc/azure-pipelines-openjdk
- Size: 42 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# Docker image for running Java applications in an Azure Pipelines container job
[](https://github.com/swissgrc/docker-azure-pipelines-openjdk-21/blob/main/LICENSE) [](https://github.com/swissgrc/docker-azure-pipelines-openjdk-21/actions/workflows/publish.yml) [](https://sonarcloud.io/summary/new_code?id=swissgrc_docker-azure-pipelines-openjdk-21) [](https://hub.docker.com/r/swissgrc/azure-pipelines-openjdk) [](https://hub.docker.com/r/swissgrc/azure-pipelines-openjdk)
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.## Usage
This image can be used to run Java applications in [Azure Pipelines container jobs].
### Azure Pipelines Container Job
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:
```yaml
- stage: deploy
jobs:
- deployment: runJava
container: swissgrc/azure-pipelines-openjdk:21
environment: smarthotel-dev
strategy:
runOnce:
deploy:
steps:
- bash: |
java -version
```### Tags
| Tag | Description | Base Image | OpenJDK | Size |
|-------------|-----------------------------------------------------------------------------------------------|----------------------------------|-----------|-------------------------------------------------------------------------------------------------------------------------------------|
| latest | Latest stable release (from `main` branch) | azure-pipelines-dockercli:27.4.1 | 21.0.5.0 |  |
| 21 | Identical to `latest` tag | | |  |
| unstable | Latest unstable release (from `develop` branch) | azure-pipelines-dockercli:27.5.1 | 21.0.5.0 |  |
| 21-unstable | Identical to `unstable` tag | | |  |
| 21.0.2.0 | Eclipse Temurin 21.0.2 | azure-pipelines-dockercli:25.0.3 | 21.0.2.0 |  |
| 21.0.3.0 | Eclipse Temurin 21.0.3 | azure-pipelines-dockercli:26.1.1 | 21.0.3.0 |  |
| 21.0.4.0 | Eclipse Temurin 21.0.4 | azure-pipelines-dockercli:27.1.1 | 21.0.4.0 |  |
| 21.0.5.0 | Eclipse Temurin 21.0.5 | azure-pipelines-dockercli:27.4.1 | 21.0.5.0 |  |[Eclipse Temurin OpenJDK]: https://adoptium.net/temurin/
[Azure Pipelines container jobs]: https://docs.microsoft.com/en-us/azure/devops/pipelines/process/container-phases