Skip to content

Commit a8074d8

Browse files
committed
Initial commit
1 parent cf93e99 commit a8074d8

File tree

3 files changed

+42
-2
lines changed

3 files changed

+42
-2
lines changed

Dockerfile

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
FROM fedora:latest
2+
RUN dnf install -y git maven maven-openjdk11 java-11-openjdk-headless --exclude maven-openjdk17 --exclude maven-openjdk8 && \
3+
alternatives --family java-11 --install /usr/bin/java java /usr/lib/jvm/java-11-openjdk/bin/java 1 && \
4+
alternatives --set java java-11 && \
5+
alternatives --family javac-11 --install /usr/bin/javac javac /usr/lib/jvm/java-11-openjdk/bin/javac 1 && \
6+
alternatives --set javac javac-11 && \
7+
git --version && \
8+
java --version && \
9+
javac --version && \
10+
mvn --version

Makefile

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
build:
2+
podman build -t quay.io/pipeline-integrations/java11-utils -f Dockerfile
3+
.PHONY: build

README.md

+29-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,29 @@
1-
# maven
2-
A Java 11 container with maven installed
1+
# java-utils
2+
A fedora container with the following packages installed:
3+
- git
4+
- maven
5+
- maven-openjdk11
6+
- java-11-openjdk-headless
7+
8+
```
9+
# git --version
10+
git version 2.39.2
11+
12+
# java --version
13+
openjdk 11.0.18 2023-01-17
14+
OpenJDK Runtime Environment (Red_Hat-11.0.18.0.10-1.fc37) (build 11.0.18+10)
15+
OpenJDK 64-Bit Server VM (Red_Hat-11.0.18.0.10-1.fc37) (build 11.0.18+10, mixed mode, sharing)
16+
17+
# javac --version
18+
javac 11.0.18
19+
20+
# mvn --version
21+
Apache Maven 3.8.5 (Red Hat 3.8.5-3)
22+
Maven home: /usr/share/maven
23+
Java version: 11.0.18, vendor: Red Hat, Inc., runtime: /usr/lib/jvm/java-11-openjdk-11.0.18.0.10-1.fc37.x86_64
24+
Default locale: en, platform encoding: UTF-8
25+
OS name: "linux", version: "6.0.18-300.fc37.x86_64", arch: "amd64", family: "unix"
26+
27+
```
28+
29+
Available at [quay.io/pipeline-integrations/java11-utils](https://quay.io/pipeline-integrations/java11-utils)

0 commit comments

Comments
 (0)