"Python deployment with Docker and Poetry" - Cristian Heredia (PyBay 2023)

Cristian Heredia
pybay.com/speakers/#sz-speake...
Docker and Poetry are tools often used to deploy Python code. Docker containerizes code, making it easy to deploy in the cloud. Poetry manages dependencies. However, did you ever consider how the two could work in concert to build slim, repeatable production containers for your code?
This talk aims to give developers the basics of setting up a Poetry project inside a Python Docker environment. The goal is to generate a secure container with only source code present-no docs, tests, or secrets.
What this talk isn't: A deep dive into Docker, Poetry, or virtual environments.
slides/code: github.com/caheredia/pybay2023
PyBay features the most influential speakers presenting the most crucial technologies to help beginners and seasoned developers alike get up-to-date quickly, in a single-track format. Whether you’re interested in web technologies, data, devops, Python internals, or performance, PyBay will help you stay on top of your game AND network with engineers at companies that are hiring!
Working remotely and want to meet your teammates to boost team cohesiveness? Leverage the platform we’ve built. There are great talks, yummy food, fresh air, vitamin D... all the elements developers crave for these days. If there are talks that don’t interest your team, take the opportunity to talk to speakers, create your own team activities or book a tee-time at the adjacent miniature golf course!
PyBay is the regional Python conference for the San Francisco Bay Area, bringing together Pythonistas from around the Bay Area and beyond. It is a volunteer-run organization dedicated to building a stronger Python community. PyBay offers deep-dive talks and networking opportunities that aim to enrich and empower the Python community. PyBay is part of BAPyA (Bay Area Python Association). BAPyA member organizations are the SF Python, Pyninsula, and BayPIGgies meetups.
Produced by NDV: / @nextdayvideo
Sun Oct 8 14:15:00 2023 at Bungalo West

Пікірлер: 3

  • @waldoguy15
    @waldoguy152 ай бұрын

    This is such a solid talk. Thanks for posting Cristian!

  • @greatatan
    @greatatan4 ай бұрын

    We switched to using virtualenv inside the docker image (actually using pipx) because we had dependencies incompatibilities between several python apps, some internal, some opensource. UItimately, using pipx inside the docker image isolate each apps and solve many issues, at the cost of extra space. I won't do that for a webapp for instance, but for a "toolbox" docker image it definitively helped.

  • @Stephane_

    @Stephane_

    3 ай бұрын

    Thank you for sharing your experience with us, I personally was very hesitant about using virtualenv inside a Docker image. Is there any performance issue when using a virtual environment inside a Docker container? Also, which Docker image are your images usually based on for Python projects?