Skip to content

Commit

Permalink
bare minimum devcontainer test
Browse files Browse the repository at this point in the history
  • Loading branch information
thumperward committed Oct 10, 2023
1 parent d5c940b commit 9bca862
Show file tree
Hide file tree
Showing 2 changed files with 70 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# FROM mcr.microsoft.com/devcontainers/dotnet:0-6.0
FROM mcr.microsoft.com/devcontainers/base:debian-11

# Add backports.
RUN echo "deb http://deb.debian.org/debian bullseye-backports main" > /etc/apt/sources.list.d/backports.list

# Install dependencies.
RUN apt-get update && apt-get install -y --no-install-recommends \
file \
nsis \
imagemagick \
wine64 \
shellcheck

# Install dotnet SDK and PowerShell.
RUN curl -SOL https://packages.microsoft.com/config/debian/11/packages-microsoft-prod.deb \
&& dpkg -i packages-microsoft-prod.deb \
&& rm packages-microsoft-prod.deb \
&& apt-get update \
&& apt-get install -y --no-install-recommends \
dotnet-sdk-6.0 \
powershell

# Install updated packages from backports.
RUN apt-get update && sudo apt-get install -y --no-install-recommends \
curl/bullseye-backports \
wine64/bullseye-backports

# Install AppImageTool.
RUN curl -SLO https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage \
&& install appimagetool-x86_64.AppImage /usr/local/bin \
&& rm appimagetool-x86_64.AppImage


# Download rcdedit.
USER vscode
RUN curl -SLo /home/vscode/rcedit-x64.exe https://github.com/electron/rcedit/releases/download/v1.1.1/rcedit-x64.exe
ENV PATH=/usr/lib/wine/:$PATH
32 changes: 32 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"name": "C# (.NET)",
"build": {
"dockerfile": "Dockerfile"
},
"customizations": {
"vscode": {
"extensions": [
"EditorConfig.EditorConfig",
"foxundermoon.shell-format",
"GitHub.vscode-github-actions",
"idleberg.nsis",
"macabeus.vscode-fluent",
"ms-dotnettools.csdevkit",
"ms-dotnettools.csharp",
"ms-python.python",
"ms-vscode.cpptools-extension-pack",
"ms-vscode.makefile-tools",
"ms-vscode.powershell",
"nico-castell.linux-desktop-file",
"openra.oraide-vscode",
"openra.vscode-openra-lua",
"tamasfe.even-better-toml",
"timonwong.shellcheck"
]
}
},
"features": {},
"postAttachCommand": {
"safe-dir": "git config --global --add safe.directory ${containerWorkspaceFolder}"
}
}

0 comments on commit 9bca862

Please sign in to comment.