Sign inSign up

mcreations/openwrt-java

By mcreations

•Updated about 8 years ago

Small Java image based on OpenWRT (glibc)

Image
0

1.8K

mcreations/openwrt-java repository overview

⁠OpenWrt Docker image with Oracle Java

Basic Docker⁠ image to run Java⁠ applications. This is based off OpenWrt⁠ to keep the size minimal.

This is a version of jeanblanchard/docker-busybox-java with a small modification to base it on the OpenWrt docker image mcreations/openwrt-x64⁠. Note that we only install the server JRE.

⁠Tags
  • latest or 8: Oracle Java 8 (Server JRE)
  • 7: Oracle Java 7 (Server JRE)
  • jdk8: Oracle Java 8 (JDK)
⁠Usage

To just run it and see the java version:

docker run -it --rm mcreations/openwrt-java
⁠Additional Libraries
⁠JNA

This imaged has a preinstalled JNA library from here⁠. JNA_VERSION environment varibale chooses which release of JNA should install on build.

⁠Test
⁠Test JVM

The script list-system-properties.sh⁠ shows how to pass a classpath with -v to the container.

⁠Test JNA

The script jna-c-printf-test.sh⁠ tests JNA by mapping the printf function from the standard C library and calling it.

Tag summary

Content type

Image

Digest

Size

46.1 MB

Last updated

about 9 years ago

docker pull mcreations/openwrt-java