Switch branches/tags
Nothing to show
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
..
Failed to load latest commit information.
ctci-amq
ctci-kafka
ctci
README.md

README.md

Installing

First, install docker from:

Building

https://docs.docker.com/engine/reference/commandline/build/

To build the image run:

docker build -t ctci-logstash:1.0 .

Where:

  • ctci-logstash tags the image
  • 1.0 specifies the version number for the image
  • . specifies to look in this directory for the Dockerfile!

It's all arbitrary, name/version to your hearts desire.

For example: Let's build kafka:

docker build -t my_custom_kafka:0.5 .

Where I arbitrarily named it my_custom_kafka and versioned it as 0.5, and . just tells docker to look in my current directory for the Dockerfile.

Running

https://docs.docker.com/engine/reference/run/

To run an instance of an image:

docker run -d --name my_app -p 5000:80 ctci-logstash:1.0

Where:

  • -d runs the container as a daemon
  • --name my_app names the container
  • -p 5000:80 eposes the container on port 5000 externally and maps to port 80
  • ctci-logstash:1.0 selects the image to use and what version

References

Docker Cheat Sheet: https://www.docker.com/sites/default/files/Docker_CheatSheet_08.09.2016_0.pdf

Docker Docs: https://docs.docker.com/