Skip to content

Commit

Permalink
PEP 668: Keep the marker file in container images (#2289)
Browse files Browse the repository at this point in the history
This preserves the protections afforded by these changes, in container
images.
  • Loading branch information
pradyunsg authored Mar 18, 2022
1 parent 96bfcd0 commit f500416
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions pep-0668.rst
Original file line number Diff line number Diff line change
Expand Up @@ -659,18 +659,14 @@ on Debian) depends on pipx.

.. _pipx: https://github.com/pypa/pipx

Remove the marker file in container images
------------------------------------------
Keep the marker file in container images
----------------------------------------

Distros that produce official images for single-application containers
(e.g., Docker container images) should remove the
(e.g., Docker container images) should keep the
``EXTERNALLY-MANAGED`` file, preferably in a way that makes it not
come back if a user of that image installs package updates inside
their image (think ``RUN apt-get dist-upgrade``). On dpkg-based
systems, using ``dpkg-divert --local`` to persistently rename the file
would work. On other systems, there may need to be some configuration
flag available to a post-install script to re-remove the
``EXTERNALLY-MANAGED`` file.
go away if a user of that image installs package updates inside
their image (think ``RUN apt-get dist-upgrade``).

Create separate distro and local directories
--------------------------------------------
Expand Down

0 comments on commit f500416

Please sign in to comment.