Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
bob.devtools
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
5
Issues
5
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
bob
bob.devtools
Commits
8a2923df
Commit
8a2923df
authored
Jan 22, 2021
by
André Anjos
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve gitlab-runner installation with homebrew
parent
c999cfde
Pipeline
#47263
failed with stages
in 8 minutes and 11 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
36 additions
and
11 deletions
+36
-11
doc/macos-ci-install/install-gitlab-runner.sh
doc/macos-ci-install/install-gitlab-runner.sh
+1
-3
doc/macos-ci-install/install-homebrew.sh
doc/macos-ci-install/install-homebrew.sh
+2
-2
doc/macos.rst
doc/macos.rst
+33
-6
No files found.
doc/macos-ci-install/install-gitlab-runner.sh
View file @
8a2923df
#!/usr/bin/env bash
set
-eox
pipefail
LOCATION
=
/usr/local/bin/gitlab-runner
curl
--output
${
LOCATION
}
https://gitlab-runner-downloads.s3.amazonaws.com/latest/binaries/gitlab-runner-darwin-amd64
chmod
+x
${
LOCATION
}
brew services start gitlab-runner
doc/macos-ci-install/install-homebrew.sh
View file @
8a2923df
...
...
@@ -17,6 +17,6 @@ if [ ! -x ${brew} ]; then
brew
=
/opt/homebrew/bin/brew
fi
${
brew
}
install
curl git coreutils highlight neovim tmux htop python@3 pygments
${
brew
}
link
--force
curl
#keg-only recipe
${
brew
}
install
curl git coreutils highlight neovim tmux htop python@3 pygments
gitlab-runner
${
brew
}
services list
#forces the installation of "services" support
${
brew
}
install
--cask
mactex
doc/macos.rst
View file @
8a2923df
...
...
@@ -77,6 +77,7 @@ Building the reference setup
https://gitlab.idiap.ch/bob/bob.devtools via a zip file download)::
$ cd
$ curl -o bob.devtools-master.zip https://gitlab.idiap.ch/bob/bob.devtools/-/archive/master/bob.devtools-master.zip
$ unzip ~/Downloads/bob.devtools-master.zip
$ cd bob.devtools-master/doc/macos-ci-install
$ sudo ./admin-install.sh 10.9 gitlab
...
...
@@ -125,17 +126,43 @@ Building the reference setup
kern.maxfilesperproc=10240`` and ``sudo sysctl -w kern.maxfiles=12288``
respectively, for example.
8. Install oh-my-zsh_ for both the admin and gitlab users. Set ZSH theme "ys".
Add the following bits to ``.zshrc`` to ensure completions work::
# Enables homebrew auto-completions for zsh (add: right at the top!)
if type brew &>/dev/null; then
FPATH=$(brew --prefix)/share/zsh/site-functions:$FPATH
ZSH_DISABLE_COMPFIX="true"
fi
...
# plugins (add: just before sourcing oh-my-zsh)
plugins=()
plugins+=(docker)
plugins+=(git)
plugins+=(gitfast)
plugins+=(python)
plugins+=(themes)
plugins+=(z)
plugins+=(zsh-syntax-highlighting)
plugins+=(history-substring-search)
9. Enter as gitlab user and install/configure the `gitlab runner`_:
Configure the runner for `shell executor`_, with local caching. As
``gitlab`` user, execute on the command-line::
$ gitlab-runner stop
$ vi .gitlab-runner/config.toml
$ gitlab-runner start
Once that is set, your runner configuration should look like this (remove
comments if gitlab does not like them)::
$ brew services start gitlab-runner
# the command above is bogus - it will use the "admin" user home dir
# you need to reconfigure it to fix this
$ /bin/launchctl stop /Users/gitlab/Library/LaunchAgents/homebrew.mxcl.gitlab-runner.plist
$ /bin/launchctl unload /Users/gitlab/Library/LaunchAgents/homebrew.mxcl.gitlab-runner.plist
$ vim /Users/gitlab/Library/LaunchAgents/homebrew.mxcl.gitlab-runner.plist
# change all occurences of "admin" with "gitlab"
$ /bin/launchctl load /Users/gitlab/Library/LaunchAgents/homebrew.mxcl.gitlab-runner.plist
$ /bin/launchctl start /Users/gitlab/Library/LaunchAgents/homebrew.mxcl.gitlab-runner.plist
# n.b.: re-executing "brew services start gitlab-runner" will reset the file above
Once that is set, your runner configuration (``~/.gitlab-runner/config.toml``) should look like this (remove comments if gitlab does not like them)::
concurrent = 8 # set this to the number of cores available
check_interval = 10 # do **not** leave this to zero
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment