Skip to content

Commit

Permalink
Add dev container
Browse files Browse the repository at this point in the history
  • Loading branch information
nojaf committed Apr 22, 2024
1 parent 654b79f commit e6d21bb
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/dotnet-fsharp
{
"name": "vite-plugin-fable",
"image": "mcr.microsoft.com/dotnet/sdk:8.0",

// Features to add to the dev container. More info: https://containers.dev/features.
// "features": {},

// Configure tool-specific properties.
"customizations": {
// Configure properties specific to VS Code.
"vscode": {
// Add the IDs of extensions you want installed when the container is created.
"extensions": [
"[email protected]",
"ms-vscode.csharp"
],
"settings": {
"FSharp.useSdkScripts":true,
"FSharp.fsac.netCoreDllPath": "/root/.vscode-server/extensions/ionide.ionide-fsharp-7.18.2/bin/net7.0/fsautocomplete.dll"
}
}
},
"features": {
"ghcr.io/devcontainers/features/common-utils:2.4.2": {},
"ghcr.io/devcontainers/features/git:1.2.0": {},
"ghcr.io/devcontainers/features/github-cli:1.0.11": {},
"ghcr.io/devcontainers/features/dotnet:2.0.5": {},
"ghcr.io/michidk/devcontainers-features/bun:1": {}
},
"postCreateCommand": ".devcontainer/init.sh"

// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],

// Use 'postCreateCommand' to run commands after the container is created.
// "postCreateCommand": "dotnet restore",

// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
}
4 changes: 4 additions & 0 deletions .devcontainer/init.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash
dotnet tool restore
dotnet restore
bun i

0 comments on commit e6d21bb

Please sign in to comment.