Category    docker

Deploying openvpn on top of raspberry pi with docker

by Olivier Barais     docker rpi raspberrypi raspberry

Posted 2017.02.07 — Rennes, France

With the emergence of cloud offers with arm based server, it is convenient to be able to deploy vpn server on top of these platforms. For example Scaleway is a simple, scalable cloud platform. It’s the a platform where you can start x86 64bit and ARM BareMetal servers from a unique and simple graphical interface but also through API. Next you can use docker to deploy your micro-services. In this blog post, I just summarize how you can deploy your own openvpn server.

Read More

Using Go-Docker and Docker Swarm on top of a cluster of raspberry pi.

by Olivier Barais     docker swarm go-docker raspberry pi

Posted 2016.03.24 — Rennes, France

Lightweight containers technologies such as Docker are more and more adopted for deploying and managing micro-services architectures. Indeed, they hide a part of the complexity resulting from the language heterogeneity and the large choice of existing implementation frameworks that can be used to implement modern applications. Containers provide those benefits without introducing the general cost of the virtualization.

It exists lots of open-source configuration managers such as kubernetes, nomad, apache Mesos, or docker swarm to define and keep a standard modular applications in a consistent state and to dispatch its services on a cluster of remote nodes. Tools such as Go-Docker would complement these stacks to provide a batch computing/cluster management tool using Docker as execution/isolation system. It can be seen like Sun Grid Engine/Torque/.

Go-Docker acts as an additional layer above those tools on multiple user systems where users do not have Docker priviledges or knowledge.

In this blog post, I will present some experiments to run Go-Docker on top of a cluster of raspberry pi.

Read More

Using Go-Docker and Docker Swarm to create a high-volume live and on demand video encoding solutions

by Olivier Barais     docker swarm go-docker

Posted 2015.12.01 — Rennes, France

The idea is to propose an initial solution to securely manages high-volume live and on demand video encoding solutions in combination with the scale and elasticity of the cloud. The providing service will automatically provisions and dynamically scales docker instances, and can seamlessly integrate those resources with on site infrastructure to instantly expand video processing capacity. This flexibility enables video providers to rapidly enhance multiscreen video offerings, grow audiences, generate greater revenues, and decrease capital expenses.

Read More

Playing with docker and opendaylight

by Olivier Barais     sdn opendaylight docker

Posted 2015.03.13 — Rennes, France

A short blog post to share my experience in playing with opendaylight and docker.

Currently there is no native integration of Open vSwitch in Docker, i.e., one cannot use the Docker client to automatically add a container’s network interface to an Open vSwitch bridge during the creation of the container. However the last version of ovs provides a utility to use ovs with docker. As ovs support openflow 1.3. It provides a greate playground for practical work combining opendaylight, docker and ovs.

Read More

Using Kevoree to drive Docker

by Olivier Barais     docker kevoree

Posted 2014.10.15 — Rennes, France

Just a doc to show how you can drive docker using Kevoree Models@runtime frmaework.

Read More

Tips for starting any X11 apps (e.g. eclipse) in a docker container from a linux host

by Olivier Barais     docker eclipse

Posted 2014.08.26 — Rennes, France

Just a tips for starting any X11 apps (e.g. eclipse) in a docker container from a linux host

Read More

Running MDMS and MDMS Diversified using docker

by Olivier Barais     docker diversify

Posted 2014.08.23 — Rennes, France

I am just finishing the docker image to run mdms quickly.

To play with it, just pull the following images.

docker pull barais/mdmsredis #contains the redis databases
docker pull barais/mdmssosies #contains the sosies (it is big)
docker pull barais/nginxsosies #contains nginx and the websocket server for displaying connection

To create quickly a cluster of regular mdms worker

#start nginx
export ID_REDIS=$(docker  run -i -d -t barais/mdmsredis /usr/bin/redis-server)
export IP_REDIS=`docker inspect --format='' $ID_REDIS` 
#start some sosies
#run just once
export ID_SOSIES=$(docker  run -i -d -t barais/mdmssosies /bin/bash -xec "sed -i "s/$IP_REDIS/g" /opt/mdms-ringojs/config.json && /opt/sosies/ringojs-0.10/bin/ringo /opt/mdms-ringojs/tools/fakedb.js")

#run for each sosies

for i in {1..10}
	export ID_SOSIES=$(docker  run -i -d -t barais/mdmssosies /bin/bash -xec "sed -i "s/$IP_REDIS/g" /opt/mdms-ringojs/config.json && /opt/sosies/ringojs-0.10/bin/ringo /opt/mdms-ringojs/main.js")
	export IP_SOSIES=`docker inspect --format='' $ID_SOSIES`
	if [ -z "$IPS_WORKER" ]; then export IPS_WORKER=$IP_SOSIES; else export IPS_WORKER="$IP_SOSIES;$IPS_WORKER"; fi  

#start some nginx and websocket server
export ID_NGINX=$(docker  run -i -d -t barais/nginxsosies /main $IPS_WORKER) #you can add a second parameter for the public name of your website e.g.
export IP_NGINX=`docker inspect --format='' $ID_NGINX`
echo $IP_NGINX

To create quickly a cluster of diversified mdms workers:

Read More

Running a DHT (ETCD) in a cluster using docker

by Olivier Barais     docker

Posted 2014.08.12 — Rennes, France

I am just playing using docker and etcd.

To create a distributed dht within a cluster using etcd and docker. I create a container based on ubuntu. I just add the go language git and etcd. If you want to play with it you can pul it

docker pull barais/etcd

and start your three containers.

sudo docker run -p 4001:4001 -p 7001:7001 -t -i barais/etcd   /etcd/bin/etcd -peer-addr -addr  -data-dir machines/machine1 -name machine

sudo docker run -p 4002:4002 -p 7002:7002 -t -i barais/etcd   /etcd/bin/etcd -peer-addr -addr  -peers, -data-dir machines/machine2 -name machine2

sudo docker run -p 4003:4003 -p 7003:7003 -t -i barais/etcd   /etcd/bin/etcd  -peer-addr -addr -peers, -data-dir machines/machine3 -name machine3

Next step: doing the same thing using kubernetes.

To follow …

Read More