Skip to content

How to run the containers with plain docker

Rich Megginson edited this page Jan 27, 2016 · 1 revision

How to run the containers with plain docker

It is useful for development to build the containers locally and run them together.

You must have locally the git repos of the individual components::

for comp in fluentd elasticsearch kibana qpid-router rsyslog-collector ; do
    if [ ! -d docker-$comp ] ; then
        git clone https://github.com/ViaQ/docker-$comp.git
    fi
done

The script simple-test.sh https://raw.githubusercontent.com/ViaQ/integration-tests/master/simple-test.sh will then build and run the containers from these git repos.

The script will stop and remove any/all containers that are running, so make sure there are no other containers that you wish to keep.

To run the script::

$ sh -x simple-test.sh 2>&1 | tee output

At the end of the run, you should see all of the ViaQ containers running. You can then use make-rfc5424.py https://raw.githubusercontent.com/ViaQ/integration-tests/master/make-rfc5424.py to write log messages to the rsyslog-collector::

$ python make-rfc5424.py localhost 5141

Then use curl to view the records in elasticsearch::

$ curl -s http://localhost:9200/_search | python -mjson.tool
Clone this wiki locally