6 ms·
Show HN: Redbean 2.0 in Docker
- modeless 4y agoWhy would you run redbean in docker? I thought Docker was mostly for mitigating dependency issues, which redbean doesn't have.
- ok_dad 4y agoI also wouldn't utilize it, but perhaps there is a situation where you want redbean for running code on various devices, but maybe in certain limited cases you need to run it in Kubernetes or whatever, in which case this is a useful tool.
- ihateolives 4y agoThe point of Redbean is exactly to run on various devices and OSes. Adding docker layer on top makes no sense. If you're using docker you could run any other more full featured server instead.
- ok_dad 4y agoMy point was that if you needed something like redbean for your architecture because it's flexible and can run on anything, you still might want to run it in a container for some corner-case where running it outside the container isn't possible or easy. I have a specific use case I'm developing on redbean and I usually need to run it on whatever PC is available at the time, but sometimes a container image running on some orchestrator is necessary because there is no PC available or the user wishes to integrate it into a larger system architecture.
- maverwa 4y agoIf you want to deploy it in an environment that is already running some kind of container orchestration it may actually be simpler to just add another container, compared to adding another host service you need to care about. Sure, you wouldn’t want to install docker, or podman or nomad (+ one of those) or k8s (lol…) to run a redbean. But the other way around might make sense.
- nine_k 4y agoBut why use redbean for that, and not nginx? The point of redbean is to be CPU- and OS-agnostic. Containers are CPU- and OS-specific.
- meibo 4y agoBecause it's an application platform, you make apps with it in Lua. I think there's even a full framework for it now.
- nine_k 4y agoThis is why I mentioned nginx: it's also an application platform programmable in Lua.
- dhzhzjsbevs 4y agoI don't get it. What's the problem? Docker is more than just application containerization, it also lets you infra as code to some degree. You can specify where and how files are organised. It turns a git repo into something consistently runnable with the same commands as every other repo you may maintain. There's value in that. This is just gatekeeping.
- nine_k 4y agoNo gatekeeping: it's free software, anybody can experiment with it as they please. But the irony of the situation is still there.
- jart 4y agoWe do what we must because we can!
- syrusakbary 4y agoI second that, entirely!
- spdustin 4y agoEspecially when doing (computer) science.
- thelibrarian 4y agoIf you want to host it on a service that hosts Docker images, such as fly.io or AWS Fargate.
- ihateolives 4y ago(grumpy old man mode on) I swear people have forgotten that things can be run directly on OS without any layers in between. They feel naked without docker. 'But mah complexity!' they yell when they see plain old binary nowadays. Grr.
- metadat 4y agoYou're spot on. What's wrong with olives, though?
- ihateolives 4y agoCan't stand them. Tried all sorts, canned or fresh, even hand picked Kalamata olives in Greece. Nope. Can't get used to the taste.
- hardwaresofton 4y agofully get the grumpy old man mode, but also > They feel naked without docker. 'But mah complexity!' they yell when they see plain old binary nowadays. Grr. That's because they kind of are naked -- containers bring namespace and cgroup based isolation. If they weren't doing that, then they'd be juggling systemd slices... If they weren't doing that they'd be setting up per-app users and fussing with ulimit... And if they weren't doing that, they really would be naked. I'm very much (as you might be able to tell) pro-containers -- they're a great tool, and they actually do kind of deserve to go most places. Containers shouldn’t be absolutely everywhere, but they should be the default these days as a layer between the OS and a possibly clueless app developer.
- pydry 4y agoIm pro cgroup isolation but I hate docker. For the first 5 years I used it it definitely caused me more problems than it solved and its design is still bad. It's fortunate podman exists now coz I was starting to sound like a crackpot.
- kissgyorgy 4y agoYou have no idea how painful it is to put some static content in a Kubernetes cluster somewhere. With Redbean, you can do it very easily and very resource-effectively.
- deleted 4y ago[deleted]
- mfontani 4y agoSeems like a useful replacement for, say, nginx for running static sites in dokku or the like.
- richdougherty 4y agoWouldn't it be cool if the portable format used by Redbean was also a Docker image?
- cyanydeez 4y agoJustine said they are working on getting it to be a bootable image
- goldenkey 4y agohttps://i.kym-cdn.com/entries/icons/mobile/000/027/475/Screen_Shot_2018-10-25_at_11.02.15_AM.jpg https://i.kym-cdn.com/entries/icons/mobile/000/027/475/Scree...
- deleted 4y ago[deleted]
- killingtime74 4y agoEvery time I read Redbean posts I feel like I’m watching inception
- ok_dad 4y agoI would be satisfied if redbean were turned into the next DOOM and can be run on almost everything with a central processing unit.
- encryptluks2 4y agoWouldn't darkhttpd and others be more lightweight?
- up2isomorphism 4y agoThis a very sad situation where someone seems to appreciate your work and would like to do something extra on top of it but completely going against the very principle of that work is based on in the first place.
- kissgyorgy 4y agoTechnology is not a religion. When someone uses what you created in a different/unexpected way you anticipated, you know you did something flexible which is useful for a lot of people in a lot of different ways.
- killingtime74 4y agoThis place is literally called hacker news lol. We hack, not just build things to spec from committee