Skip to content

Commit c1e0114

Browse files
Set up devcontainer & gitpod
1 parent 67ba323 commit c1e0114

File tree

3 files changed

+55
-0
lines changed

3 files changed

+55
-0
lines changed

.devcontainer/.devcontainer.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"name": "pulumi-codespace",
3+
"build": {
4+
"dockerfile": "../.gitpod.Dockerfile",
5+
},
6+
"postCreateCommand": "make install",
7+
"remoteUser": "gitpod",
8+
"containerEnv": {
9+
"PULUMI_ACCESS_TOKEN": "${localEnv:PULUMI_ACCESS_TOKEN}",
10+
"PULUMI_TEST_ORG": "${localEnv:PULUMI_TEST_ORG}"
11+
},
12+
"extensions": ["golang.go", "ms-dotnettools.csharp", "ms-python.python", "formulahendry.dotnet-test-explorer"],
13+
}

.gitpod.Dockerfile

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
FROM gitpod/workspace-full
2+
3+
USER root
4+
5+
# Install latest pulumictl
6+
RUN wget -O pulumictl.tar.gz $(curl -s https://api.github.com/repos/pulumi/pulumictl/releases/latest | jq -rc '.assets | map(select(.name | contains("linux-amd64"))) | .[] .browser_download_url') \
7+
&& tar xzf pulumictl.tar.gz -C /usr/bin pulumictl \
8+
&& rm -f pulumictl.tar.gz \
9+
&& pulumictl version
10+
11+
USER gitpod
12+
13+
# Install .NET SDK (Current channel)
14+
# Source: https://docs.microsoft.com/dotnet/core/install/linux-scripted-manual#scripted-install
15+
RUN mkdir -p /home/gitpod/dotnet && curl -fsSL https://dot.net/v1/dotnet-install.sh | bash /dev/stdin --channel Current --install-dir /home/gitpod/dotnet
16+
ENV DOTNET_ROOT=/home/gitpod/dotnet
17+
ENV PATH=$PATH:/home/gitpod/dotnet
18+
19+
# Install latest Pulumi CLI
20+
RUN curl -fsSL https://get.pulumi.com/ | bash;
21+
ENV PATH=$PATH:/home/gitpod/.pulumi/bin/

.gitpod.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
image:
2+
file: .gitpod.Dockerfile
3+
4+
tasks:
5+
- init: make install
6+
7+
vscode:
8+
extensions:
9+
- "golang.go"
10+
- "ms-dotnettools.csharp"
11+
- "ms-python.python"
12+
- "formulahendry.dotnet-test-explorer"
13+
14+
# See: https://www.gitpod.io/docs/prebuilds/#configure-the-github-app
15+
github:
16+
prebuilds:
17+
master: true
18+
branches: true
19+
pullRequests: true
20+
pullRequestsFromForks: true
21+
addCheck: true

0 commit comments

Comments
 (0)