Skip to content

ruby/ruby-infra-recipe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ruby-infra-recipe

Usage

Prepare environment for hocho apply

(some of them are to be automated using hocho)

  1. Add the ssh configuration to ~/.ssh/config for your machine as follows. The Host <ip address> is used as an argument of the hocho apply later.

    Host debian.rubyci.org
      User=<user>
      IdentityFile <path to key>
    
  2. Install curl, git and rsync commands in the target VM server.

  3. Add the NOPASSWD option to /etc/sudoers for your logined user in the target VM server.

RHEL

You should enable CodeReady Linux Builder repository.

sudo yum-config-manager --enable codeready-builder-for-rhel-9-rhui-rpms

You can confirm these repos with the following command.

sudo yum repolist --all

FreeBSD

(to be automated using hocho)

pkg install sudo # then add NOPASSWD with visudo
pkg install bash

OpenBSD

(to be automated using hocho)

doas pkg_add rsync
doas pkg_add bash
doas pkg_add sudo # then add NOPASSWD to /etc/sudoers

Funtoo

# Try adding `package 'eix'` before all other `package` next time
sudo emerge eix
sudo eix-update # to be automated too

Ubuntu (jammy, arm64-neoverse-n1)

We applied a workaround to setup /etc/resolv.conf properly in Ubuntu jammy on the arm64-neoverse-n1 server.

Run hocho

The specified domain is equivalent with the Host <ip address> in the ~/.ssh/config.

# check if you can login
bash -cx "ssh debian.rubyci.org echo OK"

# dry-run
bin/hocho apply -n debian.rubyci.org

# apply
bin/hocho apply debian.rubyci.org

All chkbuild

# check if you can login
for i in $(bin/hosts); do bash -cx "ssh ${i} echo OK"; done

# dry-run
for i in $(bin/hosts); do bundle exec hocho apply -n "${i}"; done

# apply
for i in $(bin/hosts); do bundle exec hocho apply "${i}"; done

License

Ruby License

About

Manifest for rubyci, gem-codesearch and etc

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published