Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
Building images for Scaleway
while42 Paris #13 (14/04/14) - by @moul & @aimxhaisse 1
WhoWeAre
» BareMetal SSD cloud
servers
» Compute C1
» 4 dedicated ARM
cores
» 2GB memory
» 50GB SSD Disk
» 1 public IPv4
a...
Example of
images
» distrib images:
Ubuntu, Debian,
Fedora, Arch Linux,
Gentoo, Alpine
Linux ...
» 1-Click apps:
Docker, W...
Our Needs
» write/build/test/commit images
» Encourage contributions
while42 Paris #13 (14/04/14) - by @moul & @aimxhaisse...
The Docker
Way
1.inherit from a
Docker image
FROM my-arm-image
2.customize
RUN apt-get
install ...
3.convert it to a
Scale...
HelloWorld
Dockerfile
# Inherit from the Ubuntu Trusty Scaleway image
FROM armbuild/scw-distrib-ubuntu:trusty
# Install the...
Let's Build
$ make build
» docker build, run,
export
$ make image
» spawns a C1
instance, export
tarball to the
volume and...
Pros !
can portexisting images from community
sed -i 's/^FROM .*$/FROM armbuild/scw-distrib-ubuntu:trusty/' Dockerfile
whil...
Pros !
benefitfrom Docker/
Dockerfile features
» inheritance: images
apps are simple and
concise
» caching:
incrementally bu...
Pros !
easyto contribute
» Dockerfile is a
known standard
» sources & issues are
on GitHub
$ nano Dockerfile
$ git commit -a...
Cons
» no official support of Docker on ARM
» some applications aren't ARM-ready
» no crossbuild
while42 Paris #13 (14/04/1...
Questions?
scaleway.com
github.com/scaleway
twitter.com/scaleway
{twitter,github}.com/moul m@42.am
{twitter,github}.com/ai...
Upcoming SlideShare
Loading in …5
×

while42 Paris#13 - Building images for Scaleway using Docker

6,071 views

Published on

How we use the Docker build system to build real server images

  • Hey guys! Who wants to chat with me? More photos with me here 👉 http://www.bit.ly/katekoxx
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here

while42 Paris#13 - Building images for Scaleway using Docker

  1. 1. Building images for Scaleway while42 Paris #13 (14/04/14) - by @moul & @aimxhaisse 1
  2. 2. WhoWeAre » 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
  3. 3. 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
  4. 4. Our Needs » write/build/test/commit images » Encourage contributions while42 Paris #13 (14/04/14) - by @moul & @aimxhaisse 4
  5. 5. The Docker Way 1.inherit from a Docker image FROM my-arm-image 2.customize RUN apt-get install ... 3.convert it to a Scaleway image $ make build while42 Paris #13 (14/04/14) - by @moul & @aimxhaisse 5
  6. 6. HelloWorld Dockerfile # Inherit from the Ubuntu Trusty Scaleway image FROM armbuild/scw-distrib-ubuntu:trusty # Install the `cowsay` package RUN apt-get install -y -qq cowsay # Add local assets COPY ./patches/ / while42 Paris #13 (14/04/14) - by @moul & @aimxhaisse 6
  7. 7. 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
  8. 8. Pros ! can portexisting images from community sed -i 's/^FROM .*$/FROM armbuild/scw-distrib-ubuntu:trusty/' Dockerfile while42 Paris #13 (14/04/14) - by @moul & @aimxhaisse 8
  9. 9. Pros ! benefitfrom 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
  10. 10. Pros ! easyto 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
  11. 11. 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
  12. 12. Questions? scaleway.com github.com/scaleway twitter.com/scaleway {twitter,github}.com/moul m@42.am {twitter,github}.com/aimxhaisse mxs@sbrk.org while42 Paris #13 (14/04/14) - by @moul & @aimxhaisse 12

×