🌐
GitLab
docs.gitlab.com › gitlab docs › install › install gitlab runner › macos
Install GitLab Runner on macOS | GitLab Docs
Use the shell executor for iOS and macOS builds. For security details, see security for shell executor. ... Reboot your system. The gitlab-runner install command creates a LaunchAgent plist at ~/Library/LaunchAgents/gitlab-runner.plist and registers it with launchctl.
🌐
GitLab
docs.gitlab.com › gitlab docs › install › configure gitlab runner › macos setup
Set up macOS runners | GitLab Docs
When you’re done, GitLab Runner will be running on a macOS machine and an individual runner will be ready to process jobs. Change the system shell to Bash. Install Homebrew, rbenv, and GitLab Runner.
Discussions

Has anyone set up macOS GitLab Runners on an EC2 instance?
Beware. MacOS in AWS is pricey, mac2.metal is $15/day or almost $500/mo (TLDR: You are seriously better off just buy a macmini and having it run in someones house). Plus all mac instances have a "24-hour minimum allocation" - so there is no "I'll just spin this up for a quick build". I'd suggest installing with either Docker or via Brew: https://formulae.brew.sh/formula/gitlab-runner#default I can't recall xcode requiring anything other than license acceptance. Just running `xcode-select --install` on a CLI. There is a popup doing that, but you can find various threads on how to automatically accept the dialogue. Ex: https://forums.developer.apple.com/forums/thread/698954 More on reddit.com
🌐 r/gitlab
6
2
August 24, 2024
macos - Gitlab Runner on mac pro - Stack Overflow
I've just finished installing gitlab runner on my m1 pro. I have registered a runner 2 different ways with and without sudo. Here's what I have: me@MacBook-Pro pipelinetests % gitlab-runner list Runtime platform arch=arm64 os=darwin pid=49817 revision=bd40e3da version=14.9.1 Listing configured ... More on stackoverflow.com
🌐 stackoverflow.com
Siloed MacOS Gitlab runner
I have bad news, you are correct that there is only really one way to do it. What we did was ensured the workplace was always cleaned up behind the runs (cacheing happens in s3). This got rid of the overlapping dependancies and whatnot. We had to fiddle around with it a lot to get it to work appropriately. Once it was working we gave up on trying to innovate any farther. The MacOS runners are not fun to maintain, and you've got to keep their version of OS up to date or suddenly you'll be getting cert failures. More on reddit.com
🌐 r/gitlab
4
2
May 4, 2023
Running GitLab locally on Apple Silicon
Check out https://gitlab.com/gitlab-org/omnibus-gitlab/-/issues/5673 More on reddit.com
🌐 r/gitlab
3
2
January 13, 2023
🌐
Medium
medium.com › swlh › how-to-set-up-gitlab-runner-for-gitlab-ci-on-macos-8cd80e5bad43
How to set up gitlab-runner for GitLab CI on macOS | by Niklas Klein | The Startup | Medium
May 8, 2020 - https://gitlab.com/): > https://gitlab.com/ Please enter the gitlab-ci token for this runner: // There are two options to consider for the token // - Group // the runner is available to all projects of this group // https://gitlab.com/groups/[group]/-/settings/ci_cd // - Project // the runner is only available to a specific project // https://gitlab.com/[group]/[project]/-/settings/ci_cd > XXX Please enter the gitlab-ci description for this runner: > [XXX]: Please enter the gitlab-ci tags for this runner (comma separated): > Please enter the executor: ssh, virtualbox, docker+machine, kubernetes, parallels, shell, docker-ssh, docker-ssh+machine, custom, docker: > docker Please enter the default Docker image (e.g.
🌐
Gitlab
gitlab-docs-d6a9bb.gitlab.io › install › install gitlab runner › macos
Install GitLab Runner on macOS | GitLab
It’s worth noting that macOS also has LaunchDaemons, services running completely in background. LaunchDaemons are run on system startup, but they don’t have the same access to UI interactions as LaunchAgents. You can try to run the Runner’s service as a LaunchDaemon, but this mode of operation is not supported. You can verify that GitLab Runner created the service configuration file after executing the install command, by checking the ~/Library/LaunchAgents/gitlab-runner.plist file.
🌐
Symflower
symflower.com › en › company › blog › 2021 › macos-ci-for-gitlab
How to set up a MacOS CI for Gitlab
December 15, 2021 - Due to the way how MacOS distinguishes between SSH and GUI sessions, the GitLab Runner can officially only be installed using the GUI. (We found a way to install the GitLab Runner with just an SSH connection.
🌐
Git
git.nrw › en › courses › ci_beginner_course › lesson_5_3
Installing GitLab Runner on macOS | git.nrw
# Download the binary for your ... the user who will run the runner # Register the runner (steps below), then run cd ~ gitlab-runner install gitlab-runner start...
🌐
GitLab
docs.gitlab.com › gitlab docs › install › install gitlab runner
Install GitLab Runner | GitLab Docs
For security and performance reasons, install GitLab Runner on a machine separate from the machine that hosts your GitLab instance.
Find elsewhere
🌐
MacPorts
ports.macports.org › port › gitlab-runner
Install gitlab-runner on macOS with MacPorts
To install gitlab-runner, run the following command in macOS terminal (Applications->Utilities->Terminal)
🌐
Embedded Inventor
embeddedinventor.com › home › complete guide to setting up gitlab locally on mac..!!
Complete Guide To Setting Up GitLab Locally On Mac..!!
July 25, 2020 - I recommend you to follow the “manual installation” method shown in the screenshot above and not the “homebrew” one since the manual method is the official one. Also for Downloading the GitLab runner, you just need the first 2 out of 4 steps (rectangles 1 and 2) as shown in the screenshot above. These 2 steps are fairly simple, you just need to copy-paste the commands into your Mac’s terminal.
🌐
GitLab
docs.gitlab.com › gitlab docs › use gitlab › use ci/cd to build your application › runners › gitlab-hosted runners › macos
Hosted runners on macOS | GitLab Docs
.macos_saas_runners: tags: - saas-macos-medium-m1 image: macos-26-xcode-26 before_script: - echo "started by ${GITLAB_USER_NAME} / @${GITLAB_USER_LOGIN}" build: extends: - .macos_saas_runners stage: build script: - echo "running scripts in the build job" test: extends: - .macos_saas_runners stage: test script: - echo "running scripts in the test job" Before you can integrate GitLab with Apple services, install to a device, or deploy to the Apple App Store, you must code sign your application.
🌐
GitLab
gitlab.com › gitlab.org › gitlab-runner › repository
docs/install/osx.md · f8d205dbf0a646eeb5cf74bb82a41218273f5745 · GitLab.org / gitlab-runner · GitLab
September 30, 2024 - If you followed these instructions, the GitLab Runner configuration file (config.toml) is in /Users/<username>/.gitlab-runner/. Learn more about configuring runners. For more information, see the glossary. NOTE: The service needs to be installed from a Terminal window logged in as your current user. Only then can you manage the service. To sign in as your current user, run the command su - <username> in the terminal. You can obtain your username by running the command ls /users. Currently, the only proven way for it to work in macOS is by running the service in user-mode.
🌐
Reddit
reddit.com › r/gitlab › has anyone set up macos gitlab runners on an ec2 instance?
r/gitlab on Reddit: Has anyone set up macOS GitLab Runners on an EC2 instance?
August 24, 2024 -

Hi everyone,

Has anyone set up a GitLab Runner using a macOS EC2 instance? I understand that launching a macOS instance requires a dedicated host, but I'm curious if anyone has successfully configured it based on the documentation here: https://docs.gitlab.com/runner/install/osx.html.

There isn't much information available online beyond the GitLab docs, so I'd love to hear about any challenges you faced during the setup, especially with installing Xcode. I read that 2FA is required to download and install Xcode, so I'm interested in how you handled this in your user data script. What executor was used to set up the runner?

Thanks in advance for any insights!

Top answer
1 of 3
2
Beware. MacOS in AWS is pricey, mac2.metal is $15/day or almost $500/mo (TLDR: You are seriously better off just buy a macmini and having it run in someones house). Plus all mac instances have a "24-hour minimum allocation" - so there is no "I'll just spin this up for a quick build". I'd suggest installing with either Docker or via Brew: https://formulae.brew.sh/formula/gitlab-runner#default I can't recall xcode requiring anything other than license acceptance. Just running `xcode-select --install` on a CLI. There is a popup doing that, but you can find various threads on how to automatically accept the dialogue. Ex: https://forums.developer.apple.com/forums/thread/698954
2 of 3
1
I have a mac mini for a build server, so I haven't used Mac EC2 instances for that purpose (but we do have the glab runner on the mini, producing and testing native mac builds from our commit pipeline). However I wonder if the need for 2FA to install XCode possibly refers to those who install it through the mac app store (when first logging into the app store with your Apple ID, before doing any downloads, it might want 2FA via either sms or to an existing Apple device under the same Apple ID). There are other ways to install xcode, however, which may be more suited to running from an unattended script. I'd check out this: https://github.com/sebsto/xcodeinstall — I believe it has you do a manual authentication once to the developer site, then stores the long-lived session cookie in AWS Secrets Manager, from which it can be grabbed for future invocations. Eventually this may expire and you'd need to login and 2FA again. Another option is to download Xcode from Apple's webserver directly as a "xip" archive, see here https://developer.apple.com/download/all/?q=xcode (Apple ID login required, but no developer account needed). Once uncompressed, this archive will leave behind XCode.app which you can simply move or copy into /Applications. You could presumably keep this archive somewhere like S3, and have your mac EC2's userdata script pick it up from there rather than downloading again from Apple every time you spin up an instance. Once installed, you can install required SDKs and Simulators etc from inside XCode itself, or from CLI/scripts ( https://developer.apple.com/documentation/xcode/installing-additional-simulator-runtimes ) Hope that helps.
🌐
Gitlab
gitlab-docs-d6a9bb.gitlab.io › install › configure gitlab runner › macos setup
Set up macOS runners | GitLab
When you’re done, GitLab Runner will be running on a macOS machine and an individual runner will be ready to process jobs. Change the system shell to Bash. Install Homebrew, rbenv, and GitLab Runner.
🌐
Medium
medium.com › macoclock › setting-up-gitlab-runner-on-mac-f28f55c72765
GitLab CI -Setting up GitLab Runner on Mac | by Maria Sak | Mac O’Clock | Medium
June 11, 2020 - You need Maintainer or Owner permission to access the project settings in GitLab. Actually for this tutorial you even not necessarily need Xcode project, but we want to work further on it, don't we? It is possible to install the runner manually or with Homebrew (you can read all the details here).
🌐
Cloud-runner
documentation.cloud-runner.com › how can i set up a gitlab runner for ios/macos projects?
How can I set up a GitLab runner for iOS/macOS projects? | Cloud-Runner's Documentation
Fear not, it's a breeze! Open up your terminal, run the registration command, and follow the prompts. Easy peasy! ... During the registration process, you'll be asked to choose an executor.
🌐
Medium
medium.com › @anushapalle11 › using-local-mac-machine-as-self-managed-runners-on-gitlab-b5f9d5743ecb
Using Local Mac machine as self-managed runners on Gitlab | by Anusha Palle | Medium
November 7, 2023 - Note: If you followed these instructions, the GitLab Runner configuration file (config.toml) is in /Users/<username>/.gitlab-runner/. Congrats !! you are ready to run your cicd jobs on your own self managed runner 🎉 ... Container runtime needs to be in running state all the time right from installation of gitlab-runner
🌐
YouTube
youtube.com › shorts › GJj6nGQFSnw
How To Set Up A MacOS GitLab Runner, Registration And Tags - YouTube
Project source code:https://github.com/JoeyAlpha5/gitlab-runnerMacOS Docker installation steps:https://docs.docker.com/desktop/install/mac-install/▬▬▬▬▬▬ Dea
Published: July 28, 2024