If you are using Gitlab CI as your CI tool, Veertu provides and maintains a Gitlab CI Runner for Anka Build. The runner connects Gitlab to anka controller and builds your project upon the VM . You can run the runner on any machine.
Now you have a base image to use for GitLab CI.
There are two options to activate the runner.
1. Go to your project settings→ CI/CD → runner, and you will see this screen.
2. Run docker container with the “anka-gitlab runner” image, with the following command. Url and Token should be taken from the location of the above snapshot.
docker run -t asafg6/gitlab-anka-runner --executor anka
--url http://YOUR_GITLAB_HOST --registration-token ** --ssh-user
VM_USER --ssh-password VM_PASSWORD --anka-controller-address
http://ANKA_CLOUD_ADDRESS --anka-image-id IMAGE_ID --name my-anka-runner
anka-image-id
- This is the UUID of the VM template you want to use.ssh-user
- ssh user created in the VM template. You can use the default user ‘anka’ that is createdssh-password
- ssh user password created in the VM template.* `anka-tag`- value use a specific tag.
* `anka-node`- id value run on a specific node.
* `anka-priority` - value override the task's default priority.
* `anka-group-id` - value run on a specific node group.
* `anka-keep-alive-on-error` - Keep the VM alive in case of an error for debugging purposes.
3. Refresh the gitlab browser page, your runner should show under “the runner activated for this project”
*if the runner is on an AWS instance you will need to allow the AWS instance public IP in its own inbound rules- so the runner will be able to connect to the instance.
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.