Fix AWS CLI installation on openSUSE 42
AWS CLI v1 is no longer supported on openSUSE 42's Python 2.7/3.4
This commit is contained in:
parent
2c9979447c
commit
0098d79df4
1 changed files with 4 additions and 3 deletions
|
|
@ -35,8 +35,6 @@ RUN zypper --non-interactive --gpg-auto-import-keys -n install \
|
||||||
pcre2-devel \
|
pcre2-devel \
|
||||||
perl \
|
perl \
|
||||||
perl-macros \
|
perl-macros \
|
||||||
python \
|
|
||||||
python-pip \
|
|
||||||
readline-devel \
|
readline-devel \
|
||||||
rpm-build \
|
rpm-build \
|
||||||
ruby \
|
ruby \
|
||||||
|
|
@ -64,7 +62,10 @@ RUN zypper --non-interactive --gpg-auto-import-keys -n install \
|
||||||
zlib-devel \
|
zlib-devel \
|
||||||
&& zypper clean
|
&& zypper clean
|
||||||
|
|
||||||
RUN pip install awscli
|
RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" && \
|
||||||
|
unzip awscliv2.zip && \
|
||||||
|
./aws/install && \
|
||||||
|
rm -rf aws awscliv2.zip
|
||||||
|
|
||||||
# Pin fpm for compatibility with Ruby < 2.3
|
# Pin fpm for compatibility with Ruby < 2.3
|
||||||
RUN gem install ffi:1.12.2 fpm:1.11.0 && \
|
RUN gem install ffi:1.12.2 fpm:1.11.0 && \
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue