Git Product home page Git Product logo

homebrew-tap's Introduction

Homebrew tap

Our formulas for Homebrew

Table of contents

Installation ๐Ÿ’ป

github-runner from our tap

brew install ydataai/tap/github-runner

Formulas

github-runner

This is a formula to install github actions runner

The formula copies the bin and external folders provided by Github into the libexec folder in the Cellar path created to this formula. Instead of adding Runner.Listener binary probided by Github to the binaries folder, it creates a symlink called github-runner which is then added to the binaries folder, usually /usr/local/bin. The Github runner is prepared to create all the configuration files in the same folder where it is installed, which means that all the files will be placed in the libexec folder, which from our point of view is not ideal, they should be on an etc folder or in the user home folder, but for now is what we can do.

Configuration ๐Ÿ› 

The configuration is basically the same provided by Github docs, but instead of use Runner.Listener or ./config.sh you should use github-runner configure. (basically ./config.sh script runs Runner.Listener under the hood)

As example, assuming that you have followed the github doc Adding self-hosted runners and you have the URL and the TOKEN, run the following command replacing the values:

github-runner configure --url <URL> --token <TOKEN>

Follow the indications provided by the tool to configure your runner. Those are the same as if you ran ./config.sh as mentioned by Github.

Service

The formula supports homebrew services so you can easily add and manage github-runner through launchd.

Make sure you configure the runner before start the service, otherwise it will not work, the service depends on a file created by the configuration (YET).

To start the runner and register it in launchd

brew services start github-runner

To stop the runner and un-register it in launchd

brew services stop github-runner

Disclaimer โš ๏ธ

YData only provides the formula to make it easy to install the runner os macOS environments, it doesn't modify the content of the runner or has any affiliation with the creation of the runner.

Contributing ๐Ÿ™

You are more than welcome to submit any kind of contribution, issues, pull requests or just feedback. ๐Ÿ™‡โ€

About ๐Ÿ‘ฏโ€โ™‚๏ธ

With โค๏ธ from YData Development team

homebrew-tap's People

Contributors

portellaa avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

homebrew-tap's Issues

Fix service fail if no configure was ran

The service depends on a file created after the configuration which basically wraps the execution of js code using node.
It also traps signals.

The idea is to consider remove this dependency and just allow the user to create the service if no configure ran.

Wrap Runner.Listener in a bash script

Try to move the configuration files into proper locations instead of installation folder

Perhaps wrap the Runner.Listener in a shell script with some directory dancing instead of just symlink could do some dark magic ๐Ÿคฃ.

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.