Upload
manfred-touron
View
967
Download
4
Tags:
Embed Size (px)
Citation preview
Building images for Scaleway
while42 Paris #13 (14/04/14) - by @moul & @aimxhaisse 1
Who We Are» BareMetal SSD cloud
servers
» Compute C1
» 4 dedicated ARM cores
» 2GB memory
» 50GB SSD Disk
» 1 public IPv4 address
» 200Mbits/s unmetered
while42 Paris #13 (14/04/14) - by @moul & @aimxhaisse 2
Example of images» distrib images:
Ubuntu, Debian, Fedora, Arch Linux, Gentoo, Alpine Linux ...
» 1-Click apps: Docker, Wordpress, OwnCloud, Pydio, LEMP, Python, Node.js ...
while42 Paris #13 (14/04/14) - by @moul & @aimxhaisse 3
Our Needs» write/build/test/commit images
» Encourage contributions
while42 Paris #13 (14/04/14) - by @moul & @aimxhaisse 4
The Docker Way1.inherit from a
Docker imageFROM my-arm-image
2.customizeRUN apt-get install ...
3.convert it to a Scaleway image$ make build
while42 Paris #13 (14/04/14) - by @moul & @aimxhaisse 5
Hello World Dockerfile# Inherit from the Ubuntu Trusty Scaleway imageFROM armbuild/scw-distrib-ubuntu:trusty
# Install the `cowsay` packageRUN apt-get install -y -qq cowsay
# Add local assetsCOPY ./patches/ /
while42 Paris #13 (14/04/14) - by @moul & @aimxhaisse 6
Let's Build$ make build
» docker build, run, export
$ make image
» spawns a C1 instance, export tarball to the volume and snapshot
while42 Paris #13 (14/04/14) - by @moul & @aimxhaisse 7
Pros !can port existing images from community
sed -i 's/^FROM .*$/FROM armbuild/scw-distrib-ubuntu:trusty/' Dockerfile
while42 Paris #13 (14/04/14) - by @moul & @aimxhaisse 8
Pros !benefit from Docker/Dockerfile features
» inheritance: images apps are simple and concise
» caching: incrementally build images
» debug: drop a shell in the image thanks to docker run
» pull/push: sources
while42 Paris #13 (14/04/14) - by @moul & @aimxhaisse 9
Pros !easy to contribute
» Dockerfile is a known standard
» sources & issues are on GitHub
$ nano Dockerfile$ git commit -am 'Added cool feature. :neckbeard:'
while42 Paris #13 (14/04/14) - by @moul & @aimxhaisse 10
Cons» no official support of Docker on ARM
» some applications aren't ARM-ready
» no crossbuild
while42 Paris #13 (14/04/14) - by @moul & @aimxhaisse 11
Questions?scaleway.comgithub.com/scalewaytwitter.com/scaleway
{twitter,github}.com/moul [email protected]{twitter,github}.com/aimxhaisse [email protected]
while42 Paris #13 (14/04/14) - by @moul & @aimxhaisse 12