Skip to content

This will provide a local environment for accessing local Container Registry and NuGet Package Manager resources.

License

Notifications You must be signed in to change notification settings

bUKaneer/white-label.infrastructure.local-containers-and-packages

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Local Containers & Packages

This environment allows the developer to manage packages between the distributed projects where code reuse is required.

Libraries such as Servce Defaults and Shared Kernels are good candidates.

Orchestration tooling can use any projects deployed as containers to the local registry to aid in providing additional custom infrastructure.

Local NuGet (Baget)

Add Baget as Package Source

dotnet nuget add source http://localhost:9002/v3/index.json --name baget

Use the following command in the same folder as the .csproj to pack files ready for Baget.

dotnet pack --output nupkgs

Push the package to Baget.

dotnet nuget push ./nupkgs/ProjectName.nupkg -s http://localhost:19002/v3/index.json -k 8B516EDB-7523-476E-AF43-79CCA054CE9F

Local Container Registry

Add Containerisation Support to the project, run in the same folder as .csproj file.

dotnet add package Microsoft.NET.Build.Containers

Setup containerisation settings

In .csproj file add ContainerRepository and ContainerRegistry elements with appropriate values.

<PropertyGroup>
    <!-- Other Properties here -->
    <ContainerRepository>white-label.projectname</ContainerRepository>
    <ContainerRegistry>localhost:19001</ContainerRegistry>
</PropertyGroup>

Publish to Local Registry, run this in the same folder as the .csproj file.

dotnet publish --os linux --arch x64 -c Release -p:PublishProfile=DefaultContainer

About

This will provide a local environment for accessing local Container Registry and NuGet Package Manager resources.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages