As the Synology DSM uses Docker to run GitLab, we can use Docker as well to install GitLab Runner. For this, connect to the Synology using SSH:
ssh <admin-user>@<synology> -p <port>
To connect to the GitLab container, you can use the following command to open:
docker exec -it synology_gitlab /bin/bash
You might adjust the name of the GitLab docker depending on your system.
To open the console, run:
gitlab-rails console
When GItLab is installed using the DSM package manager, just use the following commands:
cd /home/git/gitlab/bin
./rails console production
Commands for the console
Below are some examples how to use the GitLab console.
Check the mail delivery method
ActionMailer::Base.delivery_method
Output might be: => :smtp
Check the smtp settings
ActionMailer::Base.smtp_settings
Output might be: => {:address=>"example.com", :port=>25, …
Testing the SMTP configuration (see documentation)
Notify.test_email('mail@example.com', 'Subject', 'Mail Body').deliver_now