Skip to content

brianehlert/meshblu_docker

Repository files navigation

Building a Docker image of a single standalone instance on Meshblu with Redis and MongoDB (in the container).

Install Ubuntu Server and install the latest Docker:

  1. Install Ubuntu in the VM (14.04 LTS Server) or 14.10
  2. Add OpenSSH Server
  3. Determine IP
  4. Connect over SSH
  5. Update sudo apt-get update
  6. Upgrade the components (aka patch the OS) sudo apt-get upgrade -y
  7. Add Docker gpg key (that is 'qO' not 'qZero') sudo sh -c "wget -qO- https://get.docker.io/gpg | apt-key add -"
  8. Update the app list sudo sh -c "echo deb http://get.docker.io/ubuntu docker main\ >> /etc/apt/sources.list.d/docker.list"
  9. Update the local apt repository after adding the docker reference sudo apt-get update
  10. Install (latest) Docker (on 12/15/14 this is 1.4.0) sudo apt-get install lxc-docker -y

Pull the latest build from Github:

  1. git clone https://github.com/brianehlert/meshblu_docker.git (Git should be installed, error if it is not – then run 'sudo apt-get install git')

Build the container

  1. cd meshblu_docker
  2. sudo docker build -t meshblu . Note: that period at the end of the line is very important.

Run the container interactively (you have a console and have to open another terminal to manage Docker, good for debug)

  1. sudo docker run -i -t -p 3000:3000 -p 5683:5683 meshblu (this maps the container port to the matching host port - note one command per port)

Test that Meshblu is running

  1. sudo docker ps (list running Docker containers)
  2. curl http://localhost:3000/status (should output: {"meshblu":"online"} )

An alternate to steps 11 – 13 is to build directly from Github

  1. sudo docker build github.com/brianehlert/meshblu_docker.git
  2. sudo docker images ( find the image ID )
  3. sudo docker run -t -p 3000:3000 -p 5683:5683

About

Docker support for Meshblu

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published