• 2 Posts
  • 44 Comments
Joined 1 year ago
cake
Cake day: June 4th, 2023

help-circle






  • I can think of only two reasons to have a venv inside a container:

    • If you’re running third-party services inside a container, pinned to different Python versions.

    • If you do local development without docker and scripts that have to activate the venv from inside the script. If you move the scripts inside the container, now you don’t have a venv. But then it’s easy to just check an environment variable and skip, if inside Docker.

    For most applications, it seems like an unnecessary extra step.


  • Installed RabbitMQ for use in Python Celery (for task queue and crontab). Was pleasantly surprised it also offered MQTT support.

    Was originally planning on using a third-party, commercial combo websocket/push notification service. But between RabbitMQ/MQTT with websockets and Firebase Cloud Messaging, I’m getting all of it: queuing, MQTT pubsub, and cross-platform push, all for free. 🎉

    It all runs nicely in Docker and when time to deploy and scale, trust RabbitMQ more since it has solid cluster support.



  • fubarx@lemmy.mltoMemes@lemmy.mlAI bros
    link
    fedilink
    arrow-up
    7
    ·
    16 days ago

    I actually like it when these code helpers guess from one line what the rest should be and suggest it. It’s even more fun when it keeps guessing and the suggestions get progressively more whacky. Then they just start making completely unrelated shit up.

    Once you say no, it goes back to the beginning and meekly repeats the very first suggestion, like a scolded puppy.