Self-contained Docker image containing Java and Apache Flume 1.8 based on probablyfine/flume
$ docker pull rruizs/dockerflume
$ docker run \
--env FLUME_AGENT_NAME=agent\
--volume /tmp/config.conf:/opt/flume-config/flume.conf \
--detach \
rruizs/dockerflume:latest
Note: the FLUME_AGENT_NAME
environment variable and presence of /opt/flume-config/flume.conf
on the image are required.
Set up configuration directory and required environment variables in a Dockerfile
FROM rruizs/dockerflume
ENV FLUME_AGENT_NAME <your_agent_name>
ADD flume.conf /opt/flume-config/flume.conf
Build and run image
$ docker build -t my-flume-image .
$ docker run -d my-flume-image