anchor.diff:  ARG kafka_version=0.11.0.1
   ARG scala_version=2.12
   
  -MAINTAINER Charles Walker <cwalker@sumglobal.com>
  +LABEL maintainer="Charles Walker <cwalker@sumglobal.com>, Chip Dickson <cdickson@sumglobal.com>"
   
   RUN apt-get update \
       && apt-get install bash docker unzip wget curl jq coreutils net-tools
  
positive.code: 
  VOLUME ["/kafka"]
  
  #ENV HOSTNAME_COMMAND "docker info | grep ^.*'Node Address:'| cut -d' ' -f 4"
  ENV KAFKA_HOME /opt/kafka_${SCALA_VERSION}-${KAFKA_VERSION}
  ENV PATH ${PATH}:${KAFKA_HOME}/bin
  ENV ZOOKEEPER_IP zookeeper
  #ENV KAFKA_LISTENER_SECURITY_PROTOCOL_MAP INSIDE:PLAINTEXT,OUTSIDE:PLAINTEXT,BROKER:PLAINTEXT
  #ENV KAFKA_ADVERTISED_PROTOCOL_NAME OUTSIDE
  #ENV KAFKA_PROTOCOL_NAME INSIDE
  ENV KAFKA_ADVERTISED_PORT 9094
  ENV KAFKA_PORT 9092
  ADD config/server.properties.template ${KAFKA_HOME}/config/server.properties.template
  
negative.code: RUN chmod a+x /usr/bin/start.sh && \
      chmod a+x /usr/bin/broker-list.sh && \
      chmod a+x /usr/bin/create-topics.sh
  
  # tone down the JVM to run better on RASPI
  ENV KAFKA_HEAP_OPTS -Xmx256M\ -Xms256M
  # Zulu embedded doesn't support the G1 compiler and other options set by default - These are a bit more reasonable
  ENV KAFKA_JVM_PERFORMANCE_OPTS -server\ -XX:+DisableExplicitGC\ -Djava.awt.headless=true
  # Use "exec" form so that it runs as PID 1 (useful for graceful shutdown)
  CMD ["start.sh"]
  
  