Skip to content

Commit 02d9046

Browse files
authored
Fixing Codespaces launch issue
Fixing Codespaces issue with 10.0-noble
1 parent 4f46083 commit 02d9046

2 files changed

Lines changed: 56 additions & 59 deletions

File tree

Lines changed: 29 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,48 @@
11
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
22
// README at: https://github.com/devcontainers/templates/tree/main/src/dotnet
33
{
4-
"name": "C# (.NET) - Ollama",
5-
"image": "mcr.microsoft.com/devcontainers/dotnet:1-10.0-noble",
4+
"name": "C# (.NET) - Ollama",
5+
"image": "mcr.microsoft.com/devcontainers/dotnet",
66
"features": {
77
"ghcr.io/devcontainers/features/docker-in-docker:2": {},
8-
"ghcr.io/devcontainers/features/common-utils:2": {},
9-
"ghcr.io/devcontainers/features/azure-cli:1": {
8+
"ghcr.io/devcontainers/features/azure-cli:1": {
109
"installBicep": true,
1110
"version": "latest"
1211
},
1312
"ghcr.io/azure/azure-dev/azd:0": {
1413
"version": "stable"
15-
},
16-
"ghcr.io/devcontainers/features/github-cli:1": {},
17-
"ghcr.io/prulloac/devcontainer-features/ollama:latest": {},
18-
"sshd": "latest"
14+
},
15+
"ghcr.io/devcontainers/features/github-cli:1": {},
16+
"ghcr.io/prulloac/devcontainer-features/ollama:latest": {},
17+
"ghcr.io/devcontainers/features/sshd:1": {}
1918
},
2019

21-
"customizations": {
22-
"vscode": {
23-
"extensions": [
24-
"GitHub.copilot",
25-
"ms-dotnettools.csdevkit",
26-
"ms-azuretools.vscode-azure-github-copilot"
27-
]
28-
}
29-
},
30-
20+
"customizations": {
21+
"vscode": {
22+
"extensions": [
23+
"GitHub.copilot",
24+
"ms-dotnettools.csdevkit",
25+
"ms-azuretools.vscode-azure-github-copilot"
26+
]
27+
}
28+
},
3129

32-
// Use 'forwardPorts' to make a list of ports inside the container available locally.
33-
"forwardPorts": [17057],
34-
"portsAttributes": {
35-
"17057": {
36-
"protocol": "http"
37-
}
38-
},
30+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
31+
"forwardPorts": [17057],
32+
"portsAttributes": {
33+
"17057": {
34+
"protocol": "http"
35+
}
36+
},
3937

40-
// Use 'postCreateCommand' to run commands after the container is created.
41-
"postCreateCommand": "sudo dotnet workload update && sudo dotnet workload list && ollama pull all-minilm && ollama pull llama3.2 && ollama pull phi4-mini",
42-
"postStartCommand": "",
38+
// Use 'postCreateCommand' to run commands after the container is created.
39+
"postCreateCommand": "sudo dotnet workload update && sudo dotnet workload list && ollama pull all-minilm && ollama pull llama3.2 && ollama pull phi4-mini",
40+
"postStartCommand": "",
4341

44-
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
45-
"remoteUser": "vscode",
42+
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
43+
"remoteUser": "vscode",
4644
"hostRequirements": {
4745
"memory": "16gb",
4846
"cpus": 4
4947
}
50-
}
48+
}

.devcontainer/devcontainer.json

Lines changed: 27 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,47 @@
11
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
22
// README at: https://github.com/devcontainers/templates/tree/main/src/dotnet
33
{
4-
"name": "C# (.NET)",
5-
"image": "mcr.microsoft.com/devcontainers/dotnet:1-10.0-noble",
4+
"name": "C# (.NET)",
5+
"image": "mcr.microsoft.com/devcontainers/dotnet",
66
"features": {
77
"ghcr.io/devcontainers/features/docker-in-docker:2": {},
8-
"ghcr.io/devcontainers/features/common-utils:2": {},
9-
"ghcr.io/devcontainers/features/azure-cli:1": {
8+
"ghcr.io/devcontainers/features/azure-cli:1": {
109
"installBicep": true,
1110
"version": "latest"
1211
},
1312
"ghcr.io/azure/azure-dev/azd:0": {
1413
"version": "stable"
1514
},
16-
"ghcr.io/devcontainers/features/github-cli:1": {},
17-
"sshd": "latest"
15+
"ghcr.io/devcontainers/features/github-cli:1": {},
16+
"ghcr.io/devcontainers/features/sshd:1": {}
1817
},
1918

20-
"customizations": {
21-
"vscode": {
22-
"extensions": [
23-
"GitHub.copilot",
24-
"ms-dotnettools.csdevkit",
25-
"ms-azuretools.vscode-azure-github-copilot"
26-
]
27-
}
28-
},
19+
"customizations": {
20+
"vscode": {
21+
"extensions": [
22+
"GitHub.copilot",
23+
"ms-dotnettools.csdevkit",
24+
"ms-azuretools.vscode-azure-github-copilot"
25+
]
26+
}
27+
},
2928

30-
// Use 'forwardPorts' to make a list of ports inside the container available locally.
31-
"forwardPorts": [17057],
32-
"portsAttributes": {
33-
"17057": {
34-
"protocol": "http"
35-
}
36-
},
29+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
30+
"forwardPorts": [17057],
31+
"portsAttributes": {
32+
"17057": {
33+
"protocol": "http"
34+
}
35+
},
3736

38-
// Use 'postCreateCommand' to run commands after the container is created.
39-
"postCreateCommand": "sudo dotnet workload update && sudo dotnet workload list && sudo dotnet dev-certs https --trust ",
40-
"postStartCommand": "",
37+
// Use 'postCreateCommand' to run commands after the container is created.
38+
"postCreateCommand": "sudo dotnet workload update && sudo dotnet workload list && sudo dotnet dev-certs https --trust",
39+
"postStartCommand": "",
4140

42-
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
43-
"remoteUser": "vscode",
41+
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
42+
"remoteUser": "vscode",
4443
"hostRequirements": {
4544
"memory": "16gb",
4645
"cpus": 4
4746
}
48-
}
47+
}

0 commit comments

Comments
 (0)