GithubHelp home page GithubHelp logo

pulumi-devcontainer's Introduction

Pulumi Dev Container

License Pulumi Kubectl Docker Kind Helm

Pulumi Devcontainer Build Status

Open in GitHub Codespaces

This is a Github Template Repository which provides a Pulumi Devcontainer together with GitOps ready boilerplate for quickly starting new Pulumi IaC projects.

The Pulumi Devcontainer is designed with deep VS Code and Github Codespaces integration to streamline a common Pulumi IaC and Provider development environment. dependencies and prerequisites as much as possible using Dev Containers to prepare your development environment, or even just run your development directly in the browser with Github CodeSpaces. Devcontainer CodeSpaces Screenshot

Getting Started

With multiple ways to get started, it is a good idea to briefly review:

Github CodeSpaces

Open in GitHub Codespaces

Codespaces is the easiest way to get started quickly. Simply click the button above to open this repository in a new Codespace and then follow the First time setup instructions below.

Fig 1. How to open project in CodeSpaces How to open repository in CodeSpaces

First time setup

  1. Pulumi Login
pulumi login

Fig 2.b pulumi login Pulumi login Pulumi login complete

  1. Create a new stack
pulumi new
pulumi stack init

VS Code Dev Container

To use the Dev Container in VS Code, you will need to install the Remote - Containers extension, and follow the official tutorial here to begin.

Git Submodule

The pulumi Dev Container repository can be added as a submodule to an existing project to provide an easy and consistent development environment that is maintained upstream.

To add this repository as a submodule to your project, run the following commands:

git submodule add https://github.com/pulumi/devcontainer .github/devcontainer
git submodule update --init .github/devcontainer
mkdir -p .devcontainer
rsync -av .github/devcontainer/.devcontainer/* .devcontainer/

To update the devcontainer submodule in consuming repos:

git submodule update --remote --merge .github/devcontainer
rsync -av .github/devcontainer/devcontainer/* .devcontainer

After the submodule is added, you can open your project in VS Code and it will automatically detect the Dev Container configuration and prompt you to open the project in a container, or you can open the project in Github CodeSpaces.

# remove submodule
git submodule deinit -f .github/devcontainer
rm -rf .git/modules/.github/devcontainer
git rm -f .github/devcontainer
git commit -m 'Remove devcontainer submodule'

pulumi-devcontainer's People

Contributors

magledev avatar

Watchers

 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.