misc-server icon indicating copy to clipboard operation
misc-server copied to clipboard

Update setup scripts for marquee to work on Debian 10

Open foolip opened this issue 5 years ago • 8 comments

marquee is still running on the same Debian 9 instance, but these scripts have been tested on a new Debian 10 instance on DigitalOcean.

foolip avatar Jun 10 '20 14:06 foolip

@domenic I thought this might help with https://github.com/whatwg/misc-server/issues/24, but it won't.

Much of this would be easy to do with Docker, and converting it wouldn't even be all that hard. The hard part is how we'd manage the persistent storage and deploy new Docker images to DigitialOcean. It's easier to keep pushing this pile of scripts forward, but not ideal.

foolip avatar Jun 10 '20 14:06 foolip

Every time I've looked into this (where to put disk and database) I've come across solutions just like that, multiple containers and some orchestration. Kubernetes comes up a lot, too.

We could probably define all of whatwg.org as a group of containers, having bind mounts for the data. But then you have to run that somewhere. It seems like avoiding downtime is more often done by having two instances always.

A lot of complexity. If you'd like to read that book, I'd be happy to see the results though :)

foolip avatar Jun 10 '20 22:06 foolip

However, Googling around for this seems like people are using something called Docker Compose for this, which I don't quite understand the need for. See e.g. this tutorial or this "one click droplet" configuration. It feels like it removes some of the simplicity of doing everything inside a Docker container by involving multiple containers... But everyone's doing it, so there must be a reason.

I also don’t clearly understand the need for Docker Compose, but from my limited experience in adding and maintaining a Dockerfile for the HTML checker — and in documenting it at https://validator.github.io/validator/#dockerhub and discussing it with people who actually use Docker for the HTML checker — I get the impression that Docker Compose is what’s normally used in practice by more real-world production deployments of stuff using Docker.

Some of the reasons seem to be that Docker Compose allows you to run without needing to specify additional arguments on the command line — instead you just put it all into .yml file — and also instead of needing do execute both docker build and docker run, you instead can just do docker-compose up --build.

At Stack Overflow, I also found what seems a pretty good description, in the following answer: https://stackoverflow.com/a/51058001/441757

Dockerfile describes how to build a Docker image - it's essentially Docker's version of Makefile or pom.xml or build.gradle

docker-compose.yml describes how the image is to be deployed, that is all the things necessry to create both the container and the environment it needs to run (like networks or volumes). If several containers need to work together the description of how to deploy them together, in which order, how to link them an so on can be put into a single docker-compose.yml

sideshowbarker avatar Jun 15 '20 09:06 sideshowbarker

@foolip would you be willing to carry this over the finish line, and/or help upgrade our server?

domenic avatar Oct 13 '23 06:10 domenic

Note that the cerbot scripts are failing now because everything related to apt seems to be failing. So this might be kinda urgent :(

domenic avatar Oct 13 '23 06:10 domenic

@foolip would you be willing to carry this over the finish line, and/or help upgrade our server?

By now we should upgrade to Debian 12 instead, and every time I think of this problem I think I'd like to migrate to something like Cloudflare instead.

But I can commit to either upgrading in DigitalOcean or giving up and making it clear I'm not working on it, during January.

Note that the cerbot scripts are failing now because everything related to apt seems to be failing. So this might be kinda urgent :(

Is this from some logs?

foolip avatar Dec 20 '23 11:12 foolip

Is this from some logs?

This is when I followed the process in https://github.com/whatwg/misc-server/blob/main/debian/README.md in order to re-deploy after https://github.com/whatwg/misc-server/commit/b19abc38fe93677dc935ebb1b0f313b07cf8b322.

domenic avatar Dec 20 '23 12:12 domenic

January and half of February has passed. I did a quick experiment and ruled out the "just use Git" approach I was hoping for in https://github.com/whatwg/misc-server/issues/107#issuecomment-1947775665.

I won't be able to make time for this, but I think that upgrading the VMs and keeping most things unchanged is the only quick path forward here.

foolip avatar Feb 16 '24 05:02 foolip