Sha256: 573eb224cefb950799a0cc68dc9b2f1290d60d3a0b406595596983e45ccb4e5e

Contents?: true

Size: 1.15 KB

Versions: 41

Compression:

Stored size: 1.15 KB

Contents

---
title: New Project
---

If you already a project with an existing Dockerfile, you can use that. If you do not, kubes generates a starter Dockerfile that runs nginx. For this tutorial, we'll start with an empty folder.

    mkdir demo
    cd demo

{% include learn/repos.md %}

Let's generate a starter project:

    $ kubes init --app demo --repo $REPO
          create  Dockerfile
          create  .kubes/config.rb
          create  .kubes/config/env/dev.rb
          create  .kubes/config/env/prod.rb
          create  .kubes/resources/base/all.yaml
          create  .kubes/resources/base/deployment.yaml
          create  .kubes/resources/shared/namespace.yaml
          create  .kubes/resources/web/deployment.yaml
          create  .kubes/resources/web/deployment/dev.yaml
          create  .kubes/resources/web/deployment/prod.yaml
          create  .kubes/resources/web/service.yaml
    Initialized .kubes folder
    Updated .gitignore
    $

To learn more about the generated structure, here are the [Structure Docs]({% link _docs/intro/structure.md %}).

Let's explore some of the generated files.

{% include learn/review.md %}

Next, we'll review the resources.

Version data entries

41 entries across 41 versions & 1 rubygems

Version Path
kubes-0.8.6 docs/_docs/learn/yaml/new-project.md
kubes-0.8.5 docs/_docs/learn/yaml/new-project.md
kubes-0.8.4 docs/_docs/learn/yaml/new-project.md
kubes-0.8.3 docs/_docs/learn/yaml/new-project.md
kubes-0.8.2 docs/_docs/learn/yaml/new-project.md
kubes-0.8.1 docs/_docs/learn/yaml/new-project.md
kubes-0.8.0 docs/_docs/learn/yaml/new-project.md
kubes-0.7.10 docs/_docs/learn/yaml/new-project.md
kubes-0.7.9 docs/_docs/learn/yaml/new-project.md
kubes-0.7.8 docs/_docs/learn/yaml/new-project.md
kubes-0.7.7 docs/_docs/learn/yaml/new-project.md
kubes-0.7.6 docs/_docs/learn/yaml/new-project.md
kubes-0.7.5 docs/_docs/learn/yaml/new-project.md
kubes-0.7.4 docs/_docs/learn/yaml/new-project.md
kubes-0.7.3 docs/_docs/learn/yaml/new-project.md
kubes-0.7.2 docs/_docs/learn/yaml/new-project.md
kubes-0.7.1 docs/_docs/learn/yaml/new-project.md
kubes-0.7.0 docs/_docs/learn/yaml/new-project.md
kubes-0.6.8 docs/_docs/learn/yaml/new-project.md
kubes-0.6.7 docs/_docs/learn/yaml/new-project.md