question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Official Docker containers?

See original GitHub issue
  • 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.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:19
  • Comments:14 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
n8stycommented, May 6, 2021

This might be relevant for anyone who comes across this issue: https://github.com/python-poetry/poetry/discussions/1879

2reactions
jwsycommented, Oct 21, 2022

Hi everyone,

I created repository aiming this purpose https://github.com/mateusoliveira43/docker-image-poetry I tried to follow the style of the Python Docker Image repository. The Image is already in Docker Hub https://hub.docker.com/r/mateusoliveira43/poetry (if you want a specific version of Poetry/Python that is not there yet, just open a issue there, and we can add it 😄)

I would be happy to help to create an official Poetry Image 😃

I did a scan with the latest grype and it came back with zero fixable vulns ✨ Awesome work @mateusoliveira43!! 🙌

$ grype version
Application:          grype
Version:              0.51.0
Syft Version:         v0.59.0
BuildDate:            2022-10-17T23:56:55Z
GitCommit:            4cda526992d5003dcbab68c9a7479a653dfde008
GitDescription:       v0.51.0
Platform:             darwin/amd64
GoVersion:            go1.18.7
Compiler:             gc
Supported DB Schema:  5

$ grype --only-fixed mateusoliveira43/poetry:1.2.2-python3.10.8-slim-bullseye
 ✔ Vulnerability DB        [no update available]
 ✔ Parsed image
 ✔ Cataloged packages      [152 packages]
 ✔ Scanned image           [84 vulnerabilities]
No vulnerabilities found
Read more comments on GitHub >

github_iconTop Results From Across the Web

Docker Official Images
The Docker Official Images are a curated set of Docker repositories hosted on Docker Hub. They are designed to: Provide essential base OS...
Read more >
Explore Docker's Container Image Repository - Docker Hub
Docker Official Image. Updated a month ago. A minimal Docker image based on Alpine Linux with a complete package index and only 5...
Read more >
Docker Hub Container Image Library | App Containerization
Docker Hub is the world's largest ... Browse over 100,000 container images from software vendors, open-source projects, ... See all Docker Official Images...
Read more >
docker - Official Image
Docker is an open-source project that automates the deployment of applications inside software containers, by providing an additional layer of abstraction ...
Read more >
Docker: Accelerated, Containerized Application Development
Docker is a platform designed to help developers build, share, and run modern applications. We handle the tedious setup, so you can focus...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found