Reverse proxy for nuget server to fix authentication problems by dotnet restore
5.8K
This docker pipes nuget requests through a local nginx reverse proxy. The proxy will do the authentication instead of dotnet itself.
This is a workaround for the authentication problems we had while calling dotnet restore on a linux system (docker) wich throws errors like GSSAPI operation failed with error - An invalid status code was supplied (SPNEGO cannot find mechanisms to negotiate).
$ nugetproxy https://username:[email protected]/your/nuget/repo
The script will create /etc/nuget.config too.
$ cd /your/project/directory
$ dotnet restore --configfile /etc/nuget.config
$ dotnet test -c release
$ dotnet publis -r linux-x64 -c release
Content type
Image
Digest
Size
582.8 MB
Last updated
almost 7 years ago
docker pull owja/nugetproxy