Home

Awesome

Untitled3

Nim Windows Container

This repository contains:

Nim

Nim is a compiled, garbage-collected systems programming language with a design that focuses on efficiency, expressiveness, and elegance.

Dockerfile

The sample Dockerfile defaults to:

GitHub Actions Workflow

The sample GitHub Actions workflow:

It is not currently possible to run Windows Containers on GitHub Actions at this time, the runner only supports Linux containers. :(

Windows Container

Prerequisites for Windows Containers

To use the Windows Container, you'll need:

As Administator, open PowerShell, and enable Windows Containers:

Enable-WindowsOptionalFeature -Online -FeatureName containers –All

Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V –All

Windows Server 2022 Core LTSC base

To get the Windows Container:

docker pull ghcr.io/sirredbeard/nim-windows-container/nimstable-ltsc2022:latest

To start the Windows Container on pause, so you can exec in:

docker run ghcr.io/sirredbeard/nim-windows-container/nimstable-ltsc2022:latest pause.exe

Also see the GitHub Container Registry page.

Build Yourself

To build and use the Windows Container yourself, you can use the Dockerfile and build locally, or:

image

Set-Variable -Name "CR_PAT" -Value "<PAT>"
echo $CR_PAT | docker login ghcr.io -u USERNAME --password-stdin
docker pull ghcr.io/<USERNAME>/nim-windows-container/nimstable-ltsc2019:latest``