-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updated the Dockerfile to switch to python 3.8 #176
Conversation
Test these changes locally by building an image. |
@jmbowman can you please tag the owning team here. |
Dockerfile
Outdated
apt-add-repository -y ppa:deadsnakes/ppa && apt-get update && \ | ||
apt-get upgrade -qy && apt-get install language-pack-en locales git python3.5 python3-pip \ | ||
python3-pip libmysqlclient-dev libssl-dev python3-dev python3.8-dev python3.8-distutils -qy && \ | ||
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See my question over in the similar xqueue PR: https://github.com/edx/xqueue/pull/778/files#r480147263 . Just want to make sure this is the best pip installation approach before we start using it everywhere.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jmbowman we had to make this change because we faced
AttributeError: module 'platform' has no attribute 'linux_distribution'
while building a docker image to verify python 3.8 installation changes in Dockerfile.
I tried using ensurepip
and got
/usr/bin/python3.8: No module named ensurepip
while building an image
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, as I just noted over on the xqueue PR, it doesn't look like there's a much cleaner solution to this until we upgrade to Ubuntu 20.04.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you also tag the owing team for review
@bbaker6225 Do you want to review this before we merge it? |
Sure I'll give this a quick test |
I'm running into the same issue from the license-manager PR on running |
No luck unfortunately. Pinning to avoid the setuptools errors might be the way to go |
245e893
to
951ea3d
Compare
I was able to build the image and run @bbaker6225 .. let me know if there's something else needed for the review to proceed. |
Hi @mraarif , in attempting to rebuild my local enterprise catalog I run into this error:
I pulled this branch for enterprise-catalog, ran
|
Just tried on master and I can confirm that the same provisioning process succeeds using python 3.5 there |
@bbaker6225 you should be able to run |
I tested the changes by running |
Great, I'll give it another run shortly |
Thanks for the updates, everything works great except for this error in the worker logs:
I can't find many results on google, but one I did find suggested it might be a local only issue with logging to the console. Do you have any ideas? |
@bbaker6225 seems like this GitHub issue: celery/celery#5761 has the same error I think |
Hm you're right, looks like adding
might fix it |
I'm changing the worker environment in
we'll see if that works |
@mraarif yep that worked. I've updated the PR with it and will merge it once tests pass |
* Updated the Dockerfile to switch to python 3.8 * removed unused curl installation * Add columns:80 as env variable Co-authored-by: Brandon Baker <bbaker@edx.org>
Description
Updated the Dockerfile to install python 3.8 and pip and use
pip
for python 3.8 to install dependencies.Ticket Link
Link to the associated ticket
BOM-2001
Post-review
Squash commits into discrete sets of changes