Skip to content

Commit

Permalink
Update build scripts due to "dotenv requires Ruby version >= 3.0. The…
Browse files Browse the repository at this point in the history
… current ruby version is 2.5.0"
  • Loading branch information
markuslf committed May 30, 2024
1 parent e73d793 commit 4d5ce0c
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 4 deletions.
12 changes: 11 additions & 1 deletion build/debian10/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,17 @@ apt-get -y install python3-venv python3-pip
apt-get install -y ruby ruby-dev rubygems build-essential

# install fpm using gem
gem install fpm
#gem install fpm

# because fpm install fails on Ruby 2.5.0 due to dotenv, you basically just explicitly
# install the version-pinned dependencies of pleaserun and fpm and then install those without
# any deps (https://github.com/jordansissel/fpm/issues/2048):
gem install dotenv --version 2.8.1 --no-document
gem install clamp --version 1.0.1 --no-document
gem install mustache --version 0.99.8 --no-document
gem install cabin insist stud arr-pm backports rexml --no-document
gem install pleaserun --ignore-dependencies --no-document
gem install fpm --ignore-dependencies --no-document

# prepare venv
. /repos/monitoring-plugins/build/shared/venv.sh
Expand Down
12 changes: 11 additions & 1 deletion build/rhel8/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,17 @@ alias python3=python3.9
yum -y install ruby-devel gcc make rpm-build libffi-devel

# install fpm using gem
gem install fpm
#gem install fpm

# because fpm install fails on Ruby 2.5.0 due to dotenv, you basically just explicitly
# install the version-pinned dependencies of pleaserun and fpm and then install those without
# any deps (https://github.com/jordansissel/fpm/issues/2048):
gem install dotenv --version 2.8.1 --no-document
gem install clamp --version 1.0.1 --no-document
gem install mustache --version 0.99.8 --no-document
gem install cabin insist stud arr-pm backports rexml --no-document
gem install pleaserun --ignore-dependencies --no-document
gem install fpm --ignore-dependencies --no-document

# prepare venv
. /repos/monitoring-plugins/build/shared/venv.sh
Expand Down
12 changes: 11 additions & 1 deletion build/ubuntu1804/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,17 @@ apt-get -y install python3-venv python3-pip
apt-get install -y ruby ruby-dev rubygems build-essential

# install fpm using gem
gem install fpm
#gem install fpm

# because fpm install fails on Ruby 2.5.0 due to dotenv, you basically just explicitly
# install the version-pinned dependencies of pleaserun and fpm and then install those without
# any deps (https://github.com/jordansissel/fpm/issues/2048):
gem install dotenv --version 2.8.1 --no-document
gem install clamp --version 1.0.1 --no-document
gem install mustache --version 0.99.8 --no-document
gem install cabin insist stud arr-pm backports rexml --no-document
gem install pleaserun --ignore-dependencies --no-document
gem install fpm --ignore-dependencies --no-document

# prepare venv
. /repos/monitoring-plugins/build/shared/venv.sh
Expand Down
12 changes: 11 additions & 1 deletion build/ubuntu2004/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,17 @@ apt-get -y install python3-venv python3-pip
apt-get install -y ruby ruby-dev rubygems build-essential

# install fpm using gem
gem install fpm
#gem install fpm

# because fpm install fails on Ruby 2.7.0 due to dotenv, you basically just explicitly
# install the version-pinned dependencies of pleaserun and fpm and then install those without
# any deps (https://github.com/jordansissel/fpm/issues/2048):
gem install dotenv --version 2.8.1 --no-document
gem install clamp --version 1.0.1 --no-document
gem install mustache --version 0.99.8 --no-document
gem install cabin insist stud arr-pm backports rexml --no-document
gem install pleaserun --ignore-dependencies --no-document
gem install fpm --ignore-dependencies --no-document

# prepare venv
. /repos/monitoring-plugins/build/shared/venv.sh
Expand Down

0 comments on commit 4d5ce0c

Please sign in to comment.