Giter Club home page Giter Club logo

bakery-examples's Introduction

Bakery Examples

Join the chat at https://gitter.im/cloudnative/bakery-examples

Here you will find examples illustrating how to use the Bakery from CloudNative.

Usage

  1. Login to CloudNative

  2. Go to your organization's dashboard

  3. Under the Bakery, add a new Git Repository with the following details:

    Name:  Bakery Examples
    Clone URL:  https://github.com/cloudnative/examples-ansible.git
    Website URL:  https://github.com/cloudnative/examples-ansible
    

You can now use any of the examples below when creating a build pipeline.

Examples

Hello World

This is as basic as it gets. The hello-world.yml file is an Ansible playbook that installs the Apache web server. That's it.

To use:

  1. Create a new Build Pipeline.

  2. Give it a name, and choose whatever AWS region you like.

  3. Select either an Ubuntu or Amazon Linux base AMI

  4. Select the Git Repository you added earlier, and use the following

    Path or Ansible playbook:  hello-world.yml
    
  5. Click Create Pipeline and the Bake an AMI

  6. Once the AWS resources launch, you will see Ansible installed, and the hello-world playbook executed.

That's it. You can now launch 1 or 100s of EC2 instances with your new AMI. (We don't even recommend 10s of instances for this particular example).

About the Bakery

The Bakery is a an Amazon Machine Image (AMI) factory. Whenever your code changes, the Bakery will take those changes and build a new image from it. That image can be deployed to 1 or 1000s of EC2 instances.

Why? Well that is really a matter of preference. Some (e.g. Netflix) like to build fully configured images containing their latest code, and use the same image for staging and promote it to production after testing. Others like to build an image containing just the dependencies for running their service, and get the code on boot (e.g. build an image with Ruby, Rails, and Nginx already installed and configured). You could even build an AMI containing a Docker image, so that when you launch 100 instances, they aren't all downloading the same Docker image on boot. The point is, it is a simple little factory, and how you want to use it is up to you.

About CloudNative

CloudNative is the interface between developers, operations and cloud. Our mission is to codify the best practices of running a service on Amazon Web Services. We do this by building native to AWS (i.e. no abstractions - take advantage of advanced features), staying current with changing best practices, and striking a balance between being opinionated vs flexible.

Contributing

Want to fix a typo, or make an example run on your favorite OS? Fantastic! Just fork this repository and send us a Pull Request.

License

Copyright 2014 CloudNative, Inc.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

bakery-examples's People

Contributors

gitter-badger avatar pas256 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.