Document how to update the package index in mirror mode
See original GitHub issueI’ve set up an instance of the BaGet server using the provided Docker image and configured mirroring:
- ApiKey=<key>
- Storage__Type=FileSystem
- Storage__Path=/var/baget/packages
- Database__Type=Sqlite
- Database__ConnectionString=Data Source=/var/baget/baget.db
- Search__Type=Database
- Mirror__Enabled=True
- Mirror__PackageSource=https://api.nuget.org/v3/index.json
But the packages page is still empty. To my understanding I need to somehow trigger an index update, but I cannot find any information about this in the docs. Could you clarify this please?
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Repository mirroring | GitLab
When the mirror repository is updated, all new branches, tags, and commits are visible in the project's activity feed. A repository mirror at...
Read more >apt-mirror-updater
The apt-mirror-updater program automates robust apt-get mirror selection for Debian and Ubuntu by enabling discovery of available mirrors, ranking of available ...
Read more >Mirroring images for a disconnected installation using the oc ...
Mirror an image set to disk, transfer the image set to the target environment, then upload the image set to the target mirror...
Read more >Mirrors - ArchWiki
This page is a guide to selecting and configuring your mirrors, and a listing of current available mirrors.
Read more >Configuring a Local Mirror of the ThousandEyes Package ...
This document outlines the requirements and processes to create a local repository mirror containing packages required by the ThousandEyes Enterprise Agents, ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The problem I’m having is that I don’t see results when I press Browse from the Nuget package manager and search for a package; it shows an empty list. It does not act as a read-through cache to Nuget.org. (I have set the MIRROR__ENABLED=true env variable) Any help would be appreciated.
P.S. The goal when using read-through caching would be to completely “hide” nuget.org.
Hi, you can add packages from the mirrored package source two ways:
dotnet restore
. BaGet will index packages as you restore them.https://your-baget-url/v3/registration/newtonsoft.json/12.0.1.json
. This will index Newtonsoft.Json v12.0.1.I’ll improve the documentation to clarify this. Please let me know if you have any additional questions!