SlideShare una empresa de Scribd logo
1 de 50
Descargar para leer sin conexión
Marek Goldmann
Agenda
   • whoami
   • Some background and terminology
   • BoxGrinder
     • Appliance definition files
     • Architecture overview
       • Build process
       • Writing a plugin
   • Small demo
FUDCon Tempe 2011
Who’s Marek?

     •
     •   JBoss Developer
         •   Cloud-related projects: lead of

     •   Part of
     •   Electronic music lover


FUDCon Tempe 2011
Some terminology




FUDCon Tempe 2011
Appliance is a preconfigured
    disk image (virtual machine) with
    operating system and all required
      applications to do specific job



FUDCon Tempe 2011
Appliance examples with
                tasks

   • Database
     • Storing data
   • Front-end
     • Load balancing
   • Back-end
     • Actual servers


FUDCon Tempe 2011
Bake vs. Fry

      Bake: Produce a complete virtual
      machine offline, before first use.

      Fry: Produce a complete virtual
      machine by booting a basic VM and
      then applying configuration.


FUDCon Tempe 2011
Bake!


      We think baking is The Right Way,
      especially for developers simply
      looking for reliable platforms.




FUDCon Tempe 2011
Bake, then fry


           If you bake an image you can
           fry it then later too! Baked
           image can be your start
           point.



FUDCon Tempe 2011
is a family of tools
          to grind out appliances for
               various platforms



FUDCon Tempe 2011
FUDCon Tempe 2011
Current status

                          stable




                         development




                         planning



FUDCon Tempe 2011
Repo                Repo

                                    Repo


                                                       EC2

              Appliance
                                  BoxGrinder          VMware
              Definition

                                                       KVM




FUDCon Tempe 2011
Closer look at appliance
                 definition file




FUDCon Tempe 2011
Appliance definition, huh?


   • Plain text file – YAML format
   • Very easy to understand, modify
   • Inheritance (mixins)



FUDCon Tempe 2011
Appliance example
      name: back-end
      version: 1
      release: 1
      summary: back-end appliance with JBoss AS 6
      hardware:
        memory: 512
        partitions:
          "/":
            size: 2
      appliances:
        - fedora-base
      packages:
        - jboss-as6
        - jboss-as6-cloud-profiles
        - java-1.6.0-openjdk
      ...


FUDCon Tempe 2011
General information
                    should match the filename: back-end.appl

      name: back-end
      version: 1
      release: 1
      summary: back-end appliance with
      JBoss AS 6




FUDCon Tempe 2011
Hardware

      hardware:                512MB
        memory: 512
        partitions:            2GB
          "/":
            size: 2




FUDCon Tempe 2011
Appliance Mix-ins

                    Mixing in fedora-base.appl


     appliances:
       - fedora-base




FUDCon Tempe 2011
back-end.appl
      name: back-end
      version: 1
      release: 1
      summary: back-end appliance with JBoss AS 6
      hardware:
        memory: 512
        partitions:
          "/":
            size: 2
      appliances:
        - fedora-base
      packages:
        - jboss-as6
        - jboss-as6-cloud-profiles
        - java-1.6.0-openjdk
      ...


FUDCon Tempe 2011
fedora-base.appl
     name: fedora-base
     summary: Basic Fedora OS
     os:
       name: fedora
       version: 14
     hardware:
       memory: 256
       partitions:
         "/":
           size: 1
     packages:
       - @core
       - openssh-server
       - openssh-clients
       - wget


FUDCon Tempe 2011
Appliance Mix-ins
   back-end.appl                fedora-base.appl
                    overrides

   hardware:                    hardware:
     memory: 512                  memory: 256
     partitions:                  partitions:
       "/":                         "/":
         size: 2                      size: 1



FUDCon Tempe 2011
Appliance content

      packages:
        - jboss-as6
        - jboss-as6-cloud-profiles
        - java-1.6.0-openjdk




FUDCon Tempe 2011
Appliance content

      packages:
        - jboss-as6
        - jboss-as6-cloud-profiles
        - java-1.6.0-openjdk


                      Plus everything from
                      fedora-base.appl

FUDCon Tempe 2011
There is a lot more!
   • Additional sections
     • repos
       • ephemeral repos
     • post
       • What should be done after you build you
         appliance
       • Different commands for different platform
       • Using libguestfs
   • Learn more!
                     http://community.jboss.org/wiki/
FUDCon Tempe 2011    BoxGrinderBuildApplianceDefinitionFile
BoxGrinder Build architecture




FUDCon Tempe 2011
Plugins
                                                                SFTP



   Simple      Build           Convert    EC2       Deliver
                       RAW                                    CloudFront
  Definition                             VMware




                                                                 AMI


     Operating system        Platform             Delivery




FUDCon Tempe 2011
Plugins
                                                                SFTP



   Simple      Build           Convert    EC2       Deliver
                       RAW                                    CloudFront
  Definition                             VMware




                                                                 AMI


     Operating system        Platform             Delivery



 Write your own plugins, it’s easy!
 http://community.jboss.org/wiki/BoxGrinderBuildHowToWriteAPlugin

FUDCon Tempe 2011
Plugin skeleton

    require 'boxgrinder-build/plugins/base-plugin'

    class YourPlugin < BoxGrinder::BasePlugin
      def execute
        # PLACE YOUR CODE HERE
      end
    end




FUDCon Tempe 2011
Plugin registration

    require 'boxgrinder-build/managers/plugin-manager'
    require 'xyz-your-plugin/your-plugin'

    plugin :class => YourPlugin,
           :type => :platform,
           :name => :mycloud,
           :full_name => "MyCloud"




FUDCon Tempe 2011
How to install BoxGrinder Build




FUDCon Tempe 2011
FUDCon Tempe 2011
BoxGrinder Build installation

    1.Install BoxGrinder Build



       yum install rubygem-boxgrinder-build




FUDCon Tempe 2011
BoxGrinder Build installation
    2.Install plugins you need
      yum install rubygem-boxgrinder-build-fedora-os-plugin
      yum install rubygem-boxgrinder-build-centos-os-plugin
      yum install rubygem-boxgrinder-build-rhel-os-plugin

      yum install rubygem-boxgrinder-build-ec2-platform-plugin
      yum install rubygem-boxgrinder-build-vmware-platform-plugin
      yum install rubygem-boxgrinder-build-virtualbox-platform-plugin


      yum install rubygem-boxgrinder-build-s3-delivery-plugin
      yum install rubygem-boxgrinder-build-local-delivery-plugin
      yum install rubygem-boxgrinder-build-sftp-delivery-plugin




FUDCon Tempe 2011
Meta appliance
   • A preconfigured appliance to build other appliances
     using BoxGrinder

   • Easy to jump in
     • Available for different platforms: Xen, KVM, EC2,
       VMware
   • Best way to build EC2 appliances

   • http://www.jboss.org/boxgrinder/downloads/build/meta-
     appliance.html

FUDCon Tempe 2011
Demo: build a simple
                  appliance




FUDCon Tempe 2011
convert and deliver
              Demo: build a simple
                  appliance




FUDCon Tempe 2011
Step 1: create base image
                                    Plugins
                                                                    SFTP



       Simple         Build          Convert    EC2     Deliver
                              RAW                                 CloudFront
      Definition                               VMware




                                                                     AMI




                   boxgrinder build f14-jeos.appl



FUDCon Tempe 2011
Step 2: convert it to
                      VMware type
                                  Plugins
                                                                  SFTP



       Simple       Build          Convert    EC2     Deliver
                            RAW                                 CloudFront
      Definition                             VMware




                                                                   AMI




   boxgrinder build f14-jeos.appl -p vmware
                                  -p ec2
                                  ...
FUDCon Tempe 2011
Step 3: deliver it to a SFTP
              server
                                Plugins
                                                                SFTP



      Simple      Build          Convert    EC2     Deliver
                          RAW                                 CloudFront
     Definition                            VMware




                                                                 AMI




boxgrinder build f14-jeos.appl -p vmware -d sftp
                                         -d ebs
                                         -d s3
 FUDCon Tempe 2011                       ...
Of course you can run the
          command just once with
                same result!

boxgrinder build back-end.appl -p vmware -d sftp




 FUDCon Tempe 2011
What’s hot?




FUDCon Tempe 2011
BoxGrinder Build features


   • Supported OSes: Fedora, CentOS, RHEL
   • Supported platforms: EC2 (S3-based and EBS-
     based too!), KVM, VMware, VirtualBox
   • Many delivery options: local, SFTP, S3 or
     CloudFront as tarred image, AMI



FUDCon Tempe 2011
BoxGrinder Build features


   • Cross-arch builds: producing i386 images on
     x86_64 hosts
   • Caching downloaded resources (RPM’s)
   • Pretty fast – from .appl to registered AMI: 15
     minutes (on EC2, using meta-appliance)



FUDCon Tempe 2011
Notes


   • If you’re building AMI’s – do it on EC2 – this
     will safe your time (uploading to S3 from your
     local machine isn’t fun...)
   • Building EBS-based AMI’s requires to run
     BoxGrinder on EC2


FUDCon Tempe 2011
Questions?
http://github.com/boxgrinder/ # Code
http://jboss.org/boxgrinder/ # Home page
http://cloudpress.org/        # Blog


#boxgrinder                  # IRC


                        @boxgrinder
                        @marekgoldmann
Thanks!

Más contenido relacionado

La actualidad más candente

WebSphere Application Server Liberty Profile and Docker
WebSphere Application Server Liberty Profile and DockerWebSphere Application Server Liberty Profile and Docker
WebSphere Application Server Liberty Profile and DockerDavid Currie
 
vSphere 5 - Image Builder and Auto Deploy
vSphere 5 - Image Builder and Auto DeployvSphere 5 - Image Builder and Auto Deploy
vSphere 5 - Image Builder and Auto DeployEric Sloof
 
Managing Change
Managing ChangeManaging Change
Managing ChangeMirko Jahn
 
JBoss started guide
JBoss started guideJBoss started guide
JBoss started guidefranarayah
 
VMware PEX Boot Camp - VMware View on NetApp: Technical Integration to Drive ...
VMware PEX Boot Camp - VMware View on NetApp: Technical Integration to Drive ...VMware PEX Boot Camp - VMware View on NetApp: Technical Integration to Drive ...
VMware PEX Boot Camp - VMware View on NetApp: Technical Integration to Drive ...NetApp
 
JBoss EAP / WildFly, State of the Union
JBoss EAP / WildFly, State of the UnionJBoss EAP / WildFly, State of the Union
JBoss EAP / WildFly, State of the UnionDimitris Andreadis
 
WebSphere App Server vs JBoss vs WebLogic vs Tomcat
WebSphere App Server vs JBoss vs WebLogic vs TomcatWebSphere App Server vs JBoss vs WebLogic vs Tomcat
WebSphere App Server vs JBoss vs WebLogic vs TomcatWASdev Community
 
XenServer 5.5 - Czy można zaoszczędzić na wirtualizacji serwerów? Darmowy Xen...
XenServer 5.5 - Czy można zaoszczędzić na wirtualizacji serwerów? Darmowy Xen...XenServer 5.5 - Czy można zaoszczędzić na wirtualizacji serwerów? Darmowy Xen...
XenServer 5.5 - Czy można zaoszczędzić na wirtualizacji serwerów? Darmowy Xen...Peter Ocasek
 
Faq websphere performance
Faq websphere performanceFaq websphere performance
Faq websphere performancebudakia
 
VM201 - IdoSphere
VM201 - IdoSphereVM201 - IdoSphere
VM201 - IdoSphereCarl Tyler
 
Installing ibm tivoli directory server v6.0 (web sphere partner gateway v6.1 ...
Installing ibm tivoli directory server v6.0 (web sphere partner gateway v6.1 ...Installing ibm tivoli directory server v6.0 (web sphere partner gateway v6.1 ...
Installing ibm tivoli directory server v6.0 (web sphere partner gateway v6.1 ...Banking at Ho Chi Minh city
 
IBM PowerVM Virtualization Technology on IBM POWER7 Systems
IBM PowerVM Virtualization Technology on IBM POWER7 SystemsIBM PowerVM Virtualization Technology on IBM POWER7 Systems
IBM PowerVM Virtualization Technology on IBM POWER7 SystemsIBM India Smarter Computing
 
Implementación de tfs 2010 en entornos complejos (cómo y por qué) v03
Implementación de tfs 2010 en entornos complejos (cómo y por qué) v03Implementación de tfs 2010 en entornos complejos (cómo y por qué) v03
Implementación de tfs 2010 en entornos complejos (cómo y por qué) v03Diego Ferreyra
 
„Wielka dwójka”, czyli jak działa Citrix XenApp na Citrix XenServer u dużych ...
„Wielka dwójka”, czyli jak działa Citrix XenApp na Citrix XenServer u dużych ...„Wielka dwójka”, czyli jak działa Citrix XenApp na Citrix XenServer u dużych ...
„Wielka dwójka”, czyli jak działa Citrix XenApp na Citrix XenServer u dużych ...Peter Ocasek
 
Amazon EC2 in der Praxis
Amazon EC2 in der PraxisAmazon EC2 in der Praxis
Amazon EC2 in der PraxisJonathan Weiss
 
Arno installation and validation walk through
Arno installation and validation walk throughArno installation and validation walk through
Arno installation and validation walk throughWenjing Chu
 
Windows Server "10": что нового в виртуализации
Windows Server "10": что нового в виртуализацииWindows Server "10": что нового в виртуализации
Windows Server "10": что нового в виртуализацииВиталий Стародубцев
 

La actualidad más candente (20)

Xrm xensummit
Xrm xensummitXrm xensummit
Xrm xensummit
 
Xen Project: Windows PV Drivers
Xen Project: Windows PV DriversXen Project: Windows PV Drivers
Xen Project: Windows PV Drivers
 
WebSphere Application Server Liberty Profile and Docker
WebSphere Application Server Liberty Profile and DockerWebSphere Application Server Liberty Profile and Docker
WebSphere Application Server Liberty Profile and Docker
 
Jboss Tutorial Basics
Jboss Tutorial BasicsJboss Tutorial Basics
Jboss Tutorial Basics
 
vSphere 5 - Image Builder and Auto Deploy
vSphere 5 - Image Builder and Auto DeployvSphere 5 - Image Builder and Auto Deploy
vSphere 5 - Image Builder and Auto Deploy
 
Managing Change
Managing ChangeManaging Change
Managing Change
 
JBoss started guide
JBoss started guideJBoss started guide
JBoss started guide
 
VMware PEX Boot Camp - VMware View on NetApp: Technical Integration to Drive ...
VMware PEX Boot Camp - VMware View on NetApp: Technical Integration to Drive ...VMware PEX Boot Camp - VMware View on NetApp: Technical Integration to Drive ...
VMware PEX Boot Camp - VMware View on NetApp: Technical Integration to Drive ...
 
JBoss EAP / WildFly, State of the Union
JBoss EAP / WildFly, State of the UnionJBoss EAP / WildFly, State of the Union
JBoss EAP / WildFly, State of the Union
 
WebSphere App Server vs JBoss vs WebLogic vs Tomcat
WebSphere App Server vs JBoss vs WebLogic vs TomcatWebSphere App Server vs JBoss vs WebLogic vs Tomcat
WebSphere App Server vs JBoss vs WebLogic vs Tomcat
 
XenServer 5.5 - Czy można zaoszczędzić na wirtualizacji serwerów? Darmowy Xen...
XenServer 5.5 - Czy można zaoszczędzić na wirtualizacji serwerów? Darmowy Xen...XenServer 5.5 - Czy można zaoszczędzić na wirtualizacji serwerów? Darmowy Xen...
XenServer 5.5 - Czy można zaoszczędzić na wirtualizacji serwerów? Darmowy Xen...
 
Faq websphere performance
Faq websphere performanceFaq websphere performance
Faq websphere performance
 
VM201 - IdoSphere
VM201 - IdoSphereVM201 - IdoSphere
VM201 - IdoSphere
 
Installing ibm tivoli directory server v6.0 (web sphere partner gateway v6.1 ...
Installing ibm tivoli directory server v6.0 (web sphere partner gateway v6.1 ...Installing ibm tivoli directory server v6.0 (web sphere partner gateway v6.1 ...
Installing ibm tivoli directory server v6.0 (web sphere partner gateway v6.1 ...
 
IBM PowerVM Virtualization Technology on IBM POWER7 Systems
IBM PowerVM Virtualization Technology on IBM POWER7 SystemsIBM PowerVM Virtualization Technology on IBM POWER7 Systems
IBM PowerVM Virtualization Technology on IBM POWER7 Systems
 
Implementación de tfs 2010 en entornos complejos (cómo y por qué) v03
Implementación de tfs 2010 en entornos complejos (cómo y por qué) v03Implementación de tfs 2010 en entornos complejos (cómo y por qué) v03
Implementación de tfs 2010 en entornos complejos (cómo y por qué) v03
 
„Wielka dwójka”, czyli jak działa Citrix XenApp na Citrix XenServer u dużych ...
„Wielka dwójka”, czyli jak działa Citrix XenApp na Citrix XenServer u dużych ...„Wielka dwójka”, czyli jak działa Citrix XenApp na Citrix XenServer u dużych ...
„Wielka dwójka”, czyli jak działa Citrix XenApp na Citrix XenServer u dużych ...
 
Amazon EC2 in der Praxis
Amazon EC2 in der PraxisAmazon EC2 in der Praxis
Amazon EC2 in der Praxis
 
Arno installation and validation walk through
Arno installation and validation walk throughArno installation and validation walk through
Arno installation and validation walk through
 
Windows Server "10": что нового в виртуализации
Windows Server "10": что нового в виртуализацииWindows Server "10": что нового в виртуализации
Windows Server "10": что нового в виртуализации
 

Destacado

TorqueBox - moc Javy, piękno Rubiego
TorqueBox - moc Javy, piękno RubiegoTorqueBox - moc Javy, piękno Rubiego
TorqueBox - moc Javy, piękno Rubiegomarekgoldmann
 
JUDCon 2010 Boston : TorqueBox
JUDCon 2010 Boston : TorqueBoxJUDCon 2010 Boston : TorqueBox
JUDCon 2010 Boston : TorqueBoxmarekgoldmann
 
TorqueBox - Ruby na sterydach
TorqueBox - Ruby na sterydachTorqueBox - Ruby na sterydach
TorqueBox - Ruby na sterydachmarekgoldmann
 
JUDCon 2010 Boston : BoxGrinder
JUDCon 2010 Boston : BoxGrinderJUDCon 2010 Boston : BoxGrinder
JUDCon 2010 Boston : BoxGrindermarekgoldmann
 
Java Night 2010 SteamCannon
Java Night 2010 SteamCannonJava Night 2010 SteamCannon
Java Night 2010 SteamCannonmarekgoldmann
 
Silesia JUG : Java Message Service
Silesia JUG : Java Message ServiceSilesia JUG : Java Message Service
Silesia JUG : Java Message Servicemarekgoldmann
 
13 14 SAP policy - revised for spring 2014 - final - 111413
13 14 SAP policy - revised for spring 2014 - final  - 11141313 14 SAP policy - revised for spring 2014 - final  - 111413
13 14 SAP policy - revised for spring 2014 - final - 111413Houston Community College
 
Tutorial caesars II
Tutorial caesars IITutorial caesars II
Tutorial caesars IImanuedlf
 

Destacado (8)

TorqueBox - moc Javy, piękno Rubiego
TorqueBox - moc Javy, piękno RubiegoTorqueBox - moc Javy, piękno Rubiego
TorqueBox - moc Javy, piękno Rubiego
 
JUDCon 2010 Boston : TorqueBox
JUDCon 2010 Boston : TorqueBoxJUDCon 2010 Boston : TorqueBox
JUDCon 2010 Boston : TorqueBox
 
TorqueBox - Ruby na sterydach
TorqueBox - Ruby na sterydachTorqueBox - Ruby na sterydach
TorqueBox - Ruby na sterydach
 
JUDCon 2010 Boston : BoxGrinder
JUDCon 2010 Boston : BoxGrinderJUDCon 2010 Boston : BoxGrinder
JUDCon 2010 Boston : BoxGrinder
 
Java Night 2010 SteamCannon
Java Night 2010 SteamCannonJava Night 2010 SteamCannon
Java Night 2010 SteamCannon
 
Silesia JUG : Java Message Service
Silesia JUG : Java Message ServiceSilesia JUG : Java Message Service
Silesia JUG : Java Message Service
 
13 14 SAP policy - revised for spring 2014 - final - 111413
13 14 SAP policy - revised for spring 2014 - final  - 11141313 14 SAP policy - revised for spring 2014 - final  - 111413
13 14 SAP policy - revised for spring 2014 - final - 111413
 
Tutorial caesars II
Tutorial caesars IITutorial caesars II
Tutorial caesars II
 

Similar a BoxGrinder – FUDCon 2011 Tempe

Setting up and open fidy dev environment
Setting up and open fidy dev environmentSetting up and open fidy dev environment
Setting up and open fidy dev environmentianibbo
 
Puppetconf2011 small
Puppetconf2011 smallPuppetconf2011 small
Puppetconf2011 smallPuppet
 
The Switch as a Server - PuppetConf 2014
The Switch as a Server - PuppetConf 2014The Switch as a Server - PuppetConf 2014
The Switch as a Server - PuppetConf 2014Puppet
 
JBoss Developer Webinar: Cloud: BoxGrinder & SteamCannon
JBoss Developer Webinar: Cloud: BoxGrinder & SteamCannonJBoss Developer Webinar: Cloud: BoxGrinder & SteamCannon
JBoss Developer Webinar: Cloud: BoxGrinder & SteamCannonbobmcwhirter
 
Configuration Management and Transforming Legacy Applications in the Enterpri...
Configuration Management and Transforming Legacy Applications in the Enterpri...Configuration Management and Transforming Legacy Applications in the Enterpri...
Configuration Management and Transforming Legacy Applications in the Enterpri...Docker, Inc.
 
IPS: Image Packaging System
IPS: Image Packaging SystemIPS: Image Packaging System
IPS: Image Packaging SystemEric Sproul
 
Hacom%20pf sense%20quick start%20guide
Hacom%20pf sense%20quick start%20guideHacom%20pf sense%20quick start%20guide
Hacom%20pf sense%20quick start%20guideHARRY CHAN PUTRA
 
Dell openstack boston meetup dell crowbar and open stack
Dell openstack boston meetup   dell crowbar and open stackDell openstack boston meetup   dell crowbar and open stack
Dell openstack boston meetup dell crowbar and open stackDellCloudEdge
 
Cloud Foundry V2 | Intermediate Deep Dive
Cloud Foundry V2 | Intermediate Deep DiveCloud Foundry V2 | Intermediate Deep Dive
Cloud Foundry V2 | Intermediate Deep DiveKazuto Kusama
 
Dev to Delivery with Puppet - PuppetConf 2014
Dev to Delivery with Puppet - PuppetConf 2014Dev to Delivery with Puppet - PuppetConf 2014
Dev to Delivery with Puppet - PuppetConf 2014Puppet
 
Cloud-powered Continuous Integration and Deployment architectures - Jinesh Varia
Cloud-powered Continuous Integration and Deployment architectures - Jinesh VariaCloud-powered Continuous Integration and Deployment architectures - Jinesh Varia
Cloud-powered Continuous Integration and Deployment architectures - Jinesh VariaAmazon Web Services
 
A Fabric/Puppet Build/Deploy System
A Fabric/Puppet Build/Deploy SystemA Fabric/Puppet Build/Deploy System
A Fabric/Puppet Build/Deploy Systemadrian_nye
 

Similar a BoxGrinder – FUDCon 2011 Tempe (20)

Setting up and open fidy dev environment
Setting up and open fidy dev environmentSetting up and open fidy dev environment
Setting up and open fidy dev environment
 
Puppetconf2011 small
Puppetconf2011 smallPuppetconf2011 small
Puppetconf2011 small
 
The Switch as a Server - PuppetConf 2014
The Switch as a Server - PuppetConf 2014The Switch as a Server - PuppetConf 2014
The Switch as a Server - PuppetConf 2014
 
JBoss Developer Webinar: Cloud: BoxGrinder & SteamCannon
JBoss Developer Webinar: Cloud: BoxGrinder & SteamCannonJBoss Developer Webinar: Cloud: BoxGrinder & SteamCannon
JBoss Developer Webinar: Cloud: BoxGrinder & SteamCannon
 
Configuration Management and Transforming Legacy Applications in the Enterpri...
Configuration Management and Transforming Legacy Applications in the Enterpri...Configuration Management and Transforming Legacy Applications in the Enterpri...
Configuration Management and Transforming Legacy Applications in the Enterpri...
 
IPS: Image Packaging System
IPS: Image Packaging SystemIPS: Image Packaging System
IPS: Image Packaging System
 
Hacom%20pf sense%20quick start%20guide
Hacom%20pf sense%20quick start%20guideHacom%20pf sense%20quick start%20guide
Hacom%20pf sense%20quick start%20guide
 
Terraform
TerraformTerraform
Terraform
 
Dell openstack boston meetup dell crowbar and open stack
Dell openstack boston meetup   dell crowbar and open stackDell openstack boston meetup   dell crowbar and open stack
Dell openstack boston meetup dell crowbar and open stack
 
Masters of WAR
Masters of WARMasters of WAR
Masters of WAR
 
CPAN For Private Code
CPAN For Private CodeCPAN For Private Code
CPAN For Private Code
 
Cloud RPI4 tomcat ARM64
Cloud RPI4 tomcat ARM64Cloud RPI4 tomcat ARM64
Cloud RPI4 tomcat ARM64
 
Cloud Foundry V2 | Intermediate Deep Dive
Cloud Foundry V2 | Intermediate Deep DiveCloud Foundry V2 | Intermediate Deep Dive
Cloud Foundry V2 | Intermediate Deep Dive
 
Dev to Delivery with Puppet - PuppetConf 2014
Dev to Delivery with Puppet - PuppetConf 2014Dev to Delivery with Puppet - PuppetConf 2014
Dev to Delivery with Puppet - PuppetConf 2014
 
Dev stacklabguide
Dev stacklabguideDev stacklabguide
Dev stacklabguide
 
Devstack lab guide
Devstack lab guideDevstack lab guide
Devstack lab guide
 
Cloud-powered Continuous Integration and Deployment architectures - Jinesh Varia
Cloud-powered Continuous Integration and Deployment architectures - Jinesh VariaCloud-powered Continuous Integration and Deployment architectures - Jinesh Varia
Cloud-powered Continuous Integration and Deployment architectures - Jinesh Varia
 
Flex User Group breton
Flex User Group bretonFlex User Group breton
Flex User Group breton
 
MongoSV 2011
MongoSV 2011MongoSV 2011
MongoSV 2011
 
A Fabric/Puppet Build/Deploy System
A Fabric/Puppet Build/Deploy SystemA Fabric/Puppet Build/Deploy System
A Fabric/Puppet Build/Deploy System
 

Último

Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Paola De la Torre
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Google AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAGGoogle AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAGSujit Pal
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...HostedbyConfluent
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 

Último (20)

Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Google AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAGGoogle AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAG
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 

BoxGrinder – FUDCon 2011 Tempe

  • 1.
  • 3. Agenda • whoami • Some background and terminology • BoxGrinder • Appliance definition files • Architecture overview • Build process • Writing a plugin • Small demo FUDCon Tempe 2011
  • 4. Who’s Marek? • • JBoss Developer • Cloud-related projects: lead of • Part of • Electronic music lover FUDCon Tempe 2011
  • 6. Appliance is a preconfigured disk image (virtual machine) with operating system and all required applications to do specific job FUDCon Tempe 2011
  • 7. Appliance examples with tasks • Database • Storing data • Front-end • Load balancing • Back-end • Actual servers FUDCon Tempe 2011
  • 8. Bake vs. Fry Bake: Produce a complete virtual machine offline, before first use. Fry: Produce a complete virtual machine by booting a basic VM and then applying configuration. FUDCon Tempe 2011
  • 9. Bake! We think baking is The Right Way, especially for developers simply looking for reliable platforms. FUDCon Tempe 2011
  • 10. Bake, then fry If you bake an image you can fry it then later too! Baked image can be your start point. FUDCon Tempe 2011
  • 11.
  • 12. is a family of tools to grind out appliances for various platforms FUDCon Tempe 2011
  • 14. Current status stable development planning FUDCon Tempe 2011
  • 15. Repo Repo Repo EC2 Appliance BoxGrinder VMware Definition KVM FUDCon Tempe 2011
  • 16. Closer look at appliance definition file FUDCon Tempe 2011
  • 17. Appliance definition, huh? • Plain text file – YAML format • Very easy to understand, modify • Inheritance (mixins) FUDCon Tempe 2011
  • 18. Appliance example name: back-end version: 1 release: 1 summary: back-end appliance with JBoss AS 6 hardware: memory: 512 partitions: "/": size: 2 appliances: - fedora-base packages: - jboss-as6 - jboss-as6-cloud-profiles - java-1.6.0-openjdk ... FUDCon Tempe 2011
  • 19. General information should match the filename: back-end.appl name: back-end version: 1 release: 1 summary: back-end appliance with JBoss AS 6 FUDCon Tempe 2011
  • 20. Hardware hardware: 512MB memory: 512 partitions: 2GB "/": size: 2 FUDCon Tempe 2011
  • 21. Appliance Mix-ins Mixing in fedora-base.appl appliances: - fedora-base FUDCon Tempe 2011
  • 22. back-end.appl name: back-end version: 1 release: 1 summary: back-end appliance with JBoss AS 6 hardware: memory: 512 partitions: "/": size: 2 appliances: - fedora-base packages: - jboss-as6 - jboss-as6-cloud-profiles - java-1.6.0-openjdk ... FUDCon Tempe 2011
  • 23. fedora-base.appl name: fedora-base summary: Basic Fedora OS os: name: fedora version: 14 hardware: memory: 256 partitions: "/": size: 1 packages: - @core - openssh-server - openssh-clients - wget FUDCon Tempe 2011
  • 24. Appliance Mix-ins back-end.appl fedora-base.appl overrides hardware: hardware: memory: 512 memory: 256 partitions: partitions: "/": "/": size: 2 size: 1 FUDCon Tempe 2011
  • 25. Appliance content packages: - jboss-as6 - jboss-as6-cloud-profiles - java-1.6.0-openjdk FUDCon Tempe 2011
  • 26. Appliance content packages: - jboss-as6 - jboss-as6-cloud-profiles - java-1.6.0-openjdk Plus everything from fedora-base.appl FUDCon Tempe 2011
  • 27. There is a lot more! • Additional sections • repos • ephemeral repos • post • What should be done after you build you appliance • Different commands for different platform • Using libguestfs • Learn more! http://community.jboss.org/wiki/ FUDCon Tempe 2011 BoxGrinderBuildApplianceDefinitionFile
  • 28.
  • 30. Plugins SFTP Simple Build Convert EC2 Deliver RAW CloudFront Definition VMware AMI Operating system Platform Delivery FUDCon Tempe 2011
  • 31. Plugins SFTP Simple Build Convert EC2 Deliver RAW CloudFront Definition VMware AMI Operating system Platform Delivery Write your own plugins, it’s easy! http://community.jboss.org/wiki/BoxGrinderBuildHowToWriteAPlugin FUDCon Tempe 2011
  • 32. Plugin skeleton require 'boxgrinder-build/plugins/base-plugin' class YourPlugin < BoxGrinder::BasePlugin def execute # PLACE YOUR CODE HERE end end FUDCon Tempe 2011
  • 33. Plugin registration require 'boxgrinder-build/managers/plugin-manager' require 'xyz-your-plugin/your-plugin' plugin :class => YourPlugin, :type => :platform, :name => :mycloud, :full_name => "MyCloud" FUDCon Tempe 2011
  • 34. How to install BoxGrinder Build FUDCon Tempe 2011
  • 36. BoxGrinder Build installation 1.Install BoxGrinder Build yum install rubygem-boxgrinder-build FUDCon Tempe 2011
  • 37. BoxGrinder Build installation 2.Install plugins you need yum install rubygem-boxgrinder-build-fedora-os-plugin yum install rubygem-boxgrinder-build-centos-os-plugin yum install rubygem-boxgrinder-build-rhel-os-plugin yum install rubygem-boxgrinder-build-ec2-platform-plugin yum install rubygem-boxgrinder-build-vmware-platform-plugin yum install rubygem-boxgrinder-build-virtualbox-platform-plugin yum install rubygem-boxgrinder-build-s3-delivery-plugin yum install rubygem-boxgrinder-build-local-delivery-plugin yum install rubygem-boxgrinder-build-sftp-delivery-plugin FUDCon Tempe 2011
  • 38. Meta appliance • A preconfigured appliance to build other appliances using BoxGrinder • Easy to jump in • Available for different platforms: Xen, KVM, EC2, VMware • Best way to build EC2 appliances • http://www.jboss.org/boxgrinder/downloads/build/meta- appliance.html FUDCon Tempe 2011
  • 39. Demo: build a simple appliance FUDCon Tempe 2011
  • 40. convert and deliver Demo: build a simple appliance FUDCon Tempe 2011
  • 41. Step 1: create base image Plugins SFTP Simple Build Convert EC2 Deliver RAW CloudFront Definition VMware AMI boxgrinder build f14-jeos.appl FUDCon Tempe 2011
  • 42. Step 2: convert it to VMware type Plugins SFTP Simple Build Convert EC2 Deliver RAW CloudFront Definition VMware AMI boxgrinder build f14-jeos.appl -p vmware -p ec2 ... FUDCon Tempe 2011
  • 43. Step 3: deliver it to a SFTP server Plugins SFTP Simple Build Convert EC2 Deliver RAW CloudFront Definition VMware AMI boxgrinder build f14-jeos.appl -p vmware -d sftp -d ebs -d s3 FUDCon Tempe 2011 ...
  • 44. Of course you can run the command just once with same result! boxgrinder build back-end.appl -p vmware -d sftp FUDCon Tempe 2011
  • 46. BoxGrinder Build features • Supported OSes: Fedora, CentOS, RHEL • Supported platforms: EC2 (S3-based and EBS- based too!), KVM, VMware, VirtualBox • Many delivery options: local, SFTP, S3 or CloudFront as tarred image, AMI FUDCon Tempe 2011
  • 47. BoxGrinder Build features • Cross-arch builds: producing i386 images on x86_64 hosts • Caching downloaded resources (RPM’s) • Pretty fast – from .appl to registered AMI: 15 minutes (on EC2, using meta-appliance) FUDCon Tempe 2011
  • 48. Notes • If you’re building AMI’s – do it on EC2 – this will safe your time (uploading to S3 from your local machine isn’t fun...) • Building EBS-based AMI’s requires to run BoxGrinder on EC2 FUDCon Tempe 2011
  • 49. Questions? http://github.com/boxgrinder/ # Code http://jboss.org/boxgrinder/ # Home page http://cloudpress.org/ # Blog #boxgrinder # IRC @boxgrinder @marekgoldmann