Giter Site home page Giter Site logo

gh-runner's People

Contributors

kwasd avatar leshikus avatar

Watchers

 avatar

Forkers

kwasd

gh-runner's Issues

When using HTTP/HTTPS proxy the script overrides ~/.docker/config.json on the host

This overwrites other options that present in the configuration file, such as auths key, so users have to login to all Docker registries again. If the script replaces ~/.docker/config.json to set HTTP/HTTPS proxy in the container, then there are two better options:

  • Pass proxy to the container using environment variables (--env HTTP_PROXY and so on)
  • Use a tool such as jq to create/update the existing file in place, for example:
[[ -f ~/.docker/config.json ]] || (echo "{}" > ~/.docker/config.json)
tmp="$(mktemp)"
jq ".proxies.default = {\"httpProxy\": \"$http_proxy\", \"httpsProxy\": \"$https_proxy\", \"noProxy\": \"$no_proxy\"}" ~/.docker/config.json > "$tmp"
mv "$tmp" ~/.docker/config.json

The script keeps `tail` running in background

Every time I run the script there is a forked tail process keeps running in the background:

tail -f /home/user/.config/gh-runner/intel-sandbox.x1.test-runner/log

After N runs there are N tail processes running.

Incorrect mount for Vagrant home

The scripts mounts Vagrant home to /runner/.vagrant.d:

mount_vagrant="-v $agent_dir/vagrant:/runner/.vagrant.d -v /var/run/libvirt/:/var/run/libvirt/"

The mount point needs to be /.vagrant.d, since VAGRANT_HOME is set to that value.

mount_vagrant="-v $agent_dir/vagrant:/.vagrant.d -v /var/run/libvirt/:/var/run/libvirt/"

Vagrant directory is per runner, not per host

I've noticed that script mounts $agent_dir/vagrant to /runner/.vagrant.d. That means that every runner will need to download all vagrant boxes. Also if we want to use a custom vagrant box, then we have to distribute such box across all runners on all hosts, rather than once per host.

While this is not a big issue at the moment, we need to find a good way to distribute custom vagrant boxes to all runners.

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.