Sha256: 705324ed829e73da140b32f3a16df8722bae3a7123ec18cc682b082700330167

Contents?: true

Size: 1.29 KB

Versions: 5

Compression:

Stored size: 1.29 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

For this tutorial, we'll use an ECR repo, though any repo will work.

Let's generate a starter project:

    $ REPO=$(aws ecr describe-repositories --repository-name demo | jq -r '.repositories[].repositoryUri')
    $ 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

5 entries across 5 versions & 1 rubygems

Version Path
kubes-0.2.6 docs/_docs/learn/yaml/new-project.md
kubes-0.2.5 docs/_docs/learn/yaml/new-project.md
kubes-0.2.4 docs/_docs/learn/yaml/new-project.md
kubes-0.2.3 docs/_docs/learn/yaml/new-project.md
kubes-0.2.2 docs/_docs/learn/yaml/new-project.md