Skip to content
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

Add Python support #219

Merged
merged 2 commits into from Mar 7, 2018
Merged

Add Python support #219

merged 2 commits into from Mar 7, 2018

Conversation

brettcannon
Copy link
Member

While I tested the Dockerfile template, the other aspects I simply copy and pasted as I do not have extensive Docker experience.

# Python support extends back to 3.4 and 2.7 and can be specified down
# to the micro version (e.g. 3.6.3).
# OS Support also exists for jessie & stretch (slim and full).
FROM python:3.6-alpine3.6
Copy link
Member

Choose a reason for hiding this comment

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

Prefer FROM python:alpine so we always have the latest stable Python version (right now 3.6.4) by default with the latest stable Alpine.

Note that for some reason this tag currently doesn't use the latest stable Alpine version. That's a separate issue I will take up with the official Docker Python Image maintainers.

Can add a commend you can specify the exact Python and Alpine version like:
# FROM python:3.6-alpine3.6

Copy link
Member

Choose a reason for hiding this comment

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

FYI: Filed the issue with the alpine tags here: docker-library/python#265

Copy link
Member

Choose a reason for hiding this comment

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

Actually, why not add a comment to refer to https://hub.docker.com/r/library/python/ for a list of all supported Python version / distribution pairs :)

Copy link
Member Author

Choose a reason for hiding this comment

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

Done and done!

@chrisdias
Copy link
Member

This looks good, thanks for the PR! My concern is that I don't have the ability to test that the generated Dockerfile is up to date, continues to work, etc. Of course, I have the same problem with the other platforms as well besides Node :). Can people here sign up to test and report issues/submit fixes ASAP? I'm happy to take the fixes and publish an update as soon as i get them, I just need help ensuring that this stays fresh.

@brettcannon
Copy link
Member Author

So are you saying all of the languages are going to require a contact point to keep the image up-to-date, otherwise they are going to be removed? Or is Python just a victim of bad timing? 😉

As for signing up to stay on top of this like a hawk, I don't know if my manager will want that as I did this as a favour for someone from MS. There is talk of using the Dockerfile as the basis of something else within Linux, so it might be possible to have that team take ownership of keeping it updated.

@chrisdias
Copy link
Member

@brettcannon I'm just asking folks who are interested to submit issues (and PRs if possible) as quickly as they find them so that I can fix them and publish, that's all.

@chrisdias chrisdias merged commit d7d9096 into microsoft:master Mar 7, 2018
@brettcannon
Copy link
Member Author

@chrisdias Ah! Yes, of course. 😄

@brettcannon brettcannon deleted the python branch March 7, 2018 18:02
@rcjsuen rcjsuen mentioned this pull request Mar 8, 2018
return `version: '2.1'

services:
${serviceName}:
Copy link

Choose a reason for hiding this comment

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

Improper indentation in YAML here and in the following lines.

Copy link
Member Author

Choose a reason for hiding this comment

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

PR to fix at #242

@microsoft microsoft locked and limited conversation to collaborators Oct 27, 2021
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.

None yet

4 participants