Skip to content
This repository has been archived by the owner on Apr 5, 2022. It is now read-only.

owja/nugetproxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nuget Proxy for Gitlab Runner

Docker Build Status Docker Image Size Docker Pulls

This docker image extends microsoft/dotnet(:2.1-sdk|2.2-sdk) and pipes nuget requests through a local nginx reverse proxy. The proxy will do the authentication instead of dotnet restore itself.

This is a workaround for the authentication problems we had while calling dotnet restore on linux systems (docker) which throws errors like GSSAPI operation failed with error - An invalid status code was supplied (SPNEGO cannot find mechanisms to negotiate).

Configuring the proxy

$ nugetproxy https://username:password@server.de/your/nuget/repo

The script will create /etc/nuget.config too.

Using for DotNet Core Project

$ cd /your/project/directory
$ dotnet restore --configfile /etc/nuget.config
$ dotnet test -c release
$ dotnet publis -r linux-x64 -c release