Skip to content

rdavid/gento

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gento

About

Gento stands for aGent of Red Hat OpenShift. It enables Cloud-Native Applications and Operators in OpenShift using Red Hat Distributed CI service via DCI OpenShift App Agent.

Install

The artifact is a standalone, POSIX-compliant, Portable Operating System Interface for uniX, shell script file called gento. Install the file from the officially released versions. To write to /usr/local/bin, RHEL requires administrative privileges. Therefore, it is necessary to use sudo before executing the tar command.

REL=0.9.20240303
SRC=https://github.com/rdavid/gento/archive/refs/tags/v$REL.tar.gz
curl --location --silent $SRC |
  sudo tar \
    --directory /usr/local/bin \
    --extract \
    --gzip \
    --strip-components=2 \
    gento-$REL/app/gento

To install gento with all dependencies run POSIX-compliant shell script file install as a process owned by the superuser:

REL=0.9.20240303
SRC=https://github.com/rdavid/gento/archive/refs/tags/v$REL.tar.gz
sudo su -c eval -c "$(
  curl --location --silent $SRC |
    tar \
      --extract \
      --gzip \
      --to-stdout \
      gento-$REL/app/install
)"

Run gento as dci-openshift-app-agent user, the parameter is a DCI settings file, expected name pattern is settings-cnf-name.yml for better reporting. Make sure /usr/local/bin is in dci-openshift-app-agent user’s PATH.

sudo su - dci-openshift-app-agent
gento settings-cnf-name.yml

Test

The project uses Daniel J. Bernstein’s build system redo. You can install Sergey Matveev’s goredo implementation. redo lint applies the following linters to the source files: shellcheck, shfmt, typos, vale, yamllint.

License

gento is copyright David Rabkin and available under a Zero-Clause BSD license.