Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
bitmask-dev
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
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
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
leap
bitmask-dev
Commits
d00b1ed7
There was a problem fetching the pipeline summary.
Commit
d00b1ed7
authored
7 years ago
by
Kali Kaneko
Browse files
Options
Downloads
Patches
Plain Diff
document the virtualbox ci setup
parent
7ab3e74c
Branches
tests/ox
No related tags found
No related merge requests found
Pipeline
#
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs/hacking/osx-virtualbox.rst
+68
-0
68 additions, 0 deletions
docs/hacking/osx-virtualbox.rst
with
68 additions
and
0 deletions
docs/hacking/osx-virtualbox.rst
0 → 100644
+
68
−
0
View file @
d00b1ed7
.. _osx-vms:
OSX Virtualization
============================================
If you have acess to a OSX machine, you can setup virtual machines for setting up a gitlab runner.
Base Image
----------
.. note: convert this to ansible script or similar.
* Install homebrew (via the curl | sh script).
Install basic packages::
brew install gpg1 wget openssl cryptography python
* Modify $PATH (.bash_profile), source it or login again to activate the PATH.
* Add a symlink from gpg1 to ``/usr/bin/gpg``
Install tox for the tests::
pip install tox
* Copy ssh keys to access this machine.
* TODO - install virtualbox guest extensions.
Gitlab runner (on host)
-----------------------
* install gitlab-runner for osx [link]
* install virtualbox in the host machine
* configure ``.gitlab-runner/config.toml``
Run::
gitlab-runner run
Debug mode::
gilab-runner --debug run
Virtualbox cheatsheet
---------------------
Some useful commands::
# list
VBoxManage list vms
# only running
VBoxManage list runningvms
# start headless
VBoxManage startvm yosemite --type headless
# poweroff
VBoxManage controlvm yosemite poweroff
gitlab-runner keeps a snapshot with the name 'Base State', so it seems this is
the one you have to be sure that you modify with all the software you need.
It seems to me that if you just delete the first 'Base State' snapshot in the
snapshot sequence, it take the most recent state (virtualbox does a merge).
This is how ``gitlab-runner`` accesses ssh::
VBoxManage modifyvm yosemite-runner-deadbeef --natpf1 gustssh,tcp,127.0.0.1,99999,,22
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