GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — nav-docker/LOCAL_DEV_ENV.md at main · microsoft/nav-docker

Expand file tree

/

LOCAL_DEV_ENV.md

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
57 lines (46 loc) · 3.23 KB
/

LOCAL_DEV_ENV.md

Copy path

File metadata and controls

57 lines (46 loc) · 3.23 KB
Raw
Copy raw file
Download raw file
Outline
Edit and raw actions

How to build and test images locally

Prerequisites

  • Install and run Docker Desktop. Make sure it is running Windows containers.
  • Install BcContainerHelper PS module (latest available version). Install-Module BCContainerHelper -AllowPrerelease would do.

Build a new image locally

If you want to build a new docker image locally you can use the build.ps1 script. The following will produce a new docker image based on Windows Server Core 2025.

    $GenericTag = "1.2.3.4"
    $baseImage = "mcr.microsoft.com/dotnet/framework/runtime:4.8.1-windowsservercore-ltsc2025"
    $imageName = ./build/build.ps1 -BaseImage $baseImage -LtscTag 'ltsc2025' -FilesOnly $false -Only24 $false -GenericTag $GenericTag

For long-running builds, authenticate to Azure after the build completes, then invoke build.ps1 again with the same parameters plus -PublishOnly -PushToDev (and -PushToProd when needed). Run both invocations on the same agent. -PublishOnly reuses the local base image without pulling or rebuilding, so the production tag guard checks the version that was actually built. Both publishing pipelines use this split to avoid relying on an Azure session created before the build.

For local full-image builds, place the extracted SqlServer 22.2.0 module in generic\dependencies\SqlServer\22.2.0 before building.

If you'd rather use a different base image, you can also use one of the following:

  • mcr.microsoft.com/dotnet/framework/runtime:4.8-windowsservercore-ltsc2016
  • mcr.microsoft.com/dotnet/framework/runtime:4.8-windowsservercore-ltsc2019
  • mcr.microsoft.com/dotnet/framework/runtime:4.8.1-windowsservercore-ltsc2022
  • mcr.microsoft.com/dotnet/framework/runtime:4.8.1-windowsservercore-ltsc2025

Create a docker container with the image

Once you have a local image you can use New-BCContainer to spin up a Business Central container that uses your image.

    New-BcContainer -accept_eula -accept_insiderEula -containerName "MyTestContainer" -artifactUrl (Get-BCArtifactUrl -select NextMajor -accept_insiderEula -country W1) -useGenericImage $imageName

Azure pipeline

The manual Azure pipeline is defined in .azure-pipelines/BuildMissingImages.yml. It extends the Official 1ES Pipeline Template and uses the pool named by AgentPoolName, letting the pool select its configured image, with the NAVDocker-ImagePublisher Azure Resource Manager service connection. Authorize access to the template repository, agent pool, and service connection, and configure approval and Exclusive Lock checks on that connection. Runs publish only from main. The default PushToProd: false still publishes dev images and marks eligible old images stale; it is not a dry run.

Analysis provides a preview before approval. Inside the locked Publish stage, the pipeline allocates the final revision from current ACR tags before building. Dev-only runs recheck production tag digests in ACR immediately before stale marking, excluding candidates that became production images while awaiting the lock. Keep the GitHub publisher disabled while this pipeline is active; the ADO lock does not coordinate with GitHub Actions.

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.