Skip to content

Commit 0fa6450

Browse files
committed
Update codespace settings
1 parent 578bed9 commit 0fa6450

File tree

2 files changed

+48
-38
lines changed

2 files changed

+48
-38
lines changed

.devcontainer/DOCKERFILE

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Use PowerShell base image (Debian-based)
2+
FROM mcr.microsoft.com/powershell:latest
3+
4+
# Use bash for apt operations
5+
SHELL ["/bin/bash", "-c"]
6+
7+
# Install Git
8+
RUN apt-get update && \
9+
apt-get install -y git
10+
11+
# Install .NET SDK
12+
RUN apt-get update && \
13+
apt-get install -y wget apt-transport-https && \
14+
wget https://packages.microsoft.com/config/debian/12/packages-microsoft-prod.deb -O packages-microsoft-prod.deb && \
15+
dpkg -i packages-microsoft-prod.deb && \
16+
apt-get update && \
17+
apt-get install -y dotnet-sdk-8.0 && \
18+
rm -rf packages-microsoft-prod.deb
19+
20+
# Delete the apt cache
21+
RUN apt-get clean && \
22+
rm -rf /var/lib/apt/lists/*
23+
24+
# Switch shell back to pwsh (optional)
25+
SHELL ["pwsh", "-Command"]

.devcontainer/devcontainer.json

Lines changed: 23 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,24 @@
1-
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
2-
// README at: https://github.com/devcontainers/templates/tree/main/src/alpine
31
{
4-
"name": "Alpine",
5-
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
6-
"image": "mcr.microsoft.com/devcontainers/base:alpine-3.20",
7-
"features": {
8-
"ghcr.io/cirolosapio/devcontainers-features/alpine-node:0": {
9-
"corepack": true,
10-
"pnpmVersion": "latest"
11-
},
12-
"ghcr.io/devcontainers/features/powershell:1": {
13-
"version": "7.4"
14-
}
15-
},
16-
"customizations": {
17-
"vscode": {
18-
"extensions": [
19-
"ms-vscode.powershell",
20-
"github.vscode-github-actions"
21-
]
22-
}
23-
}
24-
25-
// Features to add to the dev container. More info: https://containers.dev/features.
26-
// "features": {},
27-
28-
// Use 'forwardPorts' to make a list of ports inside the container available locally.
29-
// "forwardPorts": [],
30-
31-
// Use 'postCreateCommand' to run commands after the container is created.
32-
// "postCreateCommand": "uname -a",
33-
34-
// Configure tool-specific properties.
35-
// "customizations": {},
36-
37-
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
38-
// "remoteUser": "root"
39-
}
2+
"name": "PowerShell Dev Container",
3+
"build": {
4+
"dockerfile": "Dockerfile"
5+
},
6+
"postCreateCommand": "pwsh -Command \"Write-Host 'PowerShell ready!'\"",
7+
"features": {},
8+
"customizations": {
9+
"vscode": {
10+
"extensions": [
11+
"ms-vscode.powershell",
12+
"ms-azuretools.vscode-docker",
13+
"NotisDataAnalytics.vba-lsp",
14+
"GitHub.copilot-chat",
15+
"ms-azuretools.vscode-containers"
16+
],
17+
"settings": {
18+
"extensions.experimental.preferPreReleases": {
19+
"NotisDataAnalytics.vba-lsp": true
20+
}
21+
}
22+
}
23+
}
24+
}

0 commit comments

Comments
 (0)