-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Update to python 3.7 (buster) and use build-args #2379
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
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
FROM python:2.7 | ||
ARG PYTHON_VERSION=2.7 | ||
|
||
FROM python:${PYTHON_VERSION} | ||
|
||
RUN mkdir /src | ||
WORKDIR /src | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
FROM python:3.5 | ||
ARG PYTHON_VERSION=3.7 | ||
|
||
FROM python:${PYTHON_VERSION} | ||
|
||
ARG uid=1000 | ||
ARG gid=1000 | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
FROM python:3.6 | ||
ARG PYTHON_VERSION=3.7 | ||
|
||
FROM python:${PYTHON_VERSION} | ||
|
||
RUN mkdir /src | ||
WORKDIR /src | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
FROM python:2.7 | ||
ARG PYTHON_VERSION=2.7 | ||
|
||
FROM python:${PYTHON_VERSION} | ||
RUN mkdir /tmp/certs | ||
VOLUME /certs | ||
|
||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Shouldn't it be
ARG PYTHON_VERSION=3.7-stretch
to keep the same level of specificity in the TAG?Or that removal was intentional?
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.
They're aliases. Removing it allows overriding it with
PYTHON_VERSION=3.6-jessie
although that would now fail because of thegpg2
change.Not sure if there was a specific reason to add the
-jessie
suffix; I couldn't find one directlyThere 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.
Hmmm.. checking here, It's not exactly the same image:
I'm not against changing to
3.7
instead of3.7-stretch
.My point is just that we have to know it's a different 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.
Did you check the image's digest as well? Was your image cache out of date perhaps?
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.
Just removed all my images and
docker pull python:3.7
anddocker pull python:3.7-stretch
. By the way, I don't seepython:3.7-stretch
in your message.My inspect on
python:3.7-stretch
results in: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.
oh! 🤦♂ now see you're comparing with
-stretch
, but3.7
is equivalent to-buster
(which is current stable)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.
Ahhh... Ok! I didn't know about
buster
(since it was released July 6th, 2019). In my headstretch
was still the current stable. Sorry for that 🤦♂️In this case, YES! You are right! I drop my charges 😅