From fd14b28445f66238f7ccc720d647f6b115b11081 Mon Sep 17 00:00:00 2001 From: Michael Staib Date: Sun, 18 Aug 2024 21:07:42 +0200 Subject: [PATCH] Added DevContainer Config (#7379) --- .devcontainer/devcontainer.json | 15 +++++++++++++++ .devcontainer/dockerfile | 26 ++++++++++++++++++++++++++ .github/dependabot.yml | 12 ++++++++++++ 3 files changed, 53 insertions(+) create mode 100644 .devcontainer/devcontainer.json create mode 100644 .devcontainer/dockerfile create mode 100644 .github/dependabot.yml diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 00000000000..2f1437910ed --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,15 @@ +{ + "name": "ChilliCream Dev Container", + "build": { + "dockerfile": "dockerfile", + "context": "." + }, + "features": { + "ghcr.io/devcontainers/features/docker-in-docker:2": { + "version": "latest", + "enableNonRootDocker": "true", + "moby": "true" + } + }, + "postCreateCommand": "./init.sh" +} diff --git a/.devcontainer/dockerfile b/.devcontainer/dockerfile new file mode 100644 index 00000000000..54bed47ca37 --- /dev/null +++ b/.devcontainer/dockerfile @@ -0,0 +1,26 @@ +# Use the base image specified in the devcontainer.json +FROM mcr.microsoft.com/devcontainers/base:bullseye + +# Install dependencies +RUN apt-get update && apt-get install -y wget apt-transport-https curl + +# Install .NET 6 SDK +RUN wget https://dot.net/v1/dotnet-install.sh -O dotnet-install.sh \ + && chmod +x dotnet-install.sh \ + && ./dotnet-install.sh --channel 6.0 --install-dir /usr/share/dotnet --architecture arm64 \ + && ln -s /usr/share/dotnet/dotnet /usr/bin/dotnet + +# Install .NET 7 SDK +RUN ./dotnet-install.sh --channel 7.0 --install-dir /usr/share/dotnet --architecture arm64 + +# Install .NET 8 SDK (when available) +RUN ./dotnet-install.sh --channel 8.0 --install-dir /usr/share/dotnet --architecture arm64 + +# Install Node.js LTS +RUN curl -fsSL https://deb.nodesource.com/setup_lts.x | bash - \ + && apt-get install -y nodejs + +# Clean up +RUN rm dotnet-install.sh \ + && apt-get clean \ + && rm -rf /var/lib/apt/lists/* \ No newline at end of file diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 00000000000..f33a02cd16e --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,12 @@ +# To get started with Dependabot version updates, you'll need to specify which +# package ecosystems to update and where the package manifests are located. +# Please see the documentation for more information: +# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates +# https://containers.dev/guide/dependabot + +version: 2 +updates: + - package-ecosystem: "devcontainers" + directory: "/" + schedule: + interval: weekly