Skip to content

Commit

Permalink
Set up devcontainer & gitpod
Browse files Browse the repository at this point in the history
  • Loading branch information
danielrbradley committed Nov 18, 2021
1 parent 67ba323 commit f66045d
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .devcontainer/.devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"name": "pulumi-codespace",
"build": {
"dockerfile": "../.gitpod.Dockerfile",
},
"postCreateCommand": "make install",
"remoteUser": "gitpod",
"containerEnv": {
"PULUMI_ACCESS_TOKEN": "${localEnv:PULUMI_ACCESS_TOKEN}",
"PULUMI_TEST_ORG": "${localEnv:PULUMI_TEST_ORG}"
},
"extensions": ["golang.go", "ms-dotnettools.csharp", "ms-python.python", "formulahendry.dotnet-test-explorer"],
}
21 changes: 21 additions & 0 deletions .gitpod.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
FROM gitpod/workspace-full

USER root

# Install latest Pulumi CLI
RUN curl -fsSL https://get.pulumi.com/ | bash; \
mv ~/.pulumi/bin/* /usr/bin

# Install latest pulumictl
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') \
&& tar xzf pulumictl.tar.gz -C /usr/bin pulumictl \
&& rm -f pulumictl.tar.gz \
&& pulumictl version

USER gitpod

# Install .NET SDK (Current channel)
# Source: https://docs.microsoft.com/dotnet/core/install/linux-scripted-manual#scripted-install
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
ENV DOTNET_ROOT=/home/gitpod/dotnet
ENV PATH=$PATH:/home/gitpod/dotnet
21 changes: 21 additions & 0 deletions .gitpod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
image:
file: .gitpod.Dockerfile

tasks:
- init: make install

vscode:
extensions:
- "golang.go"
- "ms-dotnettools.csharp"
- "ms-python.python"
- "formulahendry.dotnet-test-explorer"

# See: https://www.gitpod.io/docs/prebuilds/#configure-the-github-app
github:
prebuilds:
master: true
branches: true
pullRequests: true
pullRequestsFromForks: true
addCheck: true

0 comments on commit f66045d

Please sign in to comment.