Skip to content

Commit c134a03

Browse files
authored
Merge pull request #1422 from github/o1-justfile-to-build
Add a justfile to gh-gei to simplify building and testing
2 parents 64836a8 + b09a7b8 commit c134a03

File tree

5 files changed

+488
-337
lines changed

5 files changed

+488
-337
lines changed

.devcontainer/Dockerfile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Start from the .NET 8 devcontainer image
2+
FROM mcr.microsoft.com/devcontainers/dotnet:9.0
3+
4+
# Set up apt and install Just as a task runner
5+
RUN apt-get update \
6+
&& apt-get install -y curl ca-certificates gnupg \
7+
&& curl --proto '=https' --tlsv1.2 -sSf https://just.systems/install.sh | bash -s -- --to /usr/local/bin \
8+
&& apt-get clean \
9+
&& rm -rf /var/lib/apt/lists/*

.devcontainer/devcontainer.json

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,23 @@
11
{
22
"name": "C# (.NET)",
3-
"image": "mcr.microsoft.com/devcontainers/dotnet:8.0",
3+
"build": {
4+
"dockerfile": "Dockerfile"
5+
},
46

57
// Configure tool-specific properties.
68
"customizations": {
7-
// Configure properties specific to VS Code.
8-
"vscode": {
9-
// Add the IDs of extensions you want installed when the container is created.
9+
"vscode": {
1010
"extensions": [
1111
"ms-dotnettools.csdevkit",
1212
"github.copilot",
1313
"ms-vscode.powershell"
1414
]
1515
}
1616
},
17+
1718
"features": {
1819
"ghcr.io/devcontainers/features/github-cli:1": {}
1920
},
21+
2022
"remoteUser": "vscode"
21-
}
23+
}

0 commit comments

Comments
 (0)