Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Running container at BlaBlaCar — While 42 (San-...

Running container at BlaBlaCar — While 42 (San-Francisco)

Meetup While42 in San-Francisco

Matthieu Moquet

April 06, 2016
Tweet

More Decks by Matthieu Moquet

Other Decks in Technology

Transcript

  1. $ (sudo) rkt run ./image.aci Archive of filesystem & instructions

    of what to run Foreground process Require root
  2. ├── aci-manifest.yml ├── attributes │ └── redis.yml ├── runlevels │

    └── build │ └── install.sh └── templates └── etc └── redis └── redis.conf.tmpl
  3. ├── aci-manifest.yml ├── attributes │ └── redis.yml ├── runlevels │

    └── build │ └── install.sh └── templates └── etc └── redis └── redis.conf.tmpl
  4. ├── aci-manifest.yml ├── attributes │ └── redis.yml ├── runlevels │

    └── build │ └── install.sh └── templates └── etc └── redis └── redis.conf.tmpl
  5. # templates/etc/redis/redis.conf.tmpl daemonize no port {{ .redis.port }} ... #

    attributes/redis.yml default: redis: port: 6379 Resolved at runtime
  6. name: example.org/pod-myapp:1 pod: apps: - dependencies: - example.org/aci-nginx:1.8.1 app: exec:

    [/usr/sbin/nginx, -g, daemon off] - dependencies: - example.org/aci-php:5.6 - example.org/aci-myapp:42 app: exec: [/usr/sbin/php5-fpm, -F]