Skip to content

Conversation

@brightcoder01
Copy link
Collaborator

It's common that we will build the runnable images based on the base image - sqlflow/sqlflow:step and then install additional python packages. Some python packages such as psutil need compilation which requires gcc and Python.h. In order the prepare the compilation environment in the base image, we will retain build-essential and python3-dev packages in sqlflow/sqlflow:step.

&& choose_fastest_pip_source; fi' && \
apt-get update && \
apt-get -qq install -y --no-install-recommends openjdk-8-jre-headless python3 libmysqlclient20 python3-idna libgomp1 python3-setuptools python3-pip && \
apt-get -qq install -y --no-install-recommends openjdk-8-jre-headless python3 libmysqlclient20 python3-idna libgomp1 python3-setuptools python3-pip build-essential python3-dev && \
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do we need both python3 and python3-dev?

Copy link
Collaborator Author

@brightcoder01 brightcoder01 Aug 27, 2020

Choose a reason for hiding this comment

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

python3-dev has dependency on python3. Installing python3-dev will trigger the python3 installation automatically. Keeping both is also fine because it won't bring additional overhead.

@weiguoz weiguoz self-requested a review August 28, 2020 03:18
Copy link
Collaborator

@weiguoz weiguoz left a comment

Choose a reason for hiding this comment

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

LGTM

@brightcoder01 brightcoder01 merged commit 0ac724a into develop Aug 28, 2020
@brightcoder01 brightcoder01 deleted the gml/step-pip-installable branch August 28, 2020 03:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants