You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 1, 2018. It is now read-only.
Good to go for Play Framework apps and other stuff, of course.
3
+
Good to go for **Play Framework** apps and other stuff, of course.
4
4
5
-
## Latest addition: OpenJDK JRE 8
6
-
7
-
Less than 150 MB. Image: `cloudunder/java-runtime:openjdk8`
8
-
9
-
## JRE 7
10
-
11
-
A very small Docker image with a Java Runtime Environment (OpenJDK 7) based on [Alpine Linux](https://registry.hub.docker.com/u/gliderlabs/alpine/). We also installed the Bash shell, because we want to use this as a base image for [Play Framework](https://www.playframework.com) web applications and the standard start script of a Play app is a Bash script.
12
-
13
-
Of course, this image is not limited to Play apps, but that’s what we use it for.
5
+
> Since the [official Java repository on Docker Hub](https://hub.docker.com/_/java/) now also has minimal images based on Alpine Linux, there is not much point in maintaining this repository any longer.
14
6
15
7
*[Image on Docker Hub](https://registry.hub.docker.com/u/cloudunder/java-runtime/)
16
8
*[Source on GitHub](https://github.com/CloudUnder/dockerfile-java-runtime)
17
9
18
-
## JRE 8
10
+
## OpenJDK JRE 8 (including Bash)
19
11
20
-
Unfortunately a not quite so small Docker image with a Java Runtime Environment 8 (Oracle JRE) on CentOS 7.
12
+
Less than 120 MB image: `cloudunder/java-runtime:openjdk8`
21
13
22
-
Of course, this image is not limited to Play apps, but that’s what we use it for.
14
+
> The only difference to the official `java:8-jre-alpine`image is that this one has **bash** installed, which is handy to start a Play application using the bash script that comes with a build (e.g. `sbt stage`).
23
15
24
-
*[Image on Docker Hub](https://registry.hub.docker.com/u/cloudunder/java-runtime/)
25
-
*[Source on GitHub](https://github.com/CloudUnder/dockerfile-java-runtime)
A very small Docker image with a Java Runtime Environment (OpenJDK 7) based on [Alpine Linux](https://registry.hub.docker.com/u/gliderlabs/alpine/). We also installed the Bash shell, because we want to use this as a base image for [Play Framework](https://www.playframework.com) web applications and the standard start script of a Play app is a Bash script.
38
21
39
22
## How to use this image
40
23
@@ -51,10 +34,7 @@ docker run --rm cloudunder/java-runtime:7 java -version
51
34
A sample `Dockerfile` for a Play Framework application:
52
35
53
36
```
54
-
# If you want Java 7:
55
-
# FROM cloudunder/java-runtime:7
56
-
# Or if you want Java 8:
57
-
FROM cloudunder/java-runtime:8
37
+
FROM cloudunder/java-runtime:openjdk8
58
38
59
39
WORKDIR /app
60
40
COPY target/universal/stage/ .
@@ -84,7 +64,3 @@ docker run -p 80:9000 -t yourappimagename
84
64
```
85
65
86
66
Now you should be able to open the app in your browser.
87
-
88
-
## Experimental
89
-
90
-
All this is still experimental, so use with care. Any suggestions are also welcome!
0 commit comments