[
https://issues.apache.org/jira/browse/METRON-622?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15803334#comment-15803334
]
ASF GitHub Bot commented on METRON-622:
---------------------------------------
Github user kylerichardson commented on the issue:
https://github.com/apache/incubator-metron/pull/393
@merrimanr Thanks for pointing out the location of the storm logs. I think
it would be worth adding that to the README.
I have a fix for the kafkazk image running on local docker-engine (using
unix socket). It requires an additional ARG in the Dockerfile (and
docker-compose.yml) and an extra sed statement when producing the
advertised.listeners parameter.
docker-compose.yml
```
...
kafkazk:
build:
context: ./kafkazk
args:
DOCKER_HOST: $DOCKER_HOST
+ BROKER_IP_ADDR: $BROKER_IP_ADDR
METRON_VERSION: $METRON_VERSION
...
```
kafkazk/Dockerfile
```
...
+ARG DOCKER_HOST
+ARG BROKER_IP_ADDR
ARG METRON_VERSION
...
RUN echo -n 'advertised.listeners=PLAINTEXT://' >>
/opt/kafka_2.11-0.10.0.0/config/server.properties
+RUN echo $DOCKER_HOST | sed "s/^$/"$BROKER_IP_ADDR":/g" | sed
"s/tcp:\\/\\///g" | sed "s/:.*/:9092/g" >>
/opt/kafka_2.11-0.10.0.0/config/server.properties
...
```
I would also suggest a note in the documentation. In the Setup section of
the README, maybe something along the lines of... If you wish to use a local
docker-engine install, please set an environment variable BROKER_IP_ADDR to the
IP address of your host machine. This cannot be the loopback address.
> Create a Metron Docker Compose application
> -------------------------------------------
>
> Key: METRON-622
> URL: https://issues.apache.org/jira/browse/METRON-622
> Project: Metron
> Issue Type: New Feature
> Reporter: Ryan Merriman
>
> This is an alternative to the Vagrant quick-dev approach of creating a local
> Metron environment for development and testing. It is intended to be leaner
> and easier to manage. This compose application will contain separate images
> for each of the services that Metron depends on as well as the Metron
> services.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)