Open a-t-0 opened 3 years ago
Current implemented arguments:
install_gitlab.sh -s -r
-s
installs GitLab server.
-r
installs GitLab runner.
TODO:
-d
Include prompt for GitHub pwd to create a deploy key for the user in the repository with the build statuses.-c
This arguments allows setting the build status on commits, using a personal access code
(With minimal permissions). See #75 -b
Allows for setting up a boot script that starts the GitLab server in the background to continuously monitor your GitHub, to automatically trigger new builds on new commits.-t
Sets up tor website for GitLab server.
(assuming you are installing this on a server, and that the server can occasionally be accessed
Assumptions
n
websites, make it into a separate issue.Usage
First time you run:
That installs the following options:
ssh
1.1 If it is not, it curls the ssh-setup repository and sets up an ssh client with some host/other device.
Tor
1.1 If it is not, it installs the tor connection requirements that allow for ssh and 2/
n
(TODO) websites.tor_ssh
Combines tor and ssh arguments in the right order.
2. Optional: monitor tor connection and reboot device if tor connection is dropped.
Website
GitLab
5.1 Automatically adds GitLab cluster token to the runner, so that the runner only works for your own cluster, and does not start running for someone else.
GitLab Backup
1.1 If the right files are present:
1.1.1 It makes a new backup of the current GitLab cluster.
1.1.2 Then it overwrites the existing GitLab cluster (e.g. repositories, users etc) with the presented backup.
1.2. If the files are not present, it throws an error to the user, asking the user to present the necessary files.
gitlab_repo_backup0
1.1 No, don't restore this repository, just restore the GitLab cluster.
1.2 Only restore this repository if it does not already exist in the GitLab cluster that will be restored.
1.3 Overwrite it at all costs even if it already exists in the GitLab cluster.
3.1 If it does not, it restores the backup of the repository.
3.2. If it does,
3.2.1 It prompts the user for permission to overwrite the repository.
3.2.2 It creates a dated and timed backup of the existing repository.
3.2.3 It overwrites the existing repository with the backup repository.