python-poetry / python-poetry/poetry

Official Docker containers?

Open
#4,036 20 comments 36 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

kind/feature status/triage
Dominant language
Python
Stars
34.3k
Forks
2.5k
Avg merge
2d 19h
Merged PRs (30d)
30

Description

  • I have searched the issues of this repo and believe that this is not a duplicate.
  • I have searched the documentation and believe that my question is not covered.

Feature Request

I'm curious if official docker containers could be created (automated via Github actions).

Of course it's easy to install Poetry in a Dockerfile using get-poetry.py, but I see two issues:

  1. Everyone has to write the boilerplate to install Poetry. Using an official container would remove this boilerplate.
  2. get-poetry.py installs the latest version of Poetry and doesn't appear to have a flag for selecting the version. It's good practice for Docker containers have reproducible builds, and this instability in Poetry version prevents that. An official container could pin the Poetry version and allow for reproducible builds.

For context I'd like to use Poetry in a Docker container to export the requirments.txt, since it's error-prone and troublesome to manually keep that export up to date and it's redundant information when we have pyproject.toml and poetry.lock.

I'm actually surprised there are not already official Poetry Docker containers, so I'm wondering if this might be an intentional decision. On the other hand if this sound like a good idea, I can volunteer to work on a PR for it.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the current get-poetry.py installation flow and the repository's GitHub Actions setup. Define the official container's supported images, Poetry version pinning, and intended export workflow; done means an automated, documented container build that provides reproducible Poetry versions.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, github-actions, python
Domain
build-system, devops
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.