Practical Dev Ops with Linux and Virtualization Simon

  • Slides: 39
Download presentation
Practical Dev. Ops with Linux and Virtualization Simon Coter Director of Product Management, Oracle

Practical Dev. Ops with Linux and Virtualization Simon Coter Director of Product Management, Oracle @scoter 80 https: //blogs. oracle. com/scoter Copyright © 2017, Oracle and/or its affiliates. All rights reserved.

Safe Harbor Statement The following is intended to outline our general product direction. It

Safe Harbor Statement The following is intended to outline our general product direction. It is intended for information purposes only, and may not be incorporated into any contract. It is not a commitment to deliver any material, code, or functionality, and should not be relied upon in making purchasing decisions. The development, release, and timing of any features or functionality described for Oracle’s products remains at the sole discretion of Oracle. Copyright © 2017, Oracle and/or its affiliates. All rights reserved. 2

Agenda 7 What is Dev. Ops? Why is Now the Time For Dev. Ops?

Agenda 7 What is Dev. Ops? Why is Now the Time For Dev. Ops? What is Oracle VM Virtual. Box ? What is Vagrant ? What is Oracle Linux ? How can I start with Vagrant, Virtual. Box and Oracle Linux ? Demo 8 References - Q&A 1 2 3 4 5 6 Copyright © 2017, Oracle and/or its affiliates. All rights reserved. 3

Familiar? Dev. Ops seeks to solve this It's not my machines, it's your code!

Familiar? Dev. Ops seeks to solve this It's not my machines, it's your code! It's not my code, it's your machines! Copyright © 2017, Oracle and/or its affiliates. All rights reserved. 4

Dev and Ops Constantly Argue “Code is written. . . it’s your problem now”

Dev and Ops Constantly Argue “Code is written. . . it’s your problem now” Copyright © 2017, Oracle and/or its affiliates. All rights reserved. 5

Dev. Ops Development • • • Open: Adopts new technology quickly • Languages •

Dev. Ops Development • • • Open: Adopts new technology quickly • Languages • Frameworks • Tooling Their features enable the business Most likely to say: “Works on my machine” + Operations • • • Traditional, cautious, values • Stability • SLAs, Performance, Uptime • Security Can slow business innovation Most likely to say: “if it works don’t change it” Enabling the Business Copyright © 2017, Oracle and/or its affiliates. All rights reserved. 6

Agenda 7 What is Dev. Ops? Why is Now the Time For Dev. Ops?

Agenda 7 What is Dev. Ops? Why is Now the Time For Dev. Ops? What is Oracle VM Virtual. Box ? What is Vagrant ? What is Docker ? How can I start with Vagrant, Virtual. Box and Docker ? Demo 8 References - Q&A 1 2 3 4 5 6 Copyright © 2017, Oracle and/or its affiliates. All rights reserved. 7

Business Value Is Driving Dev. Ops Faster Time-to-Market Cost • Increase frequency of releases

Business Value Is Driving Dev. Ops Faster Time-to-Market Cost • Increase frequency of releases • Automate what was • Allow high value previously done manually. employees to focus on Reduces OPEX higher value activities • Increase accuracy of releases - avoid downtime • Reduce the time it actually takes to perform a release Focus on Business Value • Prevent humans from making costly errors • Reduce downtime, which saves money • Nobody benefits from doing low value activities, like setting up infrastructure Copyright © 2017, Oracle and/or its affiliates. All rights reserved. 8

Good Technology is Now Available Dev. Ops technology all < 10 years old 2012

Good Technology is Now Available Dev. Ops technology all < 10 years old 2012 2008 § Chef § New Relic § SOASTA § Ansible § Vagrant § Gradle 2005 2011 2013 § Puppet § Git § Salt. Stack § Jenkins § Docker Capital + mechanical automation always win over labor Copyright © 2017, Oracle and/or its affiliates. All rights reserved. 9

Agenda 7 What is Dev. Ops? Why is Now the Time For Dev. Ops?

Agenda 7 What is Dev. Ops? Why is Now the Time For Dev. Ops? What is Oracle VM Virtual. Box ? What is Vagrant ? What is Oracle Linux ? How can I start with Vagrant, Virtual. Box and Oracle Linux ? Demo 8 References - Q&A 1 2 3 4 5 6 Copyright © 2017, Oracle and/or its affiliates. All rights reserved. 10

Oracle’s Virtualization Portfolio From Development, Access, Fully Configurable Software to “Turn Key” Systems Desktop

Oracle’s Virtualization Portfolio From Development, Access, Fully Configurable Software to “Turn Key” Systems Desktop and Access • Oracle VM Virtual. Box • Secure Global Desktop Private Clouds and On-Premises Servers • Oracle VM x 86 • Oracle VM SPARC Copyright © 2017, Oracle and/or its affiliates. All rights reserved. Public Clouds • Oracle VM x 86 • Oracle VM SPARC 11

Private Cloud Oracle VM Virtual. Box Public Cloud Free and open source, Cross-Platform Virtualization

Private Cloud Oracle VM Virtual. Box Public Cloud Free and open source, Cross-Platform Virtualization Software • Available for Windows, Mac OS X, Linux and Oracle Solaris • Supports a wide range of guest platforms • Easy-to-use graphical user interface • Powerful, scriptable command line interface Vibrant Community Participation Oracle Development & Support Hybrid Cloud Download & Test Dev & Deploy • Import and export virtual machines using OVF/OVA standards • Shared folders between guest and host • Create a multi-platform test and development environment • Extend the lifetime and usefulness of existing computers 12 Copyright © 2017, Oracle and/or its affiliates. All rights reserved.

Agenda 7 What is Dev. Ops? Why is Now the Time For Dev. Ops?

Agenda 7 What is Dev. Ops? Why is Now the Time For Dev. Ops? What is Oracle VM Virtual. Box ? What is Vagrant ? What is Oracle Linux ? How can I start with Vagrant, Virtual. Box and Oracle Linux ? Demo 8 References - Q&A 1 2 3 4 5 6 Copyright © 2017, Oracle and/or its affiliates. All rights reserved. 13

What is Vagrant ? • A tool to build development environments based on Virtual

What is Vagrant ? • A tool to build development environments based on Virtual Machines* • Focused to create environments that are similar to Production VMs/servers • Use Hypervisors, Docker or Cloud as Providers • Virtual. Box (default), VMWare, Hyper-V, KVM and Docker + AWS and Digital. Ocean as cloud • Written in Ruby • Available for all x 86 platforms (Linux, Windows and Mac OS X) • Further details at: https: //www. vagrantup. com • Very useful utility for Dev. Ops * Container technology is also available Copyright © 2017, Oracle and/or its affiliates. All rights reserved. 14

Why Vagrant ? • Vagrant provides easy to configure, reproducible, and portable work environments

Why Vagrant ? • Vagrant provides easy to configure, reproducible, and portable work environments built on top of industry-standard technology and controlled by a single consistent workflow to help maximize the productivity and flexibility of you and your team. • Dev. Ops “If you're going to do operations reliably, you need to make it reproducible and programmatic. ” Copyright © 2017, Oracle and/or its affiliates. All rights reserved. 15

Agenda 7 What is Dev. Ops? Why is Now the Time For Dev. Ops?

Agenda 7 What is Dev. Ops? Why is Now the Time For Dev. Ops? What is Oracle VM Virtual. Box ? What is Vagrant ? What is Oracle Linux ? How can I start with Vagrant, Virtual. Box and Oracle Linux ? Demo 8 References - Q&A 1 2 3 4 5 6 Copyright © 2017, Oracle and/or its affiliates. All rights reserved. 16

#2 enterprise Linux provider Shipping for more than 10 years 10’s of thousands of

#2 enterprise Linux provider Shipping for more than 10 years 10’s of thousands of enterprises supported Linux & VM deployment is standard for all Oracle products Oracle Linux: Engineered for open cloud Deployed across Oracle’s business operations Copyright © 2017, Oracle and/or its affiliates. All rights reserved. 17

A Truly Open Operating System Oracle Linux is always free to use, free to

A Truly Open Operating System Oracle Linux is always free to use, free to distribute and free to update ISOs are publicly available, free errata Kernel source code is published in a public GIT repository with all patches and commit logs left intact Truly open business practices • Customers choose which systems to cover by support subscriptions • No complicated migration from free to paid • No restrictive contracts or agreements Copyright © 2017, Oracle and/or its affiliates. All rights reserved. 18

More Packages for Test and Development • Development channels on Oracle Linux Yum Server

More Packages for Test and Development • Development channels on Oracle Linux Yum Server - yum. oracle. com – Preview channel – Developer EPEL channel • Starting to mirror the external EPEL (Extra Packages for Enterprise Linux) , available on Oracle Linux yum server – Download the useful packages built and signed by Oracle Copyright © 2017, Oracle and/or its affiliates. All rights reserved. 19

Software Collections Newer stable software for developers • Latest version 2. 4 • Software

Software Collections Newer stable software for developers • Latest version 2. 4 • Software collections are primarily intended for development environments. • Install recent versions of Perl, PHP, or Python, Node. JS, Nginx, etc. without risk of disrupting applications on the system that rely on different versions of these components • Available on ULN and Oracle Linux yum server (yum. oracle. com) Copyright © 2017, Oracle and/or its affiliates. All rights reserved. 20

Agenda 7 What is Dev. Ops? Why is Now the Time For Dev. Ops?

Agenda 7 What is Dev. Ops? Why is Now the Time For Dev. Ops? What is Oracle VM Virtual. Box ? What is Vagrant ? What is Oracle Linux ? How can I start with Vagrant, Virtual. Box and Oracle Linux ? Demo 8 References - Q&A 1 2 3 4 5 6 Copyright © 2017, Oracle and/or its affiliates. All rights reserved. 21

How can I install and start with Vagrant and Virtual. Box ? • Download

How can I install and start with Vagrant and Virtual. Box ? • Download and Install Oracle VM Virtual. Box 5. 2 • Download Vagrant for your platform (Linux, Windows or Mac OS X) • Get a Vagrant box What is a Vagrant box ? • It’s a previously built Vagrant virtual machine image, ready-to-run • Very similar concept of Oracle VM Templates, pre-configured VMs • Boxes can be Windows, Linux, BSD or also OS X • You can create your own……obviously Copyright © 2017, Oracle and/or its affiliates. All rights reserved. 22

How can I get a Vagrant box ? • From the Hashicorp Vagrant default

How can I get a Vagrant box ? • From the Hashicorp Vagrant default “Catalog” • https: //app. vagrantup. com/boxes/search • Oracle Linux Vagrant Boxes • https: //yum. oracle. com/boxes • Oracle Git. Hub Vagrant Repository • https: //github. com/oracle/vagrant-boxes • Further “Catalogs” are available (you can also create your own) • You can add “Catalogs” to your own Vagrant installation • You can get one box from a specific Catalog / URL Copyright © 2017, Oracle and/or its affiliates. All rights reserved. 23

How can I create a Vagrant environment ? • Project • It’s the host

How can I create a Vagrant environment ? • Project • It’s the host OS folder that will guest your VM(s) • Vagrantfile • The Vagrantfile is a Ruby file used to configure Vagrant on a per-project basis. The main function of the Vagrantfile is to describe the virtual machines required for a project as well as how to configure and provision these machines. The idea is that when a developer checks out some code from version control which has a Vagrantfile, that developer can simply vagrant up to get a fully provisioned virtual environment to develop that product. Copyright © 2017, Oracle and/or its affiliates. All rights reserved. 24

How can I start to use Vagrant ? “vagrant up” Copyright © 2017, Oracle

How can I start to use Vagrant ? “vagrant up” Copyright © 2017, Oracle and/or its affiliates. All rights reserved. 25

How can I connect to the running Vagrant Box(VM) ? “vagrant ssh” Copyright ©

How can I connect to the running Vagrant Box(VM) ? “vagrant ssh” Copyright © 2017, Oracle and/or its affiliates. All rights reserved. 26

How can I stop/restart/destroy a Vagrant Box(VM) ? “vagrant halt / reload / destroy”

How can I stop/restart/destroy a Vagrant Box(VM) ? “vagrant halt / reload / destroy” • Stop the Vagrant Box running • Reload the Vagrant Box • Destroy the Vagrant Box • (image downloaded is preserved) Copyright © 2017, Oracle and/or its affiliates. All rights reserved. 27

How can I customize Boxes(VMs) ? “edit Vagrantfile & restart Vagrant box” • Port-forwarding

How can I customize Boxes(VMs) ? “edit Vagrantfile & restart Vagrant box” • Port-forwarding for service access • Based on Virtual. Box NAT port-forwarding • Custom Box configuration (CPU, Memory. . ) • VBox. Manage options can help Copyright © 2017, Oracle and/or its affiliates. All rights reserved.

Virtual. Box & Vagrant: Oracle Linux images https: //yum. oracle. com/boxes • Official Oracle

Virtual. Box & Vagrant: Oracle Linux images https: //yum. oracle. com/boxes • Official Oracle Linux images for Virtual. Box • • Built and maintained by Oracle Linux 6 & 7 available Foundation for further images (see Git. Hub) Once ready can be exported to further solutions • Oracle VM & PCA • OCI-C • OCI Copyright © 2017, Oracle and/or its affiliates. All rights reserved. 29

Virtual. Box on Git. Hub: Vagrant Oracle images https: //github. com/oracle/vagrant-boxes • Vagrant Images

Virtual. Box on Git. Hub: Vagrant Oracle images https: //github. com/oracle/vagrant-boxes • Vagrant Images dedicated to Oracle • • Oracle Linux 6 (latest) Oracle Linux 7. 5 & UEK 5 Preview Oracle Database 11. 2. 0. 2 (XE) Oracle Database 12. 2. 0. 1 (Enterprise) Oracle Linux 7 with Docker Kubernetes Cluster on OL 7 …and working on others! Copyright © 2017, Oracle and/or its affiliates. All rights reserved. 30

Agenda 7 What is Dev. Ops? Why is Now the Time For Dev. Ops?

Agenda 7 What is Dev. Ops? Why is Now the Time For Dev. Ops? What is Oracle VM Virtual. Box ? What is Vagrant ? What is Oracle Linux ? How can I start with Vagrant, Virtual. Box and Oracle Linux ? Demo 8 References - Q&A 1 2 3 4 5 6 Copyright © 2017, Oracle and/or its affiliates. All rights reserved. 31

Virtual. Box on Git. Hub: Vagrant Oracle images Demo Copyright © 2017, Oracle and/or

Virtual. Box on Git. Hub: Vagrant Oracle images Demo Copyright © 2017, Oracle and/or its affiliates. All rights reserved. 32

Agenda 7 What is Dev. Ops? Why is Now the Time For Dev. Ops?

Agenda 7 What is Dev. Ops? Why is Now the Time For Dev. Ops? What is Oracle VM Virtual. Box ? What is Vagrant ? What is Oracle Linux ? How can I start with Vagrant, Virtual. Box and Oracle Linux ? Demo 8 References - Q&A 1 2 3 4 5 6 Copyright © 2017, Oracle and/or its affiliates. All rights reserved. 33

References: Oracle VM Virtual. Box • Oracle VM Virtual. Box Enterprise Website – http:

References: Oracle VM Virtual. Box • Oracle VM Virtual. Box Enterprise Website – http: //www. oracle. com/technetwork/server-storage/virtualbox/downloads/index. html • Oracle VM Virtual. Box Community – https: //www. virtualbox. org • Oracle VM Virtual. Box Documentation – https: //www. virtualbox. org/wiki/Documentation • Oracle Virtualization Blog – https: //blogs. oracle. com/virtualization • Simon Coter’s Blog – https: //blogs. oracle. com/scoter Copyright © 2017, Oracle and/or its affiliates. All rights reserved. 34

References: Oracle Linux • Oracle Linux – https: //www. oracle. com/linux/index. html • Oracle

References: Oracle Linux • Oracle Linux – https: //www. oracle. com/linux/index. html • Oracle Linux Community Forum – https: //community. oracle. com/community/server_&_storage_systems/linux • Oracle Linux Blog – https: //blogs. oracle. com/linux/ • Oracle Linux Docker documentation – https: //docs. oracle. com/cd/E 52668_01/E 75728/html/section_c 4 f_lvr_1 q. html Copyright © 2017, Oracle and/or its affiliates. All rights reserved. 35

References: Vagrant • Vagrant Official Website – https: //www. vagrantup. com • Vagrant Documentation

References: Vagrant • Vagrant Official Website – https: //www. vagrantup. com • Vagrant Documentation – https: //www. vagrantup. com/docs/ • Vagrant Boxes: Catalog by Hashicorp – https: //atlas. hashicorp. com/boxes/search • Vagrant Boxes: Further Catalogs – https: //yum. oracle. com/boxes – https: //github. com/oracle/vagrant-boxes • Convert existing images to a Vagrant Box – Packer by Hashicorp – https: //www. packer. io/intro/getting-started/vagrant. html Copyright © 2017, Oracle and/or its affiliates. All rights reserved. 36

Q&A Copyright © 2017, Oracle and/or its affiliates. All rights reserved. 37

Q&A Copyright © 2017, Oracle and/or its affiliates. All rights reserved. 37

Copyright © 2017, Oracle and/or its affiliates. All rights reserved. 38

Copyright © 2017, Oracle and/or its affiliates. All rights reserved. 38