https://github.com/soujava/openjdk9-docker-vm
This box is used for running and testing the latest OpenJDK 9 build.
https://github.com/soujava/openjdk9-docker-vm
Last synced: 3 months ago
JSON representation
This box is used for running and testing the latest OpenJDK 9 build.
- Host: GitHub
- URL: https://github.com/soujava/openjdk9-docker-vm
- Owner: soujava
- License: gpl-2.0
- Created: 2015-06-24T18:32:22.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2015-06-24T19:37:13.000Z (about 10 years ago)
- Last Synced: 2025-01-27T10:45:04.833Z (5 months ago)
- Size: 85.9 KB
- Stars: 4
- Watchers: 19
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
Description
===========
This is a minimal Ubuntu base image modified for Docker-friendliness.
This box is used for running and testing JSR-363 with latest OpenJDK 9 build.#Create
Create the vm
-------------
```
$ docker build -t soujava/openjdkdockervm .
```Save
=====Save the build to a image so you can re-run it after
Open the vm
```
$ docker run -it --name openjdkdockervm soujava/openjdkdockervm /bin/bash
```Exit
```
$ root@cdc7c2e3cfd9:/# exit
```Commit changes
```
$ docker commit openjdkdockervm soujava/openjdkdockervm
```Check Java
------------
To check if the correct java version have been installed, run the following command```
$ docker run soujava/openjdkdockervm java -version
```Output
-------```
openjdk version "1.9.0-internal"
OpenJDK Runtime Environment (build 1.9.0-internal-_2015_06_24_16_05-b00)
OpenJDK 64-Bit Server VM (build 1.9.0-internal-_2015_06_24_16_05-b00, mixed mode)
```Execute commands
-----------------
```
$ docker run soujava/openjdkdockervm mvn -version
Apache Maven 3.0.5
Maven home: /usr/share/maven
Java version: 1.9.0-internal, vendor: Oracle Corporation
Java home: /opt/openjdk9
Default locale: en_US, platform encoding: ANSI_X3.4-1968
OS name: "linux", version: "4.0.3-boot2docker", arch: "amd64", family: "unix"
```License
=======
The GNU General Public License (GPL)Author
=======
Thomas Modeneis @thomasmodeneis