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

แชร์
ฝัง
  • เผยแพร่เมื่อ 31 ม.ค. 2025

ความคิดเห็น • 44

  • @bugbytes3923
    @bugbytes3923  3 หลายเดือนก่อน +4

    📚 Original uv video: th-cam.com/video/igWlYl3asKw/w-d-xo.html
    ☕ Buy a coffee: ko-fi.com/bugbytes
    ⭐Top resource to learn Python - datacamp.pxf.io/kOjKkV ⭐

  • @DelioC
    @DelioC 3 หลายเดือนก่อน +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  3 หลายเดือนก่อน

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

  • @hassanlaqrabti4036
    @hassanlaqrabti4036 3 หลายเดือนก่อน +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

  • @raulolmos345
    @raulolmos345 3 หลายเดือนก่อน +1

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

    • @bugbytes3923
      @bugbytes3923  3 หลายเดือนก่อน

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

  • @MajidHassani-y9q
    @MajidHassani-y9q 3 หลายเดือนก่อน +1

    Great as always 🌹

    • @bugbytes3923
      @bugbytes3923  3 หลายเดือนก่อน

      Thanks a lot!

  • @iwswordpress
    @iwswordpress 3 หลายเดือนก่อน

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

    • @bugbytes3923
      @bugbytes3923  3 หลายเดือนก่อน

      Thanks a lot, really appreciate it!

  • @ipelezikis
    @ipelezikis 14 วันที่ผ่านมา

    Very nice and detailed video. Great teaching style! Does sync install the development dependencies as well?

    • @bugbytes3923
      @bugbytes3923  5 วันที่ผ่านมา

      Will do! Thanks

  • @Amir-bd4uk
    @Amir-bd4uk 3 หลายเดือนก่อน +1

    Really nice video

  • @augustusbatilojibba1405
    @augustusbatilojibba1405 3 หลายเดือนก่อน

    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  3 หลายเดือนก่อน

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

  • @muhammadnajamulislam2823
    @muhammadnajamulislam2823 3 หลายเดือนก่อน

    awesome video again

    • @bugbytes3923
      @bugbytes3923  3 หลายเดือนก่อน

      Thanks a lot!

  • @hakanbilgin6875
    @hakanbilgin6875 3 หลายเดือนก่อน

    Thanks for video

    • @bugbytes3923
      @bugbytes3923  3 หลายเดือนก่อน

      Thank you for watching!

  • @lisiushing
    @lisiushing 3 หลายเดือนก่อน

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

    • @bugbytes3923
      @bugbytes3923  3 หลายเดือนก่อน

      Thank you! Coming up soon.

  • @nosaugowe7925
    @nosaugowe7925 3 หลายเดือนก่อน

    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  3 หลายเดือนก่อน

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

  • @zakimimit
    @zakimimit 3 หลายเดือนก่อน +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  3 หลายเดือนก่อน +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 3 หลายเดือนก่อน

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

  • @dinobaurier5934
    @dinobaurier5934 3 หลายเดือนก่อน

    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.

  • @youbra4267
    @youbra4267 3 หลายเดือนก่อน

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

    • @bugbytes3923
      @bugbytes3923  3 หลายเดือนก่อน

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

  • @Bigbren-v1p
    @Bigbren-v1p 2 หลายเดือนก่อน

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

    • @bugbytes3923
      @bugbytes3923  2 หลายเดือนก่อน +1

      Coming soon!

  • @muhammadnajamulislam2823
    @muhammadnajamulislam2823 3 หลายเดือนก่อน +1

    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

    • @codeguys88
      @codeguys88 2 หลายเดือนก่อน +1

      i got the same issue!

  • @SDAravind
    @SDAravind 3 หลายเดือนก่อน

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

    • @bugbytes3923
      @bugbytes3923  3 หลายเดือนก่อน

      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 3 หลายเดือนก่อน +2

    good me need uv - Docker django

    • @bugbytes3923
      @bugbytes3923  3 หลายเดือนก่อน

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

  • @grandvidocs
    @grandvidocs 3 หลายเดือนก่อน +1

    Make the same video for Django please

  • @vidyesh
    @vidyesh 3 หลายเดือนก่อน

    Is docker setup same for django?

    • @bugbytes3923
      @bugbytes3923  3 หลายเดือนก่อน

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

  • @thecodeinn
    @thecodeinn 3 หลายเดือนก่อน

    Waiting for deployment