Skip to content

Commit 4d5ce0c

Browse files
committed
Update build scripts due to "dotenv requires Ruby version >= 3.0. The current ruby version is 2.5.0"
1 parent e73d793 commit 4d5ce0c

File tree

4 files changed

+44
-4
lines changed

4 files changed

+44
-4
lines changed

build/debian10/build.sh

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,17 @@ apt-get -y install python3-venv python3-pip
1414
apt-get install -y ruby ruby-dev rubygems build-essential
1515

1616
# install fpm using gem
17-
gem install fpm
17+
#gem install fpm
18+
19+
# because fpm install fails on Ruby 2.5.0 due to dotenv, you basically just explicitly
20+
# install the version-pinned dependencies of pleaserun and fpm and then install those without
21+
# any deps (https://github.com/jordansissel/fpm/issues/2048):
22+
gem install dotenv --version 2.8.1 --no-document
23+
gem install clamp --version 1.0.1 --no-document
24+
gem install mustache --version 0.99.8 --no-document
25+
gem install cabin insist stud arr-pm backports rexml --no-document
26+
gem install pleaserun --ignore-dependencies --no-document
27+
gem install fpm --ignore-dependencies --no-document
1828

1929
# prepare venv
2030
. /repos/monitoring-plugins/build/shared/venv.sh

build/rhel8/build.sh

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,17 @@ alias python3=python3.9
2020
yum -y install ruby-devel gcc make rpm-build libffi-devel
2121

2222
# install fpm using gem
23-
gem install fpm
23+
#gem install fpm
24+
25+
# because fpm install fails on Ruby 2.5.0 due to dotenv, you basically just explicitly
26+
# install the version-pinned dependencies of pleaserun and fpm and then install those without
27+
# any deps (https://github.com/jordansissel/fpm/issues/2048):
28+
gem install dotenv --version 2.8.1 --no-document
29+
gem install clamp --version 1.0.1 --no-document
30+
gem install mustache --version 0.99.8 --no-document
31+
gem install cabin insist stud arr-pm backports rexml --no-document
32+
gem install pleaserun --ignore-dependencies --no-document
33+
gem install fpm --ignore-dependencies --no-document
2434

2535
# prepare venv
2636
. /repos/monitoring-plugins/build/shared/venv.sh

build/ubuntu1804/build.sh

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,17 @@ apt-get -y install python3-venv python3-pip
1414
apt-get install -y ruby ruby-dev rubygems build-essential
1515

1616
# install fpm using gem
17-
gem install fpm
17+
#gem install fpm
18+
19+
# because fpm install fails on Ruby 2.5.0 due to dotenv, you basically just explicitly
20+
# install the version-pinned dependencies of pleaserun and fpm and then install those without
21+
# any deps (https://github.com/jordansissel/fpm/issues/2048):
22+
gem install dotenv --version 2.8.1 --no-document
23+
gem install clamp --version 1.0.1 --no-document
24+
gem install mustache --version 0.99.8 --no-document
25+
gem install cabin insist stud arr-pm backports rexml --no-document
26+
gem install pleaserun --ignore-dependencies --no-document
27+
gem install fpm --ignore-dependencies --no-document
1828

1929
# prepare venv
2030
. /repos/monitoring-plugins/build/shared/venv.sh

build/ubuntu2004/build.sh

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,17 @@ apt-get -y install python3-venv python3-pip
1414
apt-get install -y ruby ruby-dev rubygems build-essential
1515

1616
# install fpm using gem
17-
gem install fpm
17+
#gem install fpm
18+
19+
# because fpm install fails on Ruby 2.7.0 due to dotenv, you basically just explicitly
20+
# install the version-pinned dependencies of pleaserun and fpm and then install those without
21+
# any deps (https://github.com/jordansissel/fpm/issues/2048):
22+
gem install dotenv --version 2.8.1 --no-document
23+
gem install clamp --version 1.0.1 --no-document
24+
gem install mustache --version 0.99.8 --no-document
25+
gem install cabin insist stud arr-pm backports rexml --no-document
26+
gem install pleaserun --ignore-dependencies --no-document
27+
gem install fpm --ignore-dependencies --no-document
1828

1929
# prepare venv
2030
. /repos/monitoring-plugins/build/shared/venv.sh

0 commit comments

Comments
 (0)