Fix installations of fpm 1.12.0

* Pin fpm on older distros for compatibility with Ruby < 2.3
* Fix hardcoded references to fpm 1.11.0
This commit is contained in:
Greg Lin 2021-01-26 11:39:01 -06:00
commit 3de0397cee

View file

@ -66,7 +66,9 @@ RUN zypper --non-interactive --gpg-auto-import-keys -n install \
RUN pip install awscli
RUN gem install ffi:1.12.2 fpm && ln -s /usr/lib64/ruby/gems/2.1.0/gems/fpm-1.11.0/bin/fpm /bin/fpm
# Pin fpm for compatibility with Ruby < 2.3
RUN gem install ffi:1.12.2 fpm:1.11.0 && \
ln -s /usr/bin/fpm.ruby2.1 /usr/local/bin/fpm
RUN chmod 0777 /opt