Skip to content

Commit 2172219

Browse files
author
Tim Pouyer
committed
initial commit
1 parent 71250dc commit 2172219

File tree

3 files changed

+40
-1
lines changed

3 files changed

+40
-1
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
artifacts/
2+
*.zip
3+
.DS_Store

Dockerfile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
FROM debian:latest
2+
3+
ADD artifacts/ibm-java-x86_64-71 /opt/java/ibm-java-x86_64-71
4+
5+
ENV JAVA_HOME /opt/java/ibm-java-x86_64-71/jre
6+
ENV PATH $JAVA_HOME/bin:$PATH
7+
8+
ENTRYPOINT ["/opt/java/ibm-java-x86_64-71/jre/bin/java"]
9+
CMD [""]

README.md

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,28 @@
1-
# docker-ibm-java
1+
# Docker Image for IBM Java Runtime Engine
2+
3+
This docker image will create a base container including the IBM JRE as a basis for other containers.
4+
5+
## Dependencies
6+
7+
- `debian` base docker image from Docker Hub.
8+
- Download the IBM JRE of your intended version and extract to the `artifacts` directory.
9+
10+
## Build the docker image
11+
12+
docker build -t stackinabox/ibm-java:%version% .
13+
14+
## Use the docker image from your own Dockerfile
15+
16+
FROM stackinabox/ibm-java:%version%
17+
...
18+
19+
CMD ["/bin/bash"]
20+
21+
## Launch the container (will exit, but responds to Java command line options)
22+
23+
docker run stackinabox/ibm-java:%version%
24+
25+
## Supported Environment Variables
26+
27+
JAVA_HOME: Path to Java Home Directory
28+

0 commit comments

Comments
 (0)