Fully-automate development setup with Gitpod (#6431)
This commit is contained in:
parent
a1864c5c1a
commit
c8eac38286
21
.gitpod.yml
Normal file
21
.gitpod.yml
Normal file
|
@ -0,0 +1,21 @@
|
|||
image:
|
||||
file: .gitpod/Dockerfile
|
||||
|
||||
# See: https://www.gitpod.io/docs/config-start-tasks/
|
||||
tasks:
|
||||
- before: >
|
||||
mkdir -p /workspace/opt-pulumi &&
|
||||
sudo ln -s /workspace/opt-pulumi /opt/pulumi
|
||||
init: >
|
||||
make ensure &&
|
||||
make install
|
||||
command: pulumi version
|
||||
|
||||
# See: https://www.gitpod.io/docs/prebuilds/#configure-the-github-app
|
||||
github:
|
||||
prebuilds:
|
||||
master: true
|
||||
branches: true
|
||||
pullRequests: true
|
||||
pullRequestsFromForks: true
|
||||
addCheck: true
|
10
.gitpod/Dockerfile
Normal file
10
.gitpod/Dockerfile
Normal file
|
@ -0,0 +1,10 @@
|
|||
FROM gitpod/workspace-full
|
||||
USER gitpod
|
||||
|
||||
ENV PATH="/opt/pulumi:/opt/pulumi/bin:$PATH"
|
||||
|
||||
# Install .NET Core 3.1 SDK binaries on Ubuntu 20.04
|
||||
# Source: https://dev.to/carlos487/installing-dotnet-core-in-ubuntu-20-04-6jh
|
||||
RUN mkdir -p /home/gitpod/dotnet && curl -fsSL https://download.visualstudio.microsoft.com/download/pr/f65a8eb0-4537-4e69-8ff3-1a80a80d9341/cc0ca9ff8b9634f3d9780ec5915c1c66/dotnet-sdk-3.1.201-linux-x64.tar.gz | tar xz -C /home/gitpod/dotnet
|
||||
ENV DOTNET_ROOT=/home/gitpod/dotnet
|
||||
ENV PATH=$PATH:/home/gitpod/dotnet
|
|
@ -27,6 +27,12 @@ brew install --HEAD -s dotnet-sdk.rb
|
|||
rm dotnet-sdk.rb
|
||||
```
|
||||
|
||||
## Hacking on Pulumi in Gitpod
|
||||
|
||||
If you have a web browser, you can get a fully pre-configured Pulumi development environment in one click:
|
||||
|
||||
[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/pulumi/pulumi)
|
||||
|
||||
## Make build system
|
||||
|
||||
We use `make` as our build system, so you'll want to install that as well, if you don't have it already. We have extremely limited support for doing development on Windows (the bare minimum for us to get Windows validation of `pulumi`) so if you're on windows, we recommend that you use the [Windows Subsystem for Linux](https://docs.microsoft.com/en-us/windows/wsl/install-win10). We'd like to [make this better](https://github.com/pulumi/pulumi/issues/208) so feel free to pitch in if you can.
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
[![NuGet version](https://badge.fury.io/nu/pulumi.svg)](https://badge.fury.io/nu/pulumi)
|
||||
[![GoDoc](https://godoc.org/github.com/pulumi/pulumi?status.svg)](https://godoc.org/github.com/pulumi/pulumi)
|
||||
[![License](https://img.shields.io/npm/l/%40pulumi%2Fpulumi.svg)](https://github.com/pulumi/pulumi/blob/master/LICENSE)
|
||||
[![Gitpod ready-to-code](https://img.shields.io/badge/Gitpod-ready--to--code-blue?logo=gitpod)](https://gitpod.io/#https://github.com/pulumi/pulumi)
|
||||
|
||||
<a href="https://www.pulumi.com/docs/get-started/?utm_campaign=pulumi-pulumi-github-repo&utm_source=github.com&utm_medium=get-started-button" title="Get Started">
|
||||
<img src="https://www.pulumi.com/images/get-started.svg" align="right" width="120">
|
||||
|
|
Loading…
Reference in a new issue