The document discusses running Docker containers on Raspberry Pi devices. It describes how the Hypriot team iteratively developed HypriotOS to make it easy to run Docker on ARM devices like Raspberry Pi through pre-built images. It aims to bring Docker and containers to Internet of Things applications by supporting low-powered boards. The talk covers the goals, approaches, concepts and current status of HypriotOS for enabling Docker containers on ARM and Raspberry Pi.
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Mastering Docker Raspberry Pi
1. 26/02/16 4:33 PMTitle
Page 1 of 20file:///Users/dieter/code/github/hypriot/hypriot-talks/20160210-Docker-Meetup-Belguim/Mastering-Docker-on-a-Raspberry-Pi.html#1
Mastering Docker on a Raspberry Pi
these days it's easy, but a long time ago...
Dieter Reuter @Quintus23M
Hypriot Team @HypriotTweets – http://blog.hypriot.com
Docker Meetup Belgium / February 10th, 2016
1 / 20
3. 26/02/16 4:33 PMTitle
Page 3 of 20file:///Users/dieter/code/github/hypriot/hypriot-talks/20160210-Docker-Meetup-Belguim/Mastering-Docker-on-a-Raspberry-Pi.html#1
Introduction
it's all about team work
Me, Dieter Reuter
Consultant at daytime
Hacker & Pirate by night
Hypriot Team
five individuals: Andreas, Dieter, Govinda, Mathias, Stefan
[x] devs
[x] devops
[x] architects
[x] consultants
--> We're scaling Docker containers - in a different way!
3 / 20
4. 26/02/16 4:33 PMTitle
Page 4 of 20file:///Users/dieter/code/github/hypriot/hypriot-talks/20160210-Docker-Meetup-Belguim/Mastering-Docker-on-a-Raspberry-Pi.html#1
Goals
Containers and the Internet of Things
evangelizing to use Docker container on ARM boards
convincing Docker containers for IoT applications
enabling the Docker ecosystem on low-powered devices
Gartner says 6.4 billion connected "Things" will be in use in 2016, up 30 percent
from 2015
In turn, that number is expected to further explode by 2020, where the IoT
market will include 20.8 billion things
--> pushing the Docker technology into the IoT world
4 / 20
5. 26/02/16 4:33 PMTitle
Page 5 of 20file:///Users/dieter/code/github/hypriot/hypriot-talks/20160210-Docker-Meetup-Belguim/Mastering-Docker-on-a-Raspberry-Pi.html#1
Ways - 1. Iteration
run a proof-of-concept
select the Raspberry Pi as a popular device
tried to run Docker on a RPi model B
found only outdated tutorials
using ArchLinux was "special"
upgrading Raspbian takes 5 to 6 hours
let's improve this situation!
need to compile Docker on ARMv6
need to create a special Linux kernel
need to package all into a new SD card image
5 / 20
6. 26/02/16 4:33 PMTitle
Page 6 of 20file:///Users/dieter/code/github/hypriot/hypriot-talks/20160210-Docker-Meetup-Belguim/Mastering-Docker-on-a-Raspberry-Pi.html#1
--> in the end, we built HypriotOS (based on Raspbian/Debian)
6 / 20
7. 26/02/16 4:33 PMTitle
Page 7 of 20file:///Users/dieter/code/github/hypriot/hypriot-talks/20160210-Docker-Meetup-Belguim/Mastering-Docker-on-a-Raspberry-Pi.html#1
Ways - 2. Iteration - Updates
porting the complete Docker ecosystem to ARM
Docker Compose
Docker Swarm
Docker Machine
created all Docker releases for ARM just-in-time
from Docker 1.4 until 1.10 (sometimes minutes after release!)
shipping every new Linux kernel version
from 3.18 until 4.1.12
switching to Raspbian Jessie
included support for the Raspberry 7" Touch Display
7 / 20
8. 26/02/16 4:33 PMTitle
Page 8 of 20file:///Users/dieter/code/github/hypriot/hypriot-talks/20160210-Docker-Meetup-Belguim/Mastering-Docker-on-a-Raspberry-Pi.html#1
--> complete Docker toolset on ARM
8 / 20
9. 26/02/16 4:33 PMTitle
Page 9 of 20file:///Users/dieter/code/github/hypriot/hypriot-talks/20160210-Docker-Meetup-Belguim/Mastering-Docker-on-a-Raspberry-Pi.html#1
Ways - 3. Iteration - Cluster Lab
create a learning platform for clusters
cheap, using 3 to 5 Raspberry Pi's and a network switch
easy to setup a cluster with HypriotOS and Docker
Google's Kubernetes team members did it!
ready for classes in univercity
ready for talks and live demos
ready for professional trainings too
9 / 20
10. 26/02/16 4:33 PMTitle
Page 10 of 20file:///Users/dieter/code/github/hypriot/hypriot-talks/20160210-Docker-Meetup-Belguim/Mastering-Docker-on-a-Raspberry-Pi.html#1
--> Hypriot Cluster Lab is just flash and boot.
10 / 20
11. 26/02/16 4:33 PMTitle
Page 11 of 20file:///Users/dieter/code/github/hypriot/hypriot-talks/20160210-Docker-Meetup-Belguim/Mastering-Docker-on-a-Raspberry-Pi.html#1
Ways - 4. Iteration (under construction!)
create a container OS for ARM devices
using a mainline Linux distro (Debian Jessie)
building blocks for ready-to-use SD images
support all important ARM devices
Raspberry Pi
ODROID C1+, XU4
Banana Pi
BeagleBoneBlack
Pine A64+
ODROID C2
11 / 20
12. 26/02/16 4:33 PMTitle
Page 12 of 20file:///Users/dieter/code/github/hypriot/hypriot-talks/20160210-Docker-Meetup-Belguim/Mastering-Docker-on-a-Raspberry-Pi.html#1
--> device list will be continued...
12 / 20
13. 26/02/16 4:33 PMTitle
Page 13 of 20file:///Users/dieter/code/github/hypriot/hypriot-talks/20160210-Docker-Meetup-Belguim/Mastering-Docker-on-a-Raspberry-Pi.html#1
Concepts - Easy Building Blocks
small and simple pieces
easy to understand
easy to develop
easy to maintain
--> combine it like LEGO bricks
13 / 20
14. 26/02/16 4:33 PMTitle
Page 14 of 20file:///Users/dieter/code/github/hypriot/hypriot-talks/20160210-Docker-Meetup-Belguim/Mastering-Docker-on-a-Raspberry-Pi.html#1
Concepts - Full Transparency
develop locally (Vagrant + Docker)
automated build server (Travis + Docker)
automated testing (ServerSpec)
automated releasing (GitHub releases)
--> every single detail is visible
14 / 20
15. 26/02/16 4:33 PMTitle
Page 15 of 20file:///Users/dieter/code/github/hypriot/hypriot-talks/20160210-Docker-Meetup-Belguim/Mastering-Docker-on-a-Raspberry-Pi.html#1
Concepts - Parts and Ideas
the new HypriotOS
a Debian-based root filesystem (32 and 64-bit)
a board specific layer
Linux kernel
firmware
bootloader
a common layer
Hypriot specific settings and tools
Docker Engine
Compose, Swarm, Machine
an optional application layer
Hypriot Cluster Lab
--> creating ready-to-run SD card images
15 / 20
16. 26/02/16 4:33 PMTitle
Page 16 of 20file:///Users/dieter/code/github/hypriot/hypriot-talks/20160210-Docker-Meetup-Belguim/Mastering-Docker-on-a-Raspberry-Pi.html#1
Concepts - Open Source Everything
All these parts are already open sourced at GitHub https://github.com/hypriot
root filesystem: https://github.com/hypriot/os-rootfs
raw image: https://github.com/hypriot/image-builder-raw
Raspberry Pi: https://github.com/hypriot/image-builder-rpi
ODROID C1/C1+: https://github.com/hypriot/image-builder-odroid-c1
Banana Pi: https://github.com/hypriot/image-builder-bananapi
Come and try it out
hack on it
improve it
add new boards and features
--> we need your help !
16 / 20
18. 26/02/16 4:33 PMTitle
Page 18 of 20file:///Users/dieter/code/github/hypriot/hypriot-talks/20160210-Docker-Meetup-Belguim/Mastering-Docker-on-a-Raspberry-Pi.html#1
Current Status of HypriotOS
active Docker ARM community
Gitter channel (> 280 users)
Twitter is growing fast (> 750 followers)
increasing download numbers (Cloudflare helps)
everybody is using Docker on ARM right now
HypriotOS is the easiest way around
download and boot takes just 5 minutes
--> break all limits with the new HypriotOS !
18 / 20
19. 26/02/16 4:33 PMTitle
Page 19 of 20file:///Users/dieter/code/github/hypriot/hypriot-talks/20160210-Docker-Meetup-Belguim/Mastering-Docker-on-a-Raspberry-Pi.html#1
Thank You
and let's stay in contact:
Find me on Twitter: @Quintus23M
Hypriot Blog: http://blog.hypriot.com
Hypriot on Twitter: @HypriotTweets
GitHub: https://github.com/hypriot
Gitter: https://gitter.im/hypriot/talk
19 / 20
20. 26/02/16 4:33 PMTitle
Page 20 of 20file:///Users/dieter/code/github/hypriot/hypriot-talks/20160210-Docker-Meetup-Belguim/Mastering-Docker-on-a-Raspberry-Pi.html#1
Let's Swarm the Pirate Way
Happy Hacking !
20 / 20