Skip to content

Instantly share code, notes, and snippets.

@hiroeorz
Created July 27, 2014 03:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hiroeorz/5ece7dbf485834279829 to your computer and use it in GitHub Desktop.
Save hiroeorz/5ece7dbf485834279829 to your computer and use it in GitHub Desktop.
DockerでHiveMQを動かしたメモ ref: http://qiita.com/hiroeorz@github/items/2236adc4506e0dc7341b
FROM ubuntu
MAINTAINER Shin Hiroe <hogehoge@mail.com>
RUN echo "upgrade apt sources"
RUN apt-get update
RUN apt-get upgrade -y
RUN echo "install wget"
RUN apt-get install wget -y
RUN echo "install unzip"
RUN apt-get install unzip -y
RUN echo "install OpenJDK"
RUN apt-get install openjdk-7-jre -y
RUN echo "install HiveMQ"
COPY ./hivemq-2.0.0.zip /usr/local/
WORKDIR /usr/local
RUN unzip hivemq-2.0.0.zip
WORKDIR /usr/local/hivemq-2.0.0
RUN chmod 755 bin/run.sh
EXPOSE 1883
$ mkdir -p docker/hivemq
$ cd docker/hivemq
$ docker build -t ubuntu:hivemq .
$ docker run -t -p 1883:1883 -i ubuntu:hivemq "/usr/local/hivemq-2.0.0/bin/run.sh"
-------------------------------------------------------------------------
_ _ _ __ __ ____
| | | |(_) | \/ | / __ \
| |__| | _ __ __ ___ | \ / || | | |
| __ || |\ \ / // _ \| |\/| || | | |
| | | || | \ V /| __/| | | || |__| |
|_| |_||_| \_/ \___||_| |_| \___\_\
-------------------------------------------------------------------------
HiveMQ Start Script for Linux/Unix v1.2
-------------------------------------------------------------------------
HIVEMQ_HOME: /usr/local/hivemq-2.0.0
JAVA_OPTS: -Djava.net.preferIPv4Stack=true
-------------------------------------------------------------------------
2014-06-14 10:48:38,358 INFO - HiveMQ home directory: /usr/local/hivemq-2.0.0
2014-06-14 10:48:38,386 INFO - Starting HiveMQ Server
2014-06-14 10:48:40,302 INFO - Created user preferences directory.
2014-06-14 10:48:42,307 WARN - No license file found. Using free personal licensing with restrictions to 25 connections.
2014-06-14 10:48:42,553 INFO - Activating statistics callbacks with an interval of 60 seconds
2014-06-14 10:48:42,555 INFO - Activating $SYS topics with an interval of 60 seconds
2014-06-14 10:48:42,999 INFO - Starting on all interfaces and port 1883
2014-06-14 10:48:43,028 INFO - Started HiveMQ 2.0.0 in 4672ms
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment