'nuget fails on RHEL7.9 OpenShift container
I'm working on OpenShift container, need to push some .nupkg
package based on.nuspec
file. I can't even run help, nor nuget pack
or push
, when trying to execute nuget
in cli is giving me error.
sh-4.2$ nuget
Access to the path '/.config/NuGet' is denied.
If I would like to pack it, error is the same :
sh-4.2$ nuget pack RDependencies.nuspec
Access to the path '/.config/NuGet' is denied.
It was installed while Building container, with
RUN yum install -y nuget; yum clean all
Container is based on: Red Hat Enterprise Linux Server release 7.9 (Maipo)
And nuget bin:
sh-4.2$ whereis nuget
nuget: /usr/bin/nuget
sh-4.2$ cat /usr/bin/nuget
#!/bin/sh
exec /usr/bin/mono /usr/lib/mono/nuget/NuGet.exe "$@"
sh-4.2$
Question: Is it possible to force nuget to create/read from /tmp/ directory which I've got access to?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|