Archive for November, 2017

Erdbeben im Rheinland – am Mittwochabend um 17.40 Uhr wackelte die Erde bei Köln das Beben hatte eine Magnitude 3.1

Mittwoch, November 8th, 2017

Cerner Healthcare – heute vor 122 Jahren hat Wilhelm Röntgen die nach ihm benannten Röntgenstrahlen entdeckt und sie sind aus der medizinischen Diagnostik nicht mehr wegzudenken und das zeigen wir auch auf unserem Innovation Campus in Kansas City

Mittwoch, November 8th, 2017

Twitter – is rolling out 280-character tweets around the world

Mittwoch, November 8th, 2017

Software AG Terracotta DB – how easy it is to set up a 2 node cluster

Dienstag, November 7th, 2017

Raspberry Pi – distributed air quality monitoring on Google Cloud Platform

Dienstag, November 7th, 2017

Klinikum Penzberg – befindet sich knapp vor der „Schwarzen Null“

Dienstag, November 7th, 2017

Ducati Panigale V4 – discover all the features of the Desmosedici Stradale engine

Montag, November 6th, 2017

Compulab fitlet2 – is based on quad-core Apollo-Lake Atom with up to 16 GB RAM

Montag, November 6th, 2017

Schleswig Martin-Luther-Krankenhauses (MLK) – zu verschenken der Kreis will das alte Krankenhaus loswerden

Montag, November 6th, 2017

„Paradise Papers“ – insgesamt 382 Journalisten aus 67 Ländern waren an der Auswertung beteiligt gemeinsam werteten sie 13,4 Millionen Dokumente der auf den Bermudas gegründeten Kanlzei Appleby und einer Treuhandfirma in Singapur aus

Sonntag, November 5th, 2017

Störungen bei Vodafone – kein Netz, keine Telefonverbindung in Ostbayern brauchen Kunden Geduld und auch Polizei und Bahn sind betroffen

Sonntag, November 5th, 2017

GPD Pocket – 7-inch PC that fits in your pocket

Samstag, November 4th, 2017

Apple CEO Tim Cook – was the second highest-paid executive of 2016 pulling in $150.036.907

Samstag, November 4th, 2017

Klinik Mühldorf a. Inn – jetzt 10 Jahre mit Herzkatheterlabor

Samstag, November 4th, 2017

Raspberry Pi Cluster – this guide will show you how to run a using Docker Swarm

Samstag, November 4th, 2017

Edit „/etc/hosts“ for each cluster member

192.168.1.136   rpi-iot-jsho-DockerCluster-00
192.168.1.137   rpi-iot-jsho-DockerCluster-01
192.168.1.138   rpi-iot-jsho-DockerCluster-02

Edit „/etc/ssh/sshd_config“ and update the field „PermitRootLogin“ for each cluster member

# vi /etc/ssh/sshd_config
PermitRootLogin yes
# /etc/init.d/ssh restart
root@rpi-iot-jsho-dockerCluster-00:~# ssh-keygen -t rsa
root@rpi-iot-jsho-DockerCluster-00:~# ssh-copy-id ssh-copy-id root@rpi-iot-jsho-DockerCluster-01
root@rpi-iot-jsho-DockerCluster-00:~# ssh-copy-id ssh-copy-id root@rpi-iot-jsho-DockerCluster-02

Install Docker on each node

root@rpi-iot-jsho-DockerCluster-00:~# curl -sSL https://get.docker.com | sh
root@rpi-iot-jsho-DockerCluster-01:~# curl -sSL https://get.docker.com | sh
root@rpi-iot-jsho-DockerCluster-02:~# curl -sSL https://get.docker.com | sh

Create the swarm

 root@rpi-iot-jsho-DockerCluster-00:~# docker swarm init –advertise-addr 192.168.1.136

Add the rest of the nodes to the swarm

root@rpi-iot-jsho-DockerCluster-00:~# docker swarm join-token manager
root@rpi-iot-jsho-DockerCluster-00:~# docker swarm join-token worker
root@rpi-iot-jsho-DockerCluster-01:~# docker swarm join –token SWMTKN-1-2r32j380gm7cej0cw9p4d6nk65qik2p3stc1t65rb3eigapwms-507hts883sm0i7raj4bdr7r5k 192.168.1.137:2377
root@rpi-iot-jsho-DockerCluster-02:~# docker swarm join –token SWMTKN-1-2r32j380gm7cej0cw9p4d6nk65qik2p3stc1t65rb3eigapwms-507hts883sm0i7raj4bdr7r5k 192.168.1.138:2377
root@rpi-iot-jsho-DockerCluster-00:~# docker node ls
ID                            HOSTNAME                        STATUS              AVAILABILITY        MANAGER STATUS
kpo4hpblpqyswzzyiq6lfhuef *   rpi-iot-jsho-DockerCluster-00   Ready               Active              Leader
nuy11jbsa5is971zpsbsje32v     rpi-iot-jsho-DockerCluster-01   Ready               Active
n1lxz89yddjk02y0bf1nebnkb     rpi-iot-jsho-DockerCluster-02   Ready               Active

Leave the swarm

# docker swarm leave –force

Run our first service

root@rpi-iot-jsho-DockerCluster-00:~# docker service create \
        –name viz \
        –publish 8080:8080/tcp \
        –constraint node.role==manager \
        –mount type=bind,src=/var/run/docker.sock,dst=/var/run/docker.sock \
        alexellis2/visualizer-arm:latest

It will say 0/1 when it’s start

root@rpi-iot-jsho-DockerCluster-00:~# docker service ls
ID                  NAME                MODE                REPLICAS            IMAGE                              PORTS
dkiatb8sjbeu        viz                 replicated          0/1                 alexellis2/visualizer-arm:latest   *:8080->8080/tcp

It will say 1/1 when it’s ready

root@rpi-iot-jsho-DockerCluster-00:~# docker service ls
ID                  NAME                MODE                REPLICAS            IMAGE                              PORTS
dkiatb8sjbeu        viz                 replicated          1/1                 alexellis2/visualizer-arm:latest   *:8080->8080/tcp

Once it’s ready you can visit http://192.168.1.136:8080 (the IP@ of rpi-iot-jsho-DockerCluster-00 and port 8080 )