This image is proposed to Docker official images. Please send this PR some love to make this happen!
Dockerfile links0.9.7, 0.9 (0.9.7/Dockerfile)0.10.2, 0.10 (0.10.2/Dockerfile)1.0.2, 1.0, latest (1.0.2/Dockerfile)Apache Storm is a distributed computation framework written predominantly in the Clojure programming language. Originally created by Nathan Marz and team at BackType, the project was open sourced after being acquired by Twitter. It uses custom created “spouts” and “bolts” to define information sources and manipulations to allow batch, distributed processing of streaming data. The initial release was on 17 September 2011.

Assuming you have storm-starter-topologies-1.0.2.jar in the current directory.
$ docker run -it -v $(pwd)/storm-starter-topologies-1.0.2.jar:/topology.jar 31z4/storm:1.0.2 storm jar /topology.jar org.apache.storm.starter.ExclamationTopology
Apache Zookeeper is a must for running a Storm cluster. Start it first. Since the Zookeeper “fails fast” it's better to always restart it.
$ docker run -d --restart always --name zookeeper zookeeper:3.4
The Nimbus daemon has to be connected with the Zookeeper. It's also a “fail fast” system.
$ docker run -d --restart always --name nimbus --net container:zookeeper 31z4/storm:1.0.2 storm nimbus
Finally start a single Supervisor node. It will talk to the Nimbus and Zookeeper.
$ docker run -d --restart always --name supervisor --net container:nimbus --net container:zookeeper 31z4/storm:1.0.2 storm supervisor
Now we can submit a topology to our cluster.
$ docker run -it --net container:nimbus -v $(pwd)/storm-starter-topologies-1.0.2.jar:/topology.jar 31z4/storm:1.0.2 storm jar /topology.jar org.apache.storm.starter.WordCountTopology topology
docker-composeExample docker-compose.yml for storm:
version: '2' services: zookeeper: image: zookeeper:3.4 container_name: zookeeper restart: always nimbus: image: 31z4/storm:1.0.2 container_name: nimbus command: storm nimbus -c storm.zookeeper.servers="[\"zookeeper\"]" -c nimbus.host="nimbus" depends_on: - zookeeper links: - zookeeper restart: always ports: - 6627:6627 supervisor: image: 31z4/storm:1.0.2 container_name: supervisor command: storm supervisor -c storm.zookeeper.servers="[\"zookeeper\"]" -c nimbus.host="nimbus" depends_on: - nimbus - zookeeper links: - nimbus - zookeeper restart: always
Run docker-compose up and wait for it to initialize completely. The Nimbus will be available at your host and port 6627.
This image uses default configuration of the Apache Storm. There are two main ways to change it.
Using command line arguments.
$ docker run -d --restart always --name nimbus 31z4/storm:1.0.2 storm nimbus -c storm.log.dir="/logs" -c storm.zookeeper.servers="[\"zookeeper\"]"
Assuming you have storm.yaml in the current directory you can mount it as a volume.
$ docker run -it -v $(pwd)/storm.yaml:/conf/storm.yaml 31z4/storm:1.0.2 storm nimbus
No data are persisted by default. For convenience there are /data and /logs directories in the image owned by storm user. Use them accordingly to persist data and logs using volumes.
$ docker run -it -v /logs -v /data 31z4/storm:1.0.2 storm nimbus -c storm.log.dir="/logs" -c storm.local.dir="/data"
Please be noticed that using paths other than those predefined is likely to cause permission denied errors. It's because for security reasons the Storm is running under the non-root storm user.
View license information for the software contained in this image.