Fix fpm installation on openSUSE 15.4; switch to nfpm

fpm currently fails to install because the public_suffix gem dependency
requires Ruby 2.6, which openSUSE 15.4 doesn't provide. Because there have
been so many Ruby dependency issues with fpm in the past, switch to the fewer-
dependency nfpm, which also has better support for code signing if we want to
do that in the future.
This commit is contained in:
Greg Lin 2022-08-22 18:52:05 -05:00
commit a245fc65d9

View file

@ -40,8 +40,6 @@ RUN zypper --non-interactive --gpg-auto-import-keys -n install \
perl-macros \
readline-devel \
rpm-build \
ruby \
ruby-devel \
shadow \
tcl-devel \
texinfo \
@ -74,8 +72,9 @@ RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2
./aws/install && \
rm -rf aws awscliv2.zip
RUN gem install fpm && \
ln -s /usr/bin/fpm.ruby2.5 /usr/local/bin/fpm
RUN curl -LO https://github.com/goreleaser/nfpm/releases/download/v2.18.1/nfpm_amd64.rpm && \
zypper --non-interactive --no-gpg-checks install nfpm_amd64.rpm && \
rm nfpm_amd64.rpm
RUN chmod 0777 /opt