Get a complete picture of what your applications are made of *without* changing how you currently build and run containers. Just run and report.
Get a complete picture of what your applications are made of *without* changing how you currently build and run containers. Just run and report.
Lumogon provides a way to inspect, analyze and report on your running Docker containers.
Please note this project is no longer maintained. However, the project's code will remain open and available in this repository and the Docker Hub image will remain available.
| Software | Version |
|---|---|
| Docker | 1.13.0 or greater |
You'll need Docker installed and running locally. This should already be true if you have Docker containers you want to analyze with Lumogon.
docker pull puppet/lumogonNow that you have Lumogon installed, let's run it to find out which containers you have running and what we can learn about them. The output from a Lumogon scan will be a JSON listing of all the containers found and what Lumogon could learn about them.
docker run --rm -v /var/run/docker.sock:/var/run/docker.sock puppet/lumogon scanAfter a few seconds you should see your JSON data:
…Since Lumogon's output is valid JSON, you can slice and dice it with jq, or pass it along to any other tool you use that can accept JSON input:
docker run --rm -v /var/run/docker.sock:/var/run/docker.sock puppet/lumogon scan | jq -r '.containers[] | .container_name + " " + .capabilities.host.payload.platform + " " + .capabilities.host.payload.platformversion'
/fixtures_debian-jessie_1 debian 8.7
/fixtures_alpine_1 alpine 3.4.0
/fixtures_centos7_1 centos 7.3.1611
/fixtures_fedora_1 fedora 25
/fixtures_centos6_1 centos 6.8
/fixtures_ubuntu-trusty_1 ubuntu 14.04
/fixtures_debian-wheezy_1 debian 7.11
/fixtures_ubuntu-xenial_1 ubuntu 16.04Lumogon provides the ability to submit gathered reports to an optional endpoint of your choosing.
NOTE The Puppet provided reporter backend service and all data has been decommissioned as of May 2018.
docker run --rm -v /var/run/docker.sock:/var/run/docker.sock puppet/lumogon report --endpoint https://my-reporter-service.domain.com/The report command generates the same data as scan, but sends it to the configured reporting endpoint.
The examples directory provides more thorough examples of how to use the data provided by Lumogon to test and build your images and containers.
Let's get the usage for the Lumogon client:
…Feel free to explore those command-line options. Of note:
--keep-harvesters flag will preserve temporary containers created on the fly to explore your other containers. You can use docker logs to see more of what they found while running.scan to collect data on all your running containers, or you can target a specific container by passing scan .--debug will generate verbose debugging output so you can see how Lumogon explores your containers.If you're making changes to Lumogon, or just interested in seeing how it works under the hood, you might want to try building from source. For this you'll need a few more things:
The terminal commands to do this are:
export GOPATH="${HOME}/go"
go get -d -u github.com/puppetlabs/lumogon
cd $GOPATH/src/github.com/puppetlabs/lumogon
make imageThis will build the client and package it in the puppet/lumogon image.
No open issues yet, or sync has not completed.