WIP: Dockerize #1
Closed
yksflip
wants to merge 1 commits from
yksflip/backup-bot-two:dockerize into main
pull from: yksflip/backup-bot-two:dockerize
merge into: :main
:main
:renovate/docker-29.x
:feature/makeDeleteDefault
:restic-exporter
:cmd-setup-restic-s3
:prom-mon
:feature/dockerfile
:bb2-classic
:feature/selective_paths
:list
:enable-label
:backupbot_revolution
:backup_volumes
:multi_path
No Reviewers
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
appletalk
arjan
basebuilder
BornDeleuze
Brooke
carla
cas (Cassowary)
codegod100
coopcloud
cyrnel
decentral1se (d1)
dede
devydave
fauno (fauno)
flancian
Frando
iexos
jade (Jade Ambrose)
javielico (Javielico)
jjsfunhouse
jmakdah2 (Jackie Makdah)
joe-irving (Joe Irving)
kawaiipunk (KawaiiPunk)
knoflook
kolaente
lambdabundesverband
linnealovespie (April)
marlon (marlon)
mayel
mirsal
moosemower
moritz
nicksellen (Nick Sellen)
notplants
oxaliq (sorrel)
p4u1
pau
pharaohgraphy (Andrew 🐦🔥❤️🔥✴️)
PhiNatalie
renovate-bot (Comrade Renovate Bot)
ripclap
rix
rscmbbng
sef (sef)
simon
sixsmith (Sixsmith)
stevensting
tobias
trav (Trav Fryer)
val (val (he/him))
vaznasty
virtualboys
wolcen (Chris Thompson)
wykwit
xynosis
yksflip
Clear assignees
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: coop-cloud/backup-bot-two#1
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.
Hey,
I gave the backup-bot a first shot on a Dockerfile.
open things:
For me, a per backupbot cron schedule would be sufficient. Per App would probably also be more complicated to implement.
Using a volume could be easy, but I think that wouldn't fit well in how abra usually works?
Maybe secrets/envs (key, known-hosts) that are copied into ~/.ssh/ on startup.
Some inspiration was taken from https://github.com/djmaze/resticker
Oh wow, this is fantastic!
I wrote my own Dockerfile at the weekend, I shamefully didn't push it at the time, but I'll have a careful look and grab the best bits from both!
Having a global schedule seems like an amazing idea, I'll personally be using swarm-cronjob but I think your approach is likely to be useful to more people, so let's do both?
Again, I'd be leaning on docker secrets for these personally, and I'll put an example in the repo too -- but anything that works in more places seems like a huge plus!
OK, I think all these changes are now incorporated, thank you again!
crondis now default,swarm-cronjobis optionalcompose.ymlnow includes yourbuild: .line so we can dodocker-compose buildSSH_HOST_KEY(use the full line from.ssh/known_hosts), or you can disable checking withSSH_HOST_KEY_DISABLE=1I added a
CRON_SCHEDULEvariable, and an entrypoint which loads that into the crontab.This is working as well! I had to use a raw
docker secret createinstead of the equivalentabracommands to load in the private key, otherwise it added newlines which SSH didn't like:DOCKER_CONTEXT=swarm.example.com docker secret create backup_swarm_example_com_ssh_key_v1 id_rsa@yksflip does this sound good? Down to close this PR, or is there anything I missed?
awesome, thank you so much!
Pull request closed