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

Python runtime images share same structure as build image #151

Merged
merged 3 commits into from
May 23, 2019

Conversation

gpcastro
Copy link
Member

  • Unify our python images so the binaries are located in the same place both at build and runtime
  • Migrate Python base images to stretch, also for consistency

@gpcastro gpcastro requested a review from a team as a code owner May 17, 2019 01:04
Copy link
Contributor

@kichalla kichalla left a comment

Choose a reason for hiding this comment

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

Could you kick off a nightly too?

images/runtime/python/generateDockerfiles.sh Show resolved Hide resolved
images/runtime/python/generateDockerfiles.sh Outdated Show resolved Hide resolved
images/runtime/python/Dockerfile.template Show resolved Hide resolved
@@ -228,8 +228,8 @@ RUN apt-get update \
# https://github.com/docker-library/python/issues/147
ENV PYTHONIOENCODING UTF-8
COPY build/__python-versions.sh /tmp
COPY --from=mcr.microsoft.com/oryx/python-build-2.7:20190322.1 /opt /opt
COPY --from=mcr.microsoft.com/oryx/python-build-3.6:20190322.1 /opt /opt
COPY --from=mcr.microsoft.com/oryx/python-build-2.7:20190402.1 /opt /opt
Copy link
Contributor

@arroyc arroyc May 21, 2019

Choose a reason for hiding this comment

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

note: we need to change this again soon something like mcr.microsoft.com/oryx/python-build:2.7-20190402.1

ENV PYTHON_VERSION %PYTHON_FULL_VERSION%

# Add python binaries from Oryx base image
COPY --from=mcr.microsoft.com/oryx/python-build-%PYTHON_VERSION%:%IMAGE_TAG% /opt /opt
Copy link
Contributor

Choose a reason for hiding this comment

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

same comment

@gpcastro gpcastro merged commit 676883f into master May 23, 2019
@gpcastro gpcastro deleted the gpcastro/pythonruntime branch May 23, 2019 17:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants