Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
elosys:gitlab_ci-cd [2024/11/10 19:10] – mohamed_adda | elosys:gitlab_ci-cd [2024/11/10 19:37] (current) – mohamed_adda | ||
---|---|---|---|
Line 76: | Line 76: | ||
Download and run an automatic bash script that adds the necessary repositories to prepare for installing GitLab Runner on the system. | Download and run an automatic bash script that adds the necessary repositories to prepare for installing GitLab Runner on the system. | ||
- | ==== Step 2: Installing GitLab Runner ==== You can install GitLab Runner on your system | + | ==== Step 2: Installing GitLab Runner ==== |
+ | |||
+ | You can install GitLab Runner on your system | ||
==== Step 3: Registering GitLab Runner ==== | ==== Step 3: Registering GitLab Runner ==== | ||
- | 1.Log in to your GitLab | + | 1. ''' |
+ | |||
+ | 2. ''' | ||
+ | - Go to your project in GitLab. | ||
+ | - In the left sidebar, select ''' | ||
+ | |||
+ | 3. ''' | ||
+ | - Scroll to the ''' | ||
+ | - Under ''' | ||
+ | |||
+ | 4. ''' | ||
+ | - On the server where you wish to register | ||
+ | |||
+ | sudo gitlab-runner register | ||
+ | |||
+ | 5. ''' | ||
+ | - When prompted, provide: | ||
+ | - ''' | ||
+ | - ''' | ||
+ | - ''' | ||
+ | - ''' | ||
+ | - ''' | ||
+ | |||
+ | 6. ''' | ||
+ | - Return to ''' | ||
+ | - Verify that the runner is listed under ''' | ||
+ | - | ||
+ | === GitLab Runner Docker Executor Configuration === | ||
+ | |||
+ | == File Location == | ||
+ | To edit the configuration file, open it with nano: | ||
+ | |||
+ | sudo nano ~/ | ||
+ | |||
+ | | ||
+ | [runners.docker] | ||
+ | tls_verify = false | ||
+ | image = " | ||
+ | dns = [" | ||
+ | extra_hosts = [" | ||
+ | privileged = false | ||
+ | disable_entrypoint_overwrite = false | ||
+ | oom_kill_disable = false | ||
+ | disable_cache = false | ||
+ | volumes = ["/ | ||
+ | shm_size = 0 | ||
+ | network_mode = " | ||