The goal of this document is to give you enough technical specifics to configure and run osx vms. When properly configured, it will automatically provision and terminate osx vms based on your Drone server’s build volume.
Prerequisites
Pre-build image are available in the AWS marketplace from Anka, just search of “anka” or using the following step’s, use your own mac instance:
Recommend Specs:
- Volume size: 500GB
- Volume type: gp3
- Iops: 6000
If you find that the disk has been split over multiple volumes then do the following:
Anka setup : Full documentation can be found at: https://docs.veertu.com/anka/intel/
Download Anka:
|
|
Download ISO:
|
|
Select version:
|
|
Activate license
|
|
Accept the EULA license
|
|
Create the VM:
|
|
Run this to get the ID of the VM which has recently been created.
|
|
Install the following on the VM:
|
|
Please note you can use the run command to execute commands inside of VM from the host.
If using a paid license version you can then suspend the VM & all the vm’s will startup from a suspended state - providing a faster provisioning time
Installation
Download Binary
|
|
Install Tmux
|
|
Create your env file:
The VM runner can be configured using environment variables. This article references the below configuration options. See Reference for a complete list of configuration options.
-
- DRONE_RPC_HOST
- provides the hostname (and optional port) of your Drone server. The runner connects to the server at the host address to receive pipelines for execution.
-
- DRONE_RPC_PROTO
- provides the protocol used to connect to your Drone server. The value must be either http or https.
-
- DRONE_RPC_SECRET
- provides the shared secret used to authenticate with your Drone server. This must match the secret defined in your Drone server configuration.
-
- DRONE_MIN_POOL_SIZE (optional)
- provides the minimum size of the pool. The pool will not shrink below this size. The default is 1.
-
- DRONE_MAX_POOL_SIZE (optional)
- provides the maximum size of the pool. The pool will not grow above this size. The default is 2.
Create pool file:
Example pool file
|
|
To start runner and write to external log:
|
|