Presentation is loading. Please wait.

Presentation is loading. Please wait.

Snap your App! Ted Texas Linux Fest

Similar presentations


Presentation on theme: "Snap your App! Ted Texas Linux Fest"— Presentation transcript:

1 Snap your App! Ted Gould ted@canonical.com @tedjgould Texas Linux Fest
21 Aug 2015

2 The Plan Give instructions on getting Snappy installed
Talk about Snappy Give instructions on downloading demo Talk about building apps for Snappy Build an app for Snappy

3 QEMU (Virtual Machine Manager)
$ sudo apt-get install qemu-kvm ubuntu-virt- mgmt python-spice- client-gtk $ kvm-ok

4 Snappy Image $ wget snappy-amd64-generic.img.xz $ unxz ubuntu snappy-amd64- generic.img.xz

5 Test It! $ kvm -m 512 -redir :8090::4200 -redir :8022::22 ubuntu snappy-amd64- generic.img $ ssh -p 8022

6 Play with it!

7

8 Ubuntu Debian based (package format and policies) Regular Releases
Updated via Apt

9 Ubuntu Phone Click Applications System Image Updates

10 Why Click? Millions Thousands

11 Leaves are Simpler Single Dependency

12 Click App Ubuntu Touch

13 Reviewers Don't Scale

14 Why Image Based Updates?
Binary: Works or it doesn't Provides opportunity to rollback Simple testable states

15 — Us, acting cooler than we actually are
“Let's Take Ubuntu Phone all the way to 11!” — Us, acting cooler than we actually are

16 Snappy Ubuntu Core Transactional Updates Snap based Apps
Snap frameworks OS snap

17 App App App App Framework Snappy Ubuntu Core Gadget Hardware Abstraction

18 Hardware Abstraction Provided by board vendors
Allows for custom drivers and config

19 “Gadget” Snap Per-device configuration Snaps to install Permissions
Branding

20 Framework Snaps Provide shared services Mediate resources IPC to Apps
Mir System Compositor

21 Why snap? (not click) Click v2.0 Click only for leaf nodes
Support for OS and framework snaps Lower level components

22 Cloud Internet Of Things Corp IT Consumer Devices

23 Trend: Internet of Things
Smaller computers Internet connectivity Full OS resources Must be reliable

24 Trend: Consumer Devices
More complex interactions Bullet-proof experience Complex security situations

25 Trend: Corporate/Education IT
Verifiable Images Upgrades don't cause downtime Limited apps and app permissions

26 Trend: Cloud and Containers
Small base OS (JeOS) Unit of specialized code Tested as a unit

27 Snappy Store

28 Store Story: Erle Robotics

29 Store Store: Networking

30 Try it today!

31 Progress Check-In

32 Import into VMM $ sudo cp ubuntu snappy-amd64-generic.img /var/lib/libvirt/images/ $ sudo chown libvirt-qemu.kvm /var/lib/libvirt/images/ubuntu snappy-amd64-generic.img

33

34 Install Snapcraft $ ifconfig $ sudo snappy install docker $ sudo snappy install snapcraft-daily.ted $ snapcraft-daily.snapcraft help

35 What is a snap? A self-contained bundle Includes dependencies
Works with frameworks You are here

36 Snap Definition (package.yaml)
name: photoviewer version: 0.1 vendor: Ted Gould architecture: amd64 frameworks: [mir] binaries: - name: photoviewer exec: qmlscene main.qml -- caps: - mir_client - network-client

37 Snap Directories

38

39 Block Inception

40 Snapcraft.yaml parts: qml: plugin: qml photoviewer: plugin: copy
files: main.qml: main.qml PhotoViewerCore: PhotoViewerCore snappy-metadata: meta

41 Demo


Download ppt "Snap your App! Ted Texas Linux Fest"

Similar presentations


Ads by Google