Skip to content

Commit

Permalink
fix: mitigation for gitpod-io/gitpod#6460
Browse files Browse the repository at this point in the history
  • Loading branch information
ghuntley committed Oct 29, 2021
1 parent f0ef7b2 commit 9d01b88
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
6 changes: 6 additions & 0 deletions .gitpod.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FROM gitpod/workspace-full:latest

USER gitpod
#.NET installed via .gitpod.yml task until the following issue is fixed: https://github.com/gitpod-io/gitpod/issues/5090
ENV DOTNET_ROOT=/tmp/dotnet
ENV PATH=$PATH:/tmp/dotnet
11 changes: 8 additions & 3 deletions .gitpod.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
image: gitpod/workspace-dotnet
image:
file: .gitpod.Dockerfile

tasks:
- init: dotnet build
command: dotnet run
# Mitigation for https://github.com/gitpod-io/gitpod/issues/6460
- name: Postinstall .NET 6.0 and dev certificates
init: |
mkdir -p /tmp/dotnet && curl -fsSL https://dot.net/v1/dotnet-install.sh | bash /dev/stdin --channel 6.0 --install-dir /tmp/dotnet
dotnet dev-certs https
dotnet restore
vscode:
extensions:
Expand Down

0 comments on commit 9d01b88

Please sign in to comment.