https://github.com/soujava/jsr371-vm
This box is used for running and testing JSR-371 with latest OpenJDK 9 build.
https://github.com/soujava/jsr371-vm
Last synced: 8 months ago
JSON representation
This box is used for running and testing JSR-371 with latest OpenJDK 9 build.
- Host: GitHub
- URL: https://github.com/soujava/jsr371-vm
- Owner: soujava
- License: gpl-2.0
- Created: 2015-06-24T18:18:01.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-06-24T19:50:34.000Z (over 10 years ago)
- Last Synced: 2025-01-27T10:45:05.029Z (9 months ago)
- Size: 90.8 KB
- Stars: 2
- Watchers: 19
- Forks: 0
- Open Issues: 1
-
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-371 with latest OpenJDK 9 build.
#Create
Create the vm
-------------
```
$ docker build -t soujava/jsr371vm .
```
Save
-----
Save the build to a image so you can re-run it after
Open the vm
```
$ docker run -it --name jsr371vm soujava/jsr371vm /bin/bash
```
Exit
```
$ root@cdc7c2e3cfd9:/# exit
```
Commit changes
```
$ docker commit jsr371vm soujava/jsr371vm
```
Check Java
------------
To check if the correct java version have been installed, run the following command
```
$ docker run soujava/jsr371vm java -version
```
Output
-------
```
openjdk version "1.9.0-internal"
OpenJDK Runtime Environment (build 1.9.0-internal-_2015_06_04_06_46-b00)
OpenJDK 64-Bit Server VM (build 1.9.0-internal-_2015_06_04_06_46-b00, mixed mode)
```
#Running Tests
This commands will run all the tests for the API
Execute unit-ri tests
----------------------
```
$ docker run soujava/jsr371vm cd ~/mvc-spec~git && mvn test
```
Execute other commands
-----------------
```
$ docker run soujava/jsr371vm 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