Question: How to best automate loading up a blank Gitea with our stack and setup mirroring #27
Open
opened 2023-04-06 22:45:53 +00:00 by zramsay
·
5 comments
No Branch/Tag Specified
main
roysc/containerd-image-store
roysc/update-docs
dboreham/fix-dind
names-for-so
dboreham/update-gitea-1-20
mirror-org
dboreham/fix-token-scope
dboreham/tls-proxy
dboreham/update-gitea
dboreham/fix-executor-container-name
telackey/act_runner
dboreham/add-drone-ci
dboreham/so-integration
dboreham/update-gitea-doc
dboreham/gitea-initial-setup
dboreham/gitea-unattended-install
dboreham/fixes
dboreham/add-basic-pipeline
No results found.
Labels
Clear labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
Copied from Github
Kind/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Something isn't working
Improvements or additions to documentation
This issue or pull request already exists
New feature or request
Good for newcomers
Extra attention is needed
This doesn't seem right
Further information is requested
This will not be worked on
An issue or PR manually copied from GitHub.
Breaking change that won't be backward compatible
Something is not working
Documentation changes
Improve existing functionality
New functionality
This is security issue
Issue or pull request related to testing
Priority
Critical
The priority is critical
Priority
High
The priority is high
Priority
Low
The priority is low
Priority
Medium
The priority is medium
Reviewed
Confirmed
Issue has been confirmed
Reviewed
Duplicate
This issue or pull request already exists
Reviewed
Invalid
Invalid issue
Reviewed
Won't Fix
This issue won't be fixed
Status
Abandoned
Somebody has started to work on this but abandoned work
Status
Blocked
Something is blocking this issue or pull request
Status
Need More Info
Feedback is required to reproduce issue or to continue work
No labels
Milestone
No items
No Milestone
Projects
Clear projects
No projects
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: cerc-io/hosting#27
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Context: I can reliably stand up the
package-registrystack (which maybe isn't a broad enough name) but am not sure what the next step would be to efficiently and reliably "load" all our GH repos, mirrored from GH. It's easy enough to do manually :(Of course, the goal is the reverse the mirror at some point but IMO a good first step is to get S-O to spin up gitea with all of GH mirrored; this would also be a great task to assign the membership...use S-O to host a mirror of our stack in gitea. Once we switch, S-O would be configured to run a gitea mirror from the authoritative gitea.
https://docs.gitea.io/en-us/repo-mirror/ --> nothing about automating this
https://github.com/maxgallup/gitea-migrate --> most recent tool I could find
I think this would be a case of reviewing the GT code, finding the back-end area that implements the migrate button and then seeing if it is wired up to the API. There may be some chatter about this in their issues or Discord.
If it's not API-aware, then next step would be to add that code, or wait for someone else to do it.
We now have a tool to help with this: https://github.com/cerc-io/hosting/blob/main/gitea/migrate-repo.sh
solved by removing quotes around
export CERC_GITEA_API_URL='gitea.local:3000'got it working, had to create a new token that had the
reposcope. The default token from running thepackage-registrystack hadpackageandsudoscopes ... I guess sudo doesn't mean what I expected to mean 🤷#42