-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
39 instruction mac #130
base: master
Are you sure you want to change the base?
39 instruction mac #130
Conversation
Setting the networking part on MacOS did not work with the setting on Linux ubuntu. The best I could find is to add a second adapter and set it to Host-only Adapter. When a VM is started an IP address is assigned to it 192.168.1.XXX. Log using tester account and get the acctual address using ifconfig
changed the stat command . on Mac it does not support -c option
minor changes to the ubuntu guide. the guide works on MacOS
```shell | ||
> docker --version | ||
|
||
Docker version 19.03.11-ce, build 42e35e61f3 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is your docker version the same?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes that was the version I tested with I have now updated to Docker version 19.03.12, build 48a66213fe
## Prerequisites | ||
Install Docker: https://docs.docker.com/docker-for-mac/install/ | ||
for more information to get started with docker for MacOS https://docs.docker.com/docker-for-mac/ | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you need to follow post-installation steps?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually not, it just work directly. the only thing which does not work on MacOS is the Docker dashboard (still does not work for me) but we don't needed for self-hosted runner
The Docker image will create a user called ``tester`` with a password ``password``. If you want to change the default username and the password, you will need to adjust `<username>` and `<user password>` for the user which will be added to the Docker image. | ||
|
||
```shell | ||
docker build \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you need to use sudo
to run docker commands?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On Mac I did not have to use Sudo to issue docker commands, but when I installed docker, I got the message which required me to enter admin password to install docker.
prompt: "What is the GitHub repository for which you want to enable this self-hosted runner?" | ||
private: no | ||
- name: "TOKEN" | ||
prompt: "Please enter the GitHub Actions token for this workflow. Go to https://github.com/<org>/<repo>/settings/actions/add-new-runner and copy it from the 'Configure' section." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you need to merge master in to this branch to get updates from mater branch.
Also, as far as I remember, we updated this playbook for Ubuntu. Could you please check the updates?
|
||
## Prerequisites | ||
|
||
1. Install VirtualBox on the client: https://www.virtualbox.org/wiki/Linux_Downloads |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a download link for Linux.
|
||
## Server side configuration | ||
|
||
1. Create a new virtual machine in VirtualBox. It's recommended to give it at least 4 GB memory, 2 CPUs, and 20 GB disk space (dynamically allocated). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess the interface and the buttons are identical with Linux version. Are they?
Ansible is a tool with which you can do so-called _provisioning_, i.e. automated system administration of remote | ||
machines. We'll use it to set up the GitHub Actions runner. | ||
|
||
Install Ansible from Ubuntu's repositories: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are Ansible installation instructions for Ubuntu. Can you please add Mac instructions?
ansible --version | ||
``` | ||
|
||
(Find more information [here](https://docs.ansible.com/ansible/latest/installation_guide/intro_installation.html#installing-ansible-on-ubuntu)). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This link is for Ubuntu.
**Note: ``id_rsa`` is the private half of the SSH key pair; don't share it with anybody else.** | ||
|
||
```shell | ||
cd ubuntu-virtualbox/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it should be cd mac-os-virtualbox
### Generate SSH key pair | ||
|
||
Generate a key pair (files ``id_rsa`` and ``id_rsa.pub``) in directory | ||
[``/ubuntu-virtualbox/``](/ubuntu-virtualbox/) using RSA encryption: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These paths are for ubuntu guide.
UserKnownHostsFile /dev/null | ||
StrictHostKeyChecking no | ||
PasswordAuthentication no | ||
IdentityFile /home/verhoes/git/NLESC-JCER/linux_actions_runner/ubuntu-vagrant/.vagrant/machines/default/virtualbox/private_key |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This path is for ubuntu-vagrant guide.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you very much @AdamBelloum!
I requested some changes. It would be very nice if you could fix these.
@AdamBelloum are you planning to work on this PR? |
@AdamBelloum any updates? |
created guide for self-hosted runner using MacOS as a client side.