Initial set-up script #12
Closed
opened 2020-09-13 11:44:15 +00:00 by 3wordchant
·
8 comments
Labels
Clear labels
abra
awaiting-feedback
backups
bug
build
ci/cd
community organising
contributing
coopcloud.tech
design
documentation
duplicate
enhancement
fedi
fedi-infra
finance
funding
good first issue
help wanted
installer
legal
performance
proposal
question
security
test
wontfix
Everything to do with abra
Ping/pong on comms
Something is not working
Go build related issues
Getting the robots into the mix
Opening this thing up
Contributors stuff
Our main website
Design thinking required
Let's write things together
This issue or pull request already exists
New feature
Democratic decision making
Money things
Anything related to grant funding
Easy start with development
Need some help
Installation related issues
Performance related
Large change which requires feedback & decisin making
More information is needed
Securing our shit
Unit or integration test suite
This won't be fixed
No labels
Milestone
No items
No Milestone
Projects
Clear projects
No projects
Assignees
3wordchant
aadil (Aadil Ayub)
abra-bot (Abra Bot)
ammaratef45
amras (Sarma)
Apfelwurm
BornDeleuze
Brooke
carla
cas (Cassowary)
coopcloud
cyrnel
decentral1se (d1)
dede
devydave
fauno (fauno)
iexos
jade (Jade Ambrose)
jjsfunhouse
jmakdah2 (Jackie Makdah)
joe-irving (Joe Irving)
kawaiipunk (KawaiiPunk)
knoflook
kolaente
lambdabundesverband
linnealovespie (April)
moosemower
moritz
notplants
oxaliq (sorrel)
p4u1
pharaohgraphy (Andrew 🐦🔥❤️🔥✴️)
renovate-bot (Comrade Renovate Bot)
ripclap
simon
sixsmith (Sixsmith)
stevensting
trav (Trav Fryer)
val (val (he/him))
yksflip
Clear assignees
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: toolshed/organising#12
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
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.