HUB
Sign inSign up
fabric8-java logo

fabric8/fabric8-java

By fabric8

•Updated over 11 years ago

Image
2

8.0K

fabric8/fabric8-java repository overview

⁠fabric8-java-docker

This project builds a docker⁠ container which is used by fabric8⁠ to create Java based Micro Services⁠ using the Java Container⁠.

Its not intended for this container image to be usable by itself; its used by the Java Container⁠ to create a new docker container image for each micro service as you create a container for the profile for a java container using the docker plugin⁠

⁠Try it out

  • this demo⁠ shows how to get started using a Java Container⁠ with fabric8
  • check out how to use docker with fabric8⁠; in particularly you need to:
    • ensure docker containers can see the host running the fabric; e.g. using localip or manualip resolution (as on OS X and Windows often docker containers cannot see your local host machines host name)
    • add the docker profile to the root container
  • if you use the fabric8 console or command line to create a docker container for the java container profile; it will create a new docker image on the fly based on fabric8/fabric8-java but also copying any configuration files or jars into the lib folder etc.

⁠Building the docker container locally

We have a Docker Index trusted build setup to automatically rebuild the fabric8/fabric8-java 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 [email protected]:fabric8io/fabric8-java-docker.git
cd fabric8-java-docker
./build.sh

The fabric8 container should then build.

⁠Experimenting

To spin up a shell in one of the containers try:

docker run -P -i -t fabric8/fabric8-java /bin/bash

You can then noodle around the container and run stuff & look at files etc.

Tag summary
Recent tags
Content type
Image
Digest
sha256:fdf4e8256…
Size
163.9 MB
Last updated
over 11 years ago
docker pull fabric8/fabric8-java:latest