Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configure automatic gitea boot from configuration file #2

Closed
uwardlaw opened this issue Oct 15, 2021 · 6 comments
Closed

Configure automatic gitea boot from configuration file #2

uwardlaw opened this issue Oct 15, 2021 · 6 comments
Assignees
Labels
requirement Project requirements
Milestone

Comments

@uwardlaw
Copy link
Collaborator

  • Gitea needs to start up automatically without requiring button pressing
  • The data base needs to initialize without the current splash page
  • An admin user needs to start up automatically with an ssh key
@uwardlaw uwardlaw self-assigned this Oct 15, 2021
@uwardlaw uwardlaw changed the title Configure seamless gitea boot Configure automatic gitea boot from configuration file Oct 15, 2021
@uwardlaw
Copy link
Collaborator Author

Created the setupGitea.py and got far enough to make tokens.

ROUS is a private repository, and therefore requires a deploy key on Control. Then, the API calls need to be made to setup the mirror repository

@uwardlaw
Copy link
Collaborator Author

  • Setting the token and then looking it up again because Gitea (rightfully) does not pull the full token when searched. This is different from Ansible.
  • Was able to call API, but a private git (ROUS) requires SSH authentication. Knew this, but not confident in how to get the key in there

@uwardlaw
Copy link
Collaborator Author

@uwardlaw
Copy link
Collaborator Author

uwardlaw commented Oct 21, 2021

The #1 is as subset of this issue.

@uwardlaw
Copy link
Collaborator Author

uwardlaw commented Oct 25, 2021

  • Instead of pulling ROUS from Github, we will pull down a local copy (this is good for dev anyway) and then restart.sh will copy it into control-services/data/gitea/git/
  • The repo will only updated when the copy on the host updates
  • Need to create organization so the added repo can have an owner before users are created
  • Need import path is file:///data/git/rous
  • This works well, but because the config user is the owner of the repo, the config user can't be deleted anymore
  • The config user will now need to be a real user that stays (instead of being deleted after API calls)
  • Started adding password ask / check support to setupGitea.py
  • Code mostly works, but not extensively tested for errors yet

@uwardlaw
Copy link
Collaborator Author

@uwardlaw uwardlaw added this to the v0 milestone Oct 30, 2021
@uwardlaw uwardlaw added the requirement Project requirements label Oct 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
requirement Project requirements
Projects
None yet
Development

No branches or pull requests

1 participant