mTango Docker container

Hello Tangoers!

Igor asked me to share this here:

I've created a Docker container for the awesome mTango server.
The container ships with latest rc3-0.1 version of mTango and Tango Starter 9.2.2.

Dockerfile: https://github.com/mliszcz/mtango-docker
Image: https://hub.docker.com/r/mliszcz/mtango/

To use it you need a working Tango installation. Then run it like:


docker pull mliszcz/mtango
docker run –rm \
  -e TANGO_HOST='172.18.0.3:10000' \
  -e HTTP_PORT=8080 \
  -e REST_USER=tango \
  -e REST_PASSWORD=secret \
  mliszcz/mtango 

Following device will be configured in the database (if it does not exists):

class: TangoRestServer
instance: development
device: test/rest/0


Michal
Michal Liszcz
Nice work!

One comment: I had to add `-p` parameter to `docker run`:


$ docker run -p 127.0.0.1:8080:8080 –rm \ 
-e TANGO_HOST='192.168.119.119:10000' \
-e HTTP_PORT=8080 \
-e REST_USER=tango \
-e REST_PASSWORD=secret \
mliszcz/mtango


to be able to connect to the mtango server, i.e. put localhost:8080/rest/rc3 into the address bar and get the result.

UPDATE

BTW here is a very good video on containerization technology:

Nobody puts Java in the container

Do not mind "Java" - first half is about containers themselfs

Cheers,
Edited 8 years ago
 
Register or login to create to post a reply.