Initial set-up script #12
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
curl https://install.domain.tld | bashCrib from
autonomic.docker-tlsandautonomic.swarm-single-nodehttps://github.com/aelsabbahy/miniswarm
I think for our purposes, we can probably roll this ourselves again, super simply.
Just use the usual docker installation script via https://get.docker.com and then after that runs through, run
docker swarm initand then the swarm is ready to rip.Then for the certs, I have this script for our current swarm:
We'd also need to configure
/etc/docker/daemon.json:And then
/etc/systemd/system/docker.service.d/override.conf:Then restart the daemon.
Then installing abra is
curl -fsSL https://install.abra.autonomic.zone | bash.Soooo, maybe it could be a
curl -fsSL https://install.swarm.autonomic.zone | bashand you run that on your Debian VPS as root? That is like the base installation done then. Anything like logging and other stuff, can be taken care of by sysadmins.Seems doable in B.A.S.H
That was my instinct, but the get.docker.com script historically has a honking big warning not to use it in production.. if that's changed or we don't care then I'm fine.
I think we might not need to worry about the TLS stuff if we use SSH-based access? I was able to get a new server setup yesterday with:
Then locally:
Wowza, super simple! Excellent. Let's use SSH, yes please.
This gave me Docker 18.09.1 which was kind of crashy, I upgraded to 19.03.13 using the Docker repositories which may be a better bet for the installer script.
https://git.autonomic.zone/autonomic-cooperative/abra/src/branch/main/script.d/swarm-installer is currently being served (placeholder for now...), so we can work on just getting 1) docker installed in a stable way 2) swarm init'd and then leave the TLS stuff since we rely on SSH now and perhaps also drop the abra install since that is done on the local?
One nice thing is that I think we can pass that installation script into our
autonomic.newhetznerrole as a user-data addition. We could make that configurable and then drop ourautonomic.swarm-single-nodeand dogfood our own installation method.Don't think this is a big issue anymore since we have the
abrainstall script and that does the bootstrap commands easily. And we've got a fairly decent "getting started" tutorial on the docs, so I guess people who want more automation can come and chase us up.