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 14:27] – mohamed_adda | elosys:gitlab_ci-cd [2024/11/10 19:37] (current) – mohamed_adda | ||
---|---|---|---|
Line 73: | Line 73: | ||
===== Gitlab Runner Installation Steps ===== | ===== Gitlab Runner Installation Steps ===== | ||
+ | ====Step 1: Adding Repositories with Bash Script ===== | ||
+ | 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 by following the official documentation: | ||
+ | |||
+ | ==== Step 3: Registering GitLab Runner ==== | ||
+ | |||
+ | 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 the runner, execute the following command: | ||
+ | |||
+ | 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 = " | ||