Skip to content

Commit 60758f6

Browse files
committed
fix "pkg_resources.DistributionNotFound: The 'PyYAML<5.3,>=5.2' distribution was not found and is required by awsebcli"
install PyYAML=5.3 by awscli --- $ docker run IMAGEID which eb /root/.ebcli-virtual-env/executables/eb $ docker run IMAGEID which aws /usr/bin/aws
1 parent 8dff776 commit 60758f6

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

Dockerfile

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,18 @@ RUN apk --no-cache add \
1212
py-pip \
1313
openssh-client
1414

15-
RUN apk --no-cache add build-base python-dev libffi-dev openssl-dev
16-
1715
RUN pip install --upgrade pip \
18-
awscli \
19-
awsebcli
16+
awscli
17+
18+
# https://github.com/aws/aws-elastic-beanstalk-cli-setup
19+
RUN apk --no-cache add --virtual .build-dependencies build-base python-dev libffi-dev openssl-dev && \
20+
git clone https://github.com/aws/aws-elastic-beanstalk-cli-setup.git && \
21+
pip install virtualenv && \
22+
python aws-elastic-beanstalk-cli-setup/scripts/ebcli_installer.py && \
23+
rm -rf aws-elastic-beanstalk-cli-setup /root/.cache && \
24+
apk del --purge .build-dependencies
2025

21-
RUN apk --no-cache del build-base python-dev libffi-dev openssl-dev
26+
ENV PATH /root/.ebcli-virtual-env/executables:$PATH
2227

2328
RUN curl -L https://github.com/barnybug/cli53/releases/download/0.8.16/cli53-linux-386 > /usr/bin/cli53 && \
2429
chmod +x /usr/bin/cli53

0 commit comments

Comments
 (0)