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:
parent
708314a1a2
commit
a245fc65d9
1 changed files with 60 additions and 51 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue