Coder Social home page Coder Social logo

docker-activemq's Introduction

docker-activemq

Docker image for Apache ActiveMQ (AMQ) (v5.13.0).


NOTE: Binary distribution is downloaded from rediris mirror located in Spain.

Launch the image:

docker run \
  -d \
  -p 61616:61616 \
  -p 8161:8161 \
  javierprovecho/docker-activemq

Example running a cluster

Launch amq1:

docker run \
  -it \
  --rm \
  --name amq1 \
  javierprovecho/docker-activemq

Launch amq2 linked to amq1:

docker run \
  -it \
  --rm \
  --name amq2 \
  --link amq1:amq1 \
  javierprovecho/docker-activemq

Launch consumer against amq2:

docker run \
  -it \
  --rm \
  --link amq2:amq2 \
  --name consumer \
  javierprovecho/docker-activemq \
  consumer.sh

Launch producer against amq1:

docker run \
  -it \
  --rm \
  --link amq1:amq1 \
  --name producer \
  javierprovecho/docker-activemq \
  producer.sh

You can even launch amq3 linked both to amq1 and amq2:

docker run \
  -it \
  --rm \
  --name amq3 \
  --link amq1:amq1 \
  --link amq2:amq2 \
  javierprovecho/docker-activemq

By default cluster.py search for Docker links and modify activemq.xml. It adds new instances with this template:

<networkConnectors>
  <networkConnector
    uri="static:($AMQ1_PORT_61616_TCP, $AMQ2_PORT_61616_TCP, $AMQN_PORT_61616_TCP)"
    duplex="true"
    decreaseNetworkConsumerPriority="false"
    networkTTL="2"
    dynamicOnly="true">
  </networkConnector>
</networkConnectors>

docker-activemq's People

Contributors

javierprovecho avatar

Watchers

 avatar  avatar

docker-activemq's Issues

activemq.xml is not updated with networkConnector

Hi,

After the running the cluster commands, when check the activemq.xml file, I do not find the networkConnector tag getting added to it.
Could you please explain how is $AMQ1_PORT_61616_TCP set?
Is it passed along with the run command?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.