18
VSHN AG I Neugasse 10 I 8005 Zürich I T 044 545 53 00 www.vshn.ch Swiss Magento Meetup 11.1.2017 APPUiO Swiss Container Plattform Aarno Aukia VSHN AG

Swiss magento meetup: APPUiO

Embed Size (px)

Citation preview

VSHN AG I Neugasse 10 I 8005 Zürich I T 044 545 53 00 www.vshn.ch

Swiss Magento Meetup 11.1.2017

APPUiOSwiss Container Plattform

Aarno AukiaVSHN AG

VSHN AG I Neugasse 10 I 8005 Zürich I T 044 545 53 00 www.vshn.ch

Agenda

● About Aarno / VSHN● How are we running Magento currently ?● Shortcomings & wishes● What is Docker, Kubernetes, OpenShift,

APPUiO ?● Why use them ?

VSHN AG I Neugasse 10 I 8005 Zürich I T 044 545 53 00 www.vshn.ch

Who

Aarno Aukia, CTO & co-founder

ETH → Google → Atrila → VSHN

@aarnoaukia http://about.me/aarno

VSHN - the DevOps Company

Since 2014, 17 people in Zürich

Running web applications on-premises and in the clouds making both visitors and developers happy

https://vshn.ch @vshn_ch

VSHN AG I Neugasse 10 I 8005 Zürich I T 044 545 53 00 www.vshn.ch

How are we currently running Magento

Virtual servers

Managed by Puppet/Ansible

Nginx, (varnish), PHP5.6/PHP7, MySQL/MariaDB-Galera cluster, Memcached, Redis, Solr, ElasticSearch

VSHN AG I Neugasse 10 I 8005 Zürich I T 044 545 53 00 www.vshn.ch

VSHN AG I Neugasse 10 I 8005 Zürich I T 044 545 53 00 www.vshn.ch

Shortcomings

Scaling up/down takes manual effort & time

PHP/MySQL/Solr/ElasticSearch versions/plugins defined by server, not by project/code and have to be communicated separately

Adding new technology (e.g. npm/grunt) is complex

VSHN AG I Neugasse 10 I 8005 Zürich I T 044 545 53 00 www.vshn.ch

Wishful thinking...

Solves build-ship-run workflow, integrates in CI/CD, DevOps & self-service

Handles the standard software plattform problems: scaling, hitless deployment, monitoring, backup, etc

Open standards: 100% open source, backed by big community

No lock-in, free to choose any provider, works on any infrastructure

Extensible with API

VSHN AG I Neugasse 10 I 8005 Zürich I T 044 545 53 00 www.vshn.ch

Docker

Lightweight container runtime

Package code, runtime, plugins, libraries

Helps you to use 12-Factor-App pattern (explicit entrypoint, port, volume configurations, see https://12factor.net)

Automatically built, quickly started, one-time use

https://blog.vshn.ch/2016/11/docker

https://github.com/docker/docker

VSHN AG I Neugasse 10 I 8005 Zürich I T 044 545 53 00 www.vshn.ch

From container to production ?

VSHN AG I Neugasse 10 I 8005 Zürich I T 044 545 53 00 www.vshn.ch

Kubernetes

Container orchestrator:

How many of a kind should be running ?

On which IP/port/machine are they ?

How do they find each other ?

What happens when a container/machine running them disappears ?

Scaling, load balancing, rolling deployments

https://blog.vshn.ch/2016/08/openshift

https://github.com/kubernetes/kubernetes

VSHN AG I Neugasse 10 I 8005 Zürich I T 044 545 53 00 www.vshn.ch

Container orchestration

VSHN AG I Neugasse 10 I 8005 Zürich I T 044 545 53 00 www.vshn.ch

OpenShift

How to get the application in the container ?

Web-GUI, CLI client, REST-API

https://blog.vshn.ch/2016/08/openshift

https://github.com/openshift/origin

VSHN AG I Neugasse 10 I 8005 Zürich I T 044 545 53 00 www.vshn.ch

OpenShift

VSHN AG I Neugasse 10 I 8005 Zürich I T 044 545 53 00 www.vshn.ch

APPUiO

Managed Docker, Kubernetes, OpenShift from Puzzle ITC (Dev) and VSHN (Ops)

Flavours: Big shared plattform in the cloud, private plattform in the cloud or on-premises

Hosted in Switzerland (ISO/FINMA-certified) or whereever you want (AWS, Azure, etc)

Community for Developers and Operations, Dev & Ops = DevOps

Free monthly half-day training TechLabs

Starting at CHF 40/mt in Switzerland

VSHN AG I Neugasse 10 I 8005 Zürich I T 044 545 53 00 www.vshn.ch

Why?

You have full control over the container contents → no more old versions by the hosting provider

You control the build, deploy process from the GUI/CLI/API

Plattform takes care of seamless deployment, SSL, load balancing, scaling, system updates, monitoring, backups, hardware, storage, network, etc

You don't need to handle Docker, Kubernetes, OpenShift internals if you don't want to

VSHN AG I Neugasse 10 I 8005 Zürich I T 044 545 53 00 www.vshn.ch

Sounds complex ?

Lots of moving parts ?

Uh-oh new technology ?

VSHN AG I Neugasse 10 I 8005 Zürich I T 044 545 53 00 www.vshn.ch

Demotime

Links:

https://console.appuio.ch

https://github.com/arska/phpinfo.git

https://github.com/arska/example-php-sti-helloworld.git

VSHN AG I Neugasse 10 I 8005 Zürich I T 044 545 53 00 www.vshn.ch

We're looking for partners to help us bring Magento2 to APPUiO and document the process on http://docs.appuio.ch

Join the community chat https://community.appuio.ch/

Thanks !