Aspir8: Aspire to Deployments Help

Installation as a DevContainer Feature

What is a DevContainer?

A DevContainer is a Docker container that is used to develop code in a consistent environment.

Why use a DevContainer?

A DevContainer provides a consistent environment for all developers working on a project.

This means that all developers will have the same version of tools, such as the Azure CLI, installed.

Prerequisites

An IDE that supports DevContainers, such as Visual Studio Code, Visual Studio, or JetBrains Rider.

Visual Studio Code

Visual Studio

JetBrains Rider

Using Aspir8 in a DevContainer

features": { "ghcr.io/prom3theu5/aspirational-manifests/aspirate:latest": {} }

Example Dev Container Configuration

{ "name": ".NET Aspire Backend", "image": "mcr.microsoft.com/devcontainers/base:ubuntu", "features": { "ghcr.io/devcontainers/features/docker-in-docker:2": {}, "ghcr.io/devcontainers/features/dotnet:2": {}, "ghcr.io/devcontainers/features/kubectl-helm-minikube:1": {}, "ghcr.io/devcontainers/features/github-cli:1": {}, "ghcr.io/azure/azure-dev/azd:0": { "version": "latest" }, "ghcr.io/prom3theu5/aspirational-manifests/aspirate:latest": {}, }, "customizations": { "vscode": { "extensions": [ "redhat.vscode-yaml", "streetsidesoftware.code-spell-checker", "ms-azuretools.vscode-bicep", "eamodio.gitlens", ] } }, "onCreateCommand": "dotnet workload install aspire" }
Last modified: 18 May 2024