github.com/SupersunnySea/draft@v0.16.0/README.md (about)

     1  ![Draft Logo](./docs/img/draft-logo.png)
     2  [![Build Status](https://circleci.com/gh/Azure/draft.svg?style=svg)](https://circleci.com/gh/Azure/draft)
     3  
     4  # Draft: Streamlined Kubernetes Development
     5  Draft makes it easier for developers to build applications that run on Kubernetes by doing two main things:
     6  1. The `draft create` command gives developers the artifacts they need to build and run their applications in Kubernetes
     7  2. The `draft up` command builds the container image for an application and deploys it to Kubernetes
     8  
     9  Draft targets the "inner loop" of a developer's workflow: as they hack on code, but before code is committed to version control.
    10  
    11  ## Install the draft binary
    12  To install via homebrew, run `brew tap azure/draft && brew install draft` or download the binary via the [github releases page](https://github.com/Azure/draft/releases)
    13  
    14  _Note:_ Draft requires a running Kubernetes cluster and [Helm](https://github.com/kubernetes/helm/blob/master/docs/install.md ). If you don't already have a running Kubernetes cluster, check out the [minikube install guide](docs/install-minikube.md).
    15  
    16  ## Overview
    17  
    18  [![asciicast](https://asciinema.org/a/WGVE7JNodpBEOautl105tdc97.png)](https://asciinema.org/a/WGVE7JNodpBEOautl105tdc97)
    19  
    20  Using Draft is as simple as:
    21  
    22  1. `draft init` to set up draft (after prerequisites are installed)
    23  2. `draft create` to containerize your application based on Draft [packs](docs/reference/dep-003.md)
    24  3. `draft up` to deploy your application to a Kubernetes dev sandbox, accessible using `draft connect` over a secured tunnel.
    25  4. Use a local editor to modify the application, with changes deployed to Kubernetes in seconds.
    26  
    27  Once the developer is happy with changes made via Draft, they commit and push to version control, after which a continuous integration (CI) system takes over.  Draft builds upon [Kubernetes Helm][helm] and the [Kubernetes Chart format](https://github.com/kubernetes/helm/blob/master/docs/charts.md), making it easy to construct CI pipelines from Draft-enabled applications.
    28  
    29  [Join the conversation in Slack!](https://kubernetes.slack.com/messages/draft-users) If you don't already have a Kubernetes slack account, sign up [here](http://slack.k8s.io/).
    30  
    31  ## Installation Guides
    32  
    33  Use the [Minikube install guide][Installation Guide -- Minikube] to install and use Draft locally with Minikube. The default installation skips pushing the image, deploying directly from the local repository, which makes developer work very fast.
    34  
    35  Use the [Cloud provider install guide][Installation Guide -- Cloud] to install and use Draft to build locally but push images to a public (or private) repository and deploy into a Kubernetes cluster offered by a cloud provider such as Azure, Google, AWS, or any other provider.
    36  
    37  Remember, however, take note of the major changes in releases greater than 0.12 if you have already used Draft. It's different. No, really.
    38  
    39  ### Take Draft for a Spin
    40  
    41  Climb aboard and explore the [Getting Started Guide][Getting Started] - you'll soon be sailing!
    42  
    43  ## _NOTE: Draft is experimental and does not have a stable release yet._
    44  If you're having issues after upgrading draft, try deleting the draft home directory where all the draft configuration files live and then re-run the `draft init` command (shown below). You'll have to re-install any custom plugins and configuration after deleting `$(draft home)`
    45  Example:
    46  ```console
    47  $ draft home
    48  /Users/admin/.draft
    49  $ rm -rf $(draft home)
    50  $ draft init
    51  ```
    52  Starting with the 0.12 release, Draft moves the containment and deployment engine to your local machine. This changes quite a bit about how Draft works compared to prior releases; for details, see [the changelog](CHANGELOG.md).
    53  
    54  For previous users, this change means that you now have more control over where your container images are stored, and in the local Minikube environment you can skip pushing the images entirely, which speeds up the developer iteration speed _dramatically_. (Short version without jargon: you can build and run your app really fast.) However, when you want to push your images to an image registry service like Docker hub (or ACR, GCR, Quay.io, and so on) you must inform draft which registry to use and your cluster must have access to the secrets for that registry.
    55  
    56  We're always looks for contributions in the form of issues, pull requests, and docs changes. If you see anything that would make Draft a better experience for yourself or others, please feel free to contribute. See the contributing section below for more details!
    57  
    58  ## Contributing
    59  
    60  If you're looking to build from source or get started hacking on Draft, please see the
    61  [hacking guide][hacking] for more information.
    62  
    63  This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.
    64  
    65  ## License
    66  
    67  This software is covered under the MIT license. You can read the license [here][license].
    68  
    69  This software contains code from [Helm][], which is covered by the Apache v2.0 license.
    70  
    71  You can read third-party software licenses [here][Third-Party Licenses].
    72  
    73  
    74  [Installation Guide -- Minikube]: docs/install-minikube.md
    75  [Installation Guide -- Cloud]: docs/install-cloud.md 
    76  [Getting Started]: docs/getting-started.md
    77  [hacking]: docs/contributing/hacking.md
    78  [helm]: https://github.com/kubernetes/helm
    79  [Installing Helm]: https://github.com/kubernetes/helm/blob/master/docs/install.md
    80  [Kubernetes]: https://kubernetes.io/
    81  [license]: LICENSE
    82  [Third-Party Licenses]: NOTICE