Cant list/see/install packages via Docker container
See original GitHub issueDo you want to request a feature or report a bug?
Bug
What did you do?
Reproduction steps
- I clone the repository,
- Then run
docker build . -t baget
- Then create
baget.env
file according to the wiki. - Then
docker run --rm --name nuget-server -p 5555:80 --env-file baget.env -v "$(pwd)/baget-data:/var/baget" baget:latest
. The container starts up without any error messages. - Then i try to push a nuget package I have with:
dotnet nuget push -s http://localhost:5555/v3/index.json -k NUGET-SERVER-API-KEY AccountReconciliation.RestAPI.Client.0.1.2.nupkg
which results in:
info : Pushing AccountReconciliation.RestAPI.Client.0.1.2.nupkg to 'http://localhost:5555/v2/package'...
info : PUT http://localhost:5555/v2/package/
info : Created http://localhost:5555/v2/package/ 343ms
info : Your package was pushed.
What did you expect to see?
I expect the website to show the pushed package. I expect nuget list -s http://localhost:5555
to show AccountReconciliation.RestApi.Client.0.1.2
and nuget install AccountReconciliation.RestApi.Client
to download and install the package into my project.
What did you see instead?
When I enter http://localhost:5555 there are no packages shown.
If i try to run nuget list -s http://localhost:5555
I get
WARNING: The remote server returned an error: (404) Not Found. No packages found.
.
If I try to install with: nuget install AccountReconciliation.RestAPI.Client -Source http://localhost:5555
I get
WARNING: An error occurred while loading packages from 'http://localhost:5555/': The remote server returned an error: (404) Not Found. WARNING: An error occurred while loading packages from 'http://localhost:5555/': The remote server returned an error: (404) Not Found. Unable to find package 'AccountReconciliation.RestAPI.Client'.
Output of git rev-parse HEAD
: (What version of BaGet are you using?)
e9ebce2bd390796f266a747db40619095750249c
What is your environment & configuration (arguments, platform, …)?
Ubuntu 18.04 Docker version 18.06.0-ce, build 0ffa825
If applicable, please paste the log output in DEBUG level
Dont know what to show but docker log [containerid] shows the following:
warn: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[35]
No XML encryptor configured. Key {23774c5d-d43b-45a9-a87b-a08b59324403} may be persisted to storage in unencrypted form.
Hosting environment: Development
Content root path: /app
Now listening on: http://[::]:80
Application started. Press Ctrl+C to shut down.
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (5 by maintainers)
Top GitHub Comments
Yup, that would be it - NuGet 2.8 is very old. If you’re on macOS I would recommend that you use the dotnet CLI if possible.
As that was the last bug that needed addressing, I’ll go ahead and close off this issue. Feel free to open another issue if you run into anything else!
Just add
/v3/index.json
at the end