Skip to content

stakater-docker/fabric8-java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fabric8 java docker image

This project builds a docker image for running a Java application

Exposes port: 8778 by default for Jolokia. See how to configure or disable jolokia

This image is intended to be use as a base image.

Just copy whatever jars you want to into the /maven folder.

Environment variables:

Set the following environment variables:

  • MAIN to the Java main class to run
  • JAR to fat jar to run
  • ARGUMENTS for any command line arguments to pass into the java process.

You should use either JAR or MAIN variables, not both at the same time.

Building the docker container locally

We have a Docker Index trusted build setup to automatically rebuild the fabric8/hawtio container whenever the Dockerfile is updated, so you shouldn't have to rebuild it locally. But if you want to, here's now to do it...

Once you have installed docker you should be able to create the containers via the following:

git clone git@github.com:fabric8io/java-docker.git
cd java-docker
./build.sh

The java docker container should then build.

About

Dockerfile for fabric8-java

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 5