Coder Social home page Coder Social logo

gitlab-runner-tart's Introduction

🚨 Maintainance notice 🚨

This project has been replaced by a more official implementation of cirruslabs at https://github.com/cirruslabs/gitlab-tart-executor and will not be maintained anymore.

Run GitLab Runner jobs with macOS virtualization for Apple Silicon

What is this?

A set of configuration files which allows gitlab-runner to make use of the macOS virtualization framework. Under the hood, these scripts use the tart commandline tool to provision VMs for jobs. The macOS virtualization framework allows running two macOS virtual machines in parallel.

Installation

Clone this repository onto your build machine and register a custom gitlab-runner to your instance. You need to adjust the paths in prepare_exec, run_exec and cleanup_exec which can also be found in gitlab-runner-example-config.toml.

Install dependencies: brew install gitlab-runner daemonize cirruslabs/cli/tart.

Ensure your host system has an SSH private key. If not, create one using ssh-keygen -t ed25519.

Configurations

References

gitlab-runner-tart's People

Contributors

sapfeer0k avatar theoriginalgri avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

gitlab-runner-tart's Issues

Small adjustments

Hi guys,
I've tried the runner it works almost out of the box. Thanks for sharing this amazing piece of software.

I really want to improve the process of setting the runner and I think it is worth to mention in the README.md that a private key needs to be generated before using this executor.

Second improvement, why would it need to use env variable CUSTOM_ENV_TART_IMAGE in base.sh? Would it be better to use built-in gitlab variable CUSTOM_ENV_CI_JOB_IMAGE? Then in the .gitlab-ci.yml configuration image: can be specified and the configuration will look more similar to other systems:

build-macos:
  extends: .buildMacOS
  image: ghcr.io/cirruslabs/macos-monterey-xcode:14
  tags: [ macos]

If you ok with this approach I could create a pull request.

Mounting host directories

Hello,

First of all, thank you for taking the time to put this project together, it’s very useful!

I’m wondering if it’s currently possible to mount directories from the host into the guest using tart’s --dir option on Ventura, similar to how Docker volumes can be mounted with the docker executor? If not, would you be interested in a PR to implement this?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.