Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

fix env problem for adding nodes by paictl.py in dev-box docker #5674

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions src/dev-box/build/dev-box.common.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ RUN apt-get -y update && \
gawk \
psmisc \
python \
python3 \
python3.6 \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why using python3.6 instead of default python version

Copy link
Author

@murez murez Dec 30, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because some pip packages are not surport or may cause some trouble when installing ansible

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A better solution is change the whole docker base image from ubuntu16.04 to ubuntu18.04

python-yaml \
python-jinja2 \
python-urllib3 \
Expand All @@ -39,12 +39,18 @@ RUN apt-get -y update && \
rsync \
realpath \
nfs-common \
net-tools && \
net-tools \
sshpass && \
mkdir -p /cluster-configuration &&\
git clone https://github.com/Microsoft/pai.git &&\
pip install bcrypt==3.1.7 dnspython==1.16.0 python-etcd docker kubernetes==12.0.0 paramiko==2.6.0 cryptography==3.2 cachetools==3.1.1 GitPython==2.1.15 jsonschema attrs dicttoxml beautifulsoup4 future setuptools==44.1.0 &&\
python -m easy_install --upgrade pyOpenSSL && \
pip3 install kubernetes==12.0.0 jinja2
pip3 install kubernetes==12.0.0 jinja2 && \
python3 -m pip install pip==20.3.4 && \
python3 -m pip install ansible==2.9.7 && \
python3 -m pip install netaddr==0.7.19 && \
python3 -m pip install passlib


WORKDIR /tmp

Expand Down