Dockerfile 800 B

12345678910111213141516171819202122232425
  1. FROM docker.shemic.com/java/base:latest
  2. MAINTAINER Rabin "https://github.com/shemic"
  3. # set environment variable
  4. ENV HADOOP_HOME=/share/lib/hadoop
  5. ENV HADOOP_CONF_DIR=$HADOOP_HOME/etc/hadoop
  6. ENV YARN_CONF_DIR=$HADOOP_CONF_DIR
  7. ENV PATH=$PATH:$HADOOP_HOME/bin:$HADOOP_HOME/sbin
  8. ENV FLUME_HOME=/usr/local/flume
  9. ENV FLUME_VERSION=1.7.0
  10. ENV PATH=$PATH:$FLUME_HOME/bin
  11. # install
  12. RUN curl -O ${MIRRORS}apache/flume/$FLUME_VERSION/apache-flume-$FLUME_VERSION-bin.tar.gz && \
  13. tar -xzvf apache-flume-$FLUME_VERSION-bin.tar.gz && \
  14. mv apache-flume-$FLUME_VERSION-bin $FLUME_HOME && \
  15. rm apache-flume-$FLUME_VERSION-bin.tar.gz && \
  16. mkdir -p /root/flume/input && \
  17. mkdir -p /root/flume/output
  18. COPY flume.sh /entrypoint/flume.sh
  19. VOLUME ["/usr/local/flume/conf", "/root/flume/input", "/root/flume/output"]