Skip to content

Commit

Permalink
Added DevContainer Config (#7379)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelstaib authored Aug 18, 2024
1 parent 7b81b8c commit fd14b28
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -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"
}
26 changes: 26 additions & 0 deletions .devcontainer/dockerfile
Original file line number Diff line number Diff line change
@@ -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/*
12 changes: 12 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit fd14b28

Please sign in to comment.