Sign inSign up

owja/nugetproxy

By owja

•Updated about 5 years ago

Reverse proxy for nuget server to fix authentication problems by dotnet restore

Image
0

5.8K

owja/nugetproxy repository overview

⁠Nuget Proxy for Gitlab Docker Runner

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).

⁠Configuring the proxy
$ nugetproxy https://username:[email protected]/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

Tag summary

Content type

Image

Digest

Size

582.8 MB

Last updated

almost 7 years ago

docker pull owja/nugetproxy