Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bob.devtools
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
bob
bob.devtools
Commits
57e848be
Commit
57e848be
authored
4 years ago
by
André Anjos
Browse files
Options
Downloads
Patches
Plain Diff
[doc] Update mac-ci installation instructions
parent
a6fed750
No related branches found
No related tags found
No related merge requests found
Pipeline
#47181
passed
4 years ago
Stage: build
Stage: deploy
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
doc/links.rst
+1
-0
1 addition, 0 deletions
doc/links.rst
doc/macos-ci-install/install-homebrew.sh
+6
-7
6 additions, 7 deletions
doc/macos-ci-install/install-homebrew.sh
doc/macos.rst
+15
-8
15 additions, 8 deletions
doc/macos.rst
with
22 additions
and
15 deletions
doc/links.rst
+
1
−
0
View file @
57e848be
...
...
@@ -21,3 +21,4 @@
.. _conda channel: https://www.idiap.ch/software/bob/conda/
.. _webdav configuration: https://gitlab.idiap.ch/bob/private/wikis/how-to-upload-resources
.. _pre-commit: https://pre-commit.com/
.. _oh-my-zsh: https://github.com/ohmyzsh/ohmyzsh
This diff is collapsed.
Click to expand it.
doc/macos-ci-install/install-homebrew.sh
+
6
−
7
View file @
57e848be
...
...
@@ -11,13 +11,12 @@ if [[ $EUID == 0 ]]; then
exec
su
${
1
}
-c
"
$(
which bash
)
${
0
}
"
fi
ruby
-
e
"
$(
curl
-fsSL
https://raw.githubusercontent.com/Homebrew/install/
master
/install
)
"
</dev/null
/bin/bash
-
c
"
$(
curl
-fsSL
https://raw.githubusercontent.com/Homebrew/install/
HEAD
/install
.sh
)
"
brew
=
/usr/local/bin/brew
if
[
!
-x
${
brew
}
]
;
then
brew
=
/opt/homebrew/bin/brew
fi
${
brew
}
install
curl git coreutils
ba
sh
ba
sh-completion highlight neovim tmux htop python@3
${
brew
}
install
curl git coreutils
z
sh
z
sh-completion
s zsh-syntax-highlighting
highlight neovim tmux htop python@3
pygments
${
brew
}
link
--force
curl
#keg-only recipe
${
brew
}
cask
install
mactex
# LaTeX slides/beamer dependencies
pip
=
/usr/local/bin/pip3
${
pip
}
install
pygments
${
brew
}
install
--cask
mactex
This diff is collapsed.
Click to expand it.
doc/macos.rst
+
15
−
8
View file @
57e848be
...
...
@@ -124,7 +124,8 @@ Building the reference setup
so they are slightly higher than that new limit with ``sudo sysctl -w
kern.maxfilesperproc=10240`` and ``sudo sysctl -w kern.maxfiles=12288``
respectively, for example.
8. Enter as gitlab user and install/configure the `gitlab runner`_:
8. Install oh-my-zsh_ for both the admin and gitlab users. Set ZSH theme "ys".
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::
...
...
@@ -148,11 +149,11 @@ Building the reference setup
builds_dir = "/Users/gitlab/builds" # set this or bugs occur
cache_dir = "/Users/gitlab/caches" # this is optional, but desirable
shell = "bash"
9
. While at the gitlab user, install `Docker for Mac`_. Ensure to set it up to
start at login. In "Preferences > Filesystem Sharing", ensure that
`/var/folders` is included in the list (that is the default location for
temporary files in macOS).
1
0
. Reboot the machine. At this point, the gitlab user should be auto-logged
10
. While at the gitlab user, install `Docker for Mac`_. Ensure to set it up to
start at login. In "Preferences > Filesystem Sharing", ensure that
`/var/folders` is included in the list (that is the default location for
temporary files in macOS).
1
1
. Reboot the machine. At this point, the gitlab user should be auto-logged
and the runner process should be executing. Congratulations, you're done!
...
...
@@ -165,8 +166,14 @@ updated regularly (once a week). To do so, setup a cronjob like the following:
.. code-block:: text
MAILTO=""
SHELL=/bin/bash
00 12 * * 0 /bin/bash <(curl -s https://gitlab.idiap.ch/bob/bob.devtools/raw/master/doc/macos-ci-install/update-ci.sh) 2>&1 | mailx -s "Software update (hostname|cimacosx)" your.email@example.com
00 12 * * 0 /bin/bash /Users/admin/cron.sh
Inside the file ``/Users/admin/cron.sh``, put the following contents:
.. code-block:: sh
/bin/bash <(curl -s https://gitlab.idiap.ch/bob/bob.devtools/raw/master/doc/macos-ci-install/update-ci.sh) 2>&1 | mailx -s "Software update (hostname|cimacosx)" your.email@idiap.ch
.. note::
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment