Ubuntu 24.04 development environment with PowerShell, DSC v3, and Zsh (Oh My Zsh & Powerlevel10k) pre-configured.
- PowerShell 7.5.2 & DSC v3
- .NET SDK 8.0
- Git & OpenSSH Client
- Zsh with Oh My Zsh & Powerlevel10k
- Non-root 'developer' user with sudo access
- Docker
docker pull viscalyx/devshell-dsc:latestRun the Container to launch an interactive development shell with your local project mounted:
Using Bash/Zsh:
# Run interactively, mounting current directory to /home/developer/work
docker run --rm -it \
-v "$(pwd)":/home/developer/work \
viscalyx/devshell-dsc:latestUsing PowerShell:
# Run interactively, mounting current directory to /home/developer/work
docker run --rm -it -v "${PWD}:/home/developer/work" viscalyx/devshell-dsc:latest-
From your development machine, clone a DSC resource repository:
git clone git@github.com:dsccommunity/SqlServerDsc.git cd SqlServerDsc -
Start the container with the cloned repository mounted:
docker run --rm -it -v "$(pwd)":/home/developer/work viscalyx/devshell-dsc:latest -
Once inside the container, for this example, start PowerShell
pwsh
-
Build the project, and then list available DSC resources:
./build.ps1 -ResolveDependency -Tasks build dsc resource list --adapter Microsoft.Dsc/PowerShell