Skip to content

Commit

Permalink
Fix devcontainer and add vscode launch config (#100)
Browse files Browse the repository at this point in the history
* fix docker build due to outdated yarn keys

* Add Docusaurus launch config
  • Loading branch information
fflaten authored Mar 22, 2021
1 parent fa90edd commit 06489bb
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@
ARG VARIANT="10"
FROM mcr.microsoft.com/vscode/devcontainers/javascript-node:${VARIANT}

# Refresh GPG keys to avoid error with Yarn repo
RUN apt-key adv --refresh-keys --keyserver keyserver.ubuntu.com

# Install PowerShell 7
RUN wget https://packages.microsoft.com/config/debian/10/packages-microsoft-prod.deb && sudo dpkg -i packages-microsoft-prod.deb \
&& apt-get update && apt-get install -y powershell
&& apt-get update && apt-get install -y powershell \
# Clean up
&& rm packages-microsoft-prod.deb && rm -rf /var/lib/apt/lists/*
14 changes: 14 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"command": "yarn start --poll",
"name": "Start Docusaurus (with polling)",
"request": "launch",
"type": "node-terminal"
}
]
}

0 comments on commit 06489bb

Please sign in to comment.