Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This page provides information on how inspectIT can be used with the open source container virtualization software Docker. The provided Docker image is based on the official JBoss image and already includes the inspectIT agent as well as a sample Application (DVDStore) allowing you to start right away. To utilize the given image you will need a Docker installation.

...

  1. If you have Docker Compose installed on your linux system, just use our docker-compose.yml to start the whole stack.

  2. Otherwise you will need to start two containers manually and link them to each other(one for the CMR and one for JBoss/inspectIT/DVDStore):

    1. First start the CMR container by entering the following command:

      Code Block
      $ docker run -d --name inspectIT-CMR -p 8182:8182 -p 9070:9070 inspectit/cmr

      This command pulls the inspectit/cmr image from Docker Hub if you don't already have it available locally. Explanation of used options:

      1. -d: runs the container in the background

      2. --name inspectIT-CMR: assigns the given string as container-name
      3. -p 8182:8182: maps the port 8182 from the container to port 8182 of your docker host (needed for communication with the inspectIT GUI)
      4. -p 9070:9070: maps the port 9070from 9070 from the container to port 9070 of your docker host (needed for communication with the inspectIT Agent)

    2. When the CMR is running you can launch the inspectit/dvdstore image:

      Code Block
      $ docker run -d --name inspectIT-dvdstore -h dvdstore -p 8080:8080 --link inspectIT-CMR:cmr inspectit/dvdstore

      Again the image will be pulled from Docker Hub if you launch it for the first time. Explanation of used options:

      1. -h dvdstore: sets the Container hostname to "dvdstore"

      2. --link inspectIT-CMR:cmr: Establishs a link to the inspectIT-CMR container we launched in a). 

    Now you have set up your containers and should be able to access the DVDStore Application via your webbrowser by entering http://127.0.0.1:8080/dvdstore.

    Note: if you use a boot2docker setup (Windows or Mac) and your docker-host is running inside a VirtualBox, use the corresponding IP of your VBox instead. You get this by entering "boot2docker ip" in your boot2docker Start Shell (typically it is 192.168.59.103).

Connect with inspectIT UI (Client)

...