uv - Docker setup with a FastAPI application! | Using uv in containers

Поделиться
HTML-код
  • Опубликовано: 23 ноя 2024

Комментарии • 42

  • @bugbytes3923
    @bugbytes3923  Месяц назад +3

    📚 Original uv video: ruclips.net/video/igWlYl3asKw/видео.html
    ☕ Buy a coffee: ko-fi.com/bugbytes
    ⭐Top resource to learn Python - datacamp.pxf.io/kOjKkV ⭐

  • @DelioC
    @DelioC Месяц назад +2

    This is my first subscribed channel where I activate notifications. You are killing it bugbytes. You are more than ready to start creating full courses.

    • @bugbytes3923
      @bugbytes3923  Месяц назад

      That's amazing to hear that - thanks a lot for sharing, and I'm glad you're enjoying the content. Cheers!

  • @raulolmos345
    @raulolmos345 Месяц назад +1

    The quality of the videos is excellent as always, a video with Django integrated with this wonderful tool would be nice.

    • @bugbytes3923
      @bugbytes3923  Месяц назад

      I'll need to prep a Django video for this, will get on it!

  • @iwswordpress
    @iwswordpress Месяц назад

    Best Django channel! As well as other useful Python videos.

    • @bugbytes3923
      @bugbytes3923  Месяц назад

      Thanks a lot, really appreciate it!

  • @MajidHassani-y9q
    @MajidHassani-y9q Месяц назад +1

    Great as always 🌹

  • @hassanlaqrabti4036
    @hassanlaqrabti4036 Месяц назад +1

    I was waiting for this video with docker thanks. Hope we will see in the near future videos regarding the testing and security phases

  • @zakimimit
    @zakimimit Месяц назад +1

    Thank for adding docker with uv

    I hope in the next video make it
    Full Django Ninja with celery and docker on Render hosting
    Including the celery management when updating code of celery without interrupting the consumed tasks or reset the celery docker image.
    My best regards

    • @bugbytes3923
      @bugbytes3923  Месяц назад +1

      Thank you! Render hosting is definitely on the list too. Will have a think about what kind of video we could create about your topic.

    • @zakimimit
      @zakimimit 29 дней назад

      ​@@bugbytes3923 Thank you for your valuable time and videos 👍

  • @lisiushing
    @lisiushing Месяц назад

    thank you for your tutorial! would love to see uv and django together

  • @Amir-bd4uk
    @Amir-bd4uk Месяц назад +1

    Really nice video

  • @augustusbatilojibba1405
    @augustusbatilojibba1405 Месяц назад

    Best Django and other python web frameworks. Thank you for taking your time to make such quality videos.
    Can you make a video of using Django and Apache Kafka? I will be much appreciated

    • @bugbytes3923
      @bugbytes3923  Месяц назад

      Thanks a lot! I'd love to make videos on Kafka, that's an interesting one - maybe in the near future!

  • @hakanbilgin6875
    @hakanbilgin6875 Месяц назад

    Thanks for video

  • @muhammadnajamulislam2823
    @muhammadnajamulislam2823 Месяц назад

    awesome video again

  • @dinobaurier5934
    @dinobaurier5934 Месяц назад

    Is that approach the fastest? I have local development in mind e.g. django with celery etc where adding a dependency forces the rebuild of the container which can take a while with pip. Seems that uv cannot „play out“ its advantage of package caching in such a setup.

  • @nosaugowe7925
    @nosaugowe7925 Месяц назад

    Excellent video as always! Just a question… In the Dockerfile, is it possible to pass the uv binary as local file instead of passing it from a remote registry? Just thinking of security.

    • @bugbytes3923
      @bugbytes3923  Месяц назад

      Thanks a lot! Glad to hear you got it working with Django 5.

  • @youbra4267
    @youbra4267 Месяц назад

    Thank you for this quality content, please can you make one of Django Turbo of unfold again thanks 😊

    • @bugbytes3923
      @bugbytes3923  Месяц назад

      Thank you! I'm not familiar with Django Turbo - what is this used for?

  • @Bigbren-v1p
    @Bigbren-v1p 14 дней назад

    please make a video also for django how uv works for it :)

  • @SDAravind
    @SDAravind Месяц назад

    It would be awesome if we can move .venv to custom location within docker.

    • @bugbytes3923
      @bugbytes3923  Месяц назад

      Maybe this setting might help? docs.astral.sh/uv/pip/environments/#using-arbitrary-python-environments
      You could create the virtual environment as part of the build, in that location, separate from your app's working directory. The environment variable could point to the created environment.
      (I've not tried this out or anything, and there may be a better way!)

  • @frameff9073
    @frameff9073 Месяц назад +2

    good me need uv - Docker django

    • @bugbytes3923
      @bugbytes3923  Месяц назад

      Thanks a lot! I'll add a Django example soon ;)

  • @vidyesh
    @vidyesh Месяц назад

    Is docker setup same for django?

    • @bugbytes3923
      @bugbytes3923  Месяц назад

      Similar, but different CMD for the Dockerfile would be one change. I'll try adding a Docker/Django example soon.

  • @grandvidocs
    @grandvidocs Месяц назад

    Make the same video for Django please

  • @thecodeinn
    @thecodeinn Месяц назад

    Waiting for deployment

  • @muhammadnajamulislam2823
    @muhammadnajamulislam2823 Месяц назад

    i am facing this error
    i followed each step done by you.
    c => ERROR [stage-0 5/5] RUN uv sync --frozen --no-cache 0.5s
    ------
    > [stage-0 5/5] RUN uv sync --frozen --no-cache:
    0.433 error: Project virtual environment directory `/app/.venv` cannot be used because because it is not a valid Python environment (no Python executable was found)
    ------
    Dockerfile:12
    --------------------
    10 |
    11 | # Install the application dependencies.
    12 | >>> RUN uv sync --frozen --no-cache
    13 |
    14 | # Run the application.
    --------------------
    ERROR: failed to solve: process "/bin/sh -c uv sync --frozen --no-cache" did not complete successfully: exit code: 2