Skip to content
This repository was archived by the owner on Mar 9, 2023. It is now read-only.

Updating Dockerfile to use Python 3 - #27

Open
rafaelnovello wants to merge 2 commits into
developfrom
MARVIN-59
Open

Updating Dockerfile to use Python 3#27
rafaelnovello wants to merge 2 commits into
developfrom
MARVIN-59

Conversation

@rafaelnovello

Copy link
Copy Markdown
Contributor

No description provided.

@Wei-1 Wei-1 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

One question, maybe instead of changing from python2 complete to python3, we can consider keeping the python2 version and add a new python3 docker?
Cus there are some people that will still want to train their model in python2.
Since there are some syntax changes and not a direct version upgrade, if we directly update the python from 2 to 3, it will not be back-compatible.

@takabayashi

takabayashi commented Jun 18, 2019

Copy link
Copy Markdown
Contributor

Agree with @Wei-1, and I think we could use the engine itself to save the info about python version (Eg: marvin.ini file) and just use a parameter on the docker file to avoid to maintain two Dockerfiles.

But guys, this is something that we could implement easily in the next version of the toolbox, for now, the user could just customize his own Dockerfile, also all flow of generations uses the python2.7 as default.

All generated files are available to be edited, this feature exists to support all users and environments in a very flexible way.

I think we should design this flexibility in the next version where we going to have a real docker repository available with a bunch of different images to support all kind of environment and clouds. And for now, we should just leave the way it is to avoid to waste time testing the whole flow again.

@rafaelnovello

rafaelnovello commented Jun 19, 2019

Copy link
Copy Markdown
Contributor Author

Well, I agree with both of you. But I believe the default option should be Python 3 right now. Version 2 have only more 6 months of official support: https://pythonclock.org/

@Wei-1

Wei-1 commented Jun 19, 2019

Copy link
Copy Markdown
Member

So, are we going to move this file to python2-engine/Dockerfile, and create a new python-engine/Dockerfile for python3?

@rafaelnovello

Copy link
Copy Markdown
Contributor Author

Hi @Wei-1, why move? Why not update the Dockerfile to Python 3 and customize to Python 2 when it has necessary?

@Wei-1

Wei-1 commented Jun 21, 2019

Copy link
Copy Markdown
Member

When using SageMaker, we can choose from python and python3.
And the default python is python2, that's why I think it might get a bit confusing.

@takabayashi

takabayashi commented Jun 25, 2019 via email

Copy link
Copy Markdown
Contributor

@rafaelnovello

Copy link
Copy Markdown
Contributor Author

@takabayashi I agree. But if we still use Ubuntu 16.04 image we'll need to install python 3 manually, ok?

@Wei-1

Wei-1 commented Jun 25, 2019

Copy link
Copy Markdown
Member

Since we are using Docker, maybe we can simply choose an image with python3?
Such as python:alpine3.9, which is only 31MB.

@rafaelnovello

Copy link
Copy Markdown
Contributor Author

@Wei-1 it would be very good! I opened an issue for that, but I believe we need to do some tests because Marvin have many dependencies.

@takabayashi

takabayashi commented Jun 26, 2019 via email

Copy link
Copy Markdown
Contributor

@takabayashi

takabayashi commented Jun 26, 2019 via email

Copy link
Copy Markdown
Contributor

@Wei-1

Wei-1 commented Jul 7, 2019

Copy link
Copy Markdown
Member

Hello @rafaelnovello,
can you rebase this PR with the latest dev branch?
It should solve the CI issue.

@rafaelnovello

Copy link
Copy Markdown
Contributor Author

Hi @Wei-1 sorry for delay! How could I do this?

@Wei-1

Wei-1 commented Jul 13, 2019

Copy link
Copy Markdown
Member

You can just git rebase develop in MARVIN-59 branch
or you can pull the develop branch and merge develop to MARVIN-59 branch

@rafaelnovello

Copy link
Copy Markdown
Contributor Author

@Wei-1 thanks for help! Done!

@codecov-io

codecov-io commented Jul 15, 2019

Copy link
Copy Markdown

Codecov Report

Merging #27 into develop will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff            @@
##           develop      #27   +/-   ##
========================================
  Coverage    70.92%   70.92%           
========================================
  Files           26       26           
  Lines         2198     2198           
  Branches       226      226           
========================================
  Hits          1559     1559           
  Misses         618      618           
  Partials        21       21

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6d9d401...64dd814. Read the comment docs.

@Wei-1

Wei-1 commented Jul 16, 2019

Copy link
Copy Markdown
Member

As stated by Taka,
I think setting a variable for Python Version and install different library makes sense.

An easier option is that we can still keep those lines for python2,
just comments them out.
So that users can un-comment those script when needed without searching for the library to install.

@Wei-1

Wei-1 commented Jul 27, 2019

Copy link
Copy Markdown
Member

@rafaelnovello, after merging #31, this PR is conflicted to the current DEV branch.
Can you please rebase the PR?

@Wei-1

Wei-1 commented Feb 11, 2020

Copy link
Copy Markdown
Member

Hello @rafaelnovello, please help to follow up for the project to proceed its build. #40
We have to do another re-based PR if you are not able to follow up this week (to 2020-02-16)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants