emdash's recent activity

  1. Comment on Neuralink Live Stream in ~science

    emdash Link Parent
    Probably a bit behind schedule because Starship exploded.

    Probably a bit behind schedule because Starship exploded.

    4 votes
  2. Comment on Deploying containerized Docker instances in production? in ~comp

    emdash Link Parent
    Thanks! I haven't seen anyone else using systemd with docker-compose specifically, usually others seem to map a single systemd instance to a single docker container and disregard docker-compose. A...

    Thanks! I haven't seen anyone else using systemd with docker-compose specifically, usually others seem to map a single systemd instance to a single docker container and disregard docker-compose. A few questions:

    • How do you accept requests from the "outside world" to your dockerized nginx reverse proxy? Is the container bound to some port on the VPS that makes this possible?
    • How do you ensure your postgres container doesn't have its data blown away when you up or build it again?

    I don't think I need a separate CI server either, so I like your approach here.

    1 vote
  3. Comment on Deploying containerized Docker instances in production? in ~comp

    emdash Link Parent
    Interesting, thanks! You've definitely got my use case correct, right now it's just myself and my business partner who is not a developer. Orchestration seems like too big of a step right now, so...

    Interesting, thanks! You've definitely got my use case correct, right now it's just myself and my business partner who is not a developer. Orchestration seems like too big of a step right now, so I don't want to go down that road yet— but the systemd solution sounds very nice. I've done a bit of reading, and found this article and this one which appear to be the most helpful, however I've got a few questions about your suggestions which I need to wrap my head around...

    Map whatever port your container uses to some high port on localhost.

    By this, you mean having an entry like this in a docker-compose.yml file?

    ports:
        - "8080:80"
    

    Except with this systemd solution, you're not using docker-compose right? Management is at the container level with the docker CLI? So effectively you'd be mapping say 80 inside your container to 8080 on the VPS?

    Then run a webserver with a reverse proxy to terminate TLS and forward to that container's port.

    Say that webserver is nginx, is that reverse proxy also in a container, or is it deployed directly to the host?

    If you put a docker pull in the start behavior of the service (like with a ExecStartPre for systemd), you can "deploy" your app by just restarting the service!

    docker pull, to my knowledge, only updates the image associated with the container, right? It doesn't update your application inside the container, so I'd still need a step to git pull the repository into the container?

    3 votes
  4. Comment on Microsoft Teams is now officially bigger than Slack in ~tech

    emdash Link Parent
    Isn't the whole application literally a crippled browser app? As far as I can tell, it gives off a very Electron vibe, even on desktop.

    Isn't the whole application literally a crippled browser app? As far as I can tell, it gives off a very Electron vibe, even on desktop.

    1 vote
  5. Comment on Apple pushes a silent Mac update to forcibly remove hidden Zoom web server in ~tech

    emdash Link Parent
    At the very least, Zoom's decision to leave not just files in place on disk post-uninstall, but a running web server, definitely violates Apple's guidelines around application tidiness. There's an...

    At the very least, Zoom's decision to leave not just files in place on disk post-uninstall, but a running web server, definitely violates Apple's guidelines around application tidiness. There's an expectation that if an app is dragged from Finder to Trash, it should leave the system in a state similar to how it was before installation, sans the occasional preference file.

    Sadly, nearly all big companies don't follow these guidelines. Microsoft & Adobe are particularly bad.

    Also of note: I did a double take when I read your comment here, Deimos. I'd immediately come from the HN thread where you are currently the top comment :P.

    10 votes
  6. Comment on Apple pushes a silent Mac update to forcibly remove hidden Zoom web server in ~tech

    emdash Link
    If this isn't effectively an indictment of what Apple thinks about Zoom's practices here, I don't know what else to say to you. These sorts of patches are usually reserved for malware and other...

    If this isn't effectively an indictment of what Apple thinks about Zoom's practices here, I don't know what else to say to you. These sorts of patches are usually reserved for malware and other malicious software.

    14 votes
  7. Hello! After spending many development hours in my past years running on Virtualbox/Vagrant-style setups, I've decided to take the plunge into learning Docker, and after getting a few containers...

    Hello! After spending many development hours in my past years running on Virtualbox/Vagrant-style setups, I've decided to take the plunge into learning Docker, and after getting a few containers working, I'm now looking to figure out how to deploy this to production. I'm not a DevOps or infrastructure guy, my bread and butter is software, and although I've become significantly better at deploying & provisioning Linux VPS's, I'm still not entirely confident in my ability to deploy & manage such systems at scale and in production. But, I am now close to running my own business, so these requirements are suddenly going from "nice to have" to "critical".

    As I mentioned, in the past when I've previously developed applications that have been pushed onto the web, I've tended to develop on my local machine, often with no specific configuration environment. If I did use an environment, it'd often be a Vagrant VM instance. From here, I'd push to GitHub, then from my VPS, pull down the changes, run any deployment scripts (recompile, restart nginx, etc), and I'm done.

    I guess what I'm after with Docker is something that's more consistent between dev, testing, & prod, and is also more hands off in the deployment process. Yet, what I'm currently developing still does have differing configuration needs between dev and prod. For example, I'd like to use a hosted DB solution such as DigitalOcean Managed Databases in production, yet I'm totally fine using a Docker container for MySQL for local development. Is something like this possible? Does anyone have any recommendations around how to accomplish this, any do's and dont's, or any catches that are worth mentioning?

    How about automating deployment from GitHub to production? I've never touched any CI/CD tools in my life, yet I know it's a hugely important part of the process when dealing with software in production, especially software that has clients dependent on it to function. Does anything specifically work well with Docker? Or GitHub? Ideally I want to be avoiding manual processes where I have to ssh in, and pull down the latest changes, half-remembering the commands I need to write to recompile and run the application again.

    10 votes
  8. Comment on New Zealand—one of three remaining developed countries without vehicle fuel emissions standards—proposes scheme to hike cost of gas guzzling vehicles in exchange for EV rebate in ~news

  9. Comment on It’s Never Going to Be Perfect, So Just Get It Done in ~life

    emdash Link
    This is something I struggle immensely with during development. I'll umm and ahh over the best way to implement a feature programmatically, then procrastinate on various design iterations; to the...

    This is something I struggle immensely with during development. I'll umm and ahh over the best way to implement a feature programmatically, then procrastinate on various design iterations; to the point where work on what I wanted to accomplish seizes.

    7 votes
  10. Comment on What are you doing this weekend? in ~talk

    emdash Link
    Deploying my first containerised docker instance to DigitalOcean for my business. Lots of learning.

    Deploying my first containerised docker instance to DigitalOcean for my business. Lots of learning.

    2 votes