maddalax / dockside

[under heavy construction, do not use at the moment] Dockside - simple platform as a service to self host your apps, written in pure go
1 stars 1 forks source link

transfer docker images to other servers when built #6

Closed maddalax closed 16 minutes ago

maddalax commented 1 day ago

should be able to use https://docs.nats.io/nats-concepts/jetstream/obj_store

to store the tar'd image

docker save -o htmgo-site.tar [image_id]

download it on the remote host

docker load
gedw99 commented 1 day ago

I’m using the object store for binaries to be distributed.

You can pump any blob in and out of minio too. So you get global minio replication. Just use minio nats notifications.

works well .

Also for SQLite, multi master . Marmot is nats replication for SQLite. You need to stop the replication for a schema change though , so nats detects it, halts global replication, ensures all nodes are at the same sequence, applies the sql migration, and then starts up the global replication. It’s basically a blib if 1 second , so htmgo requests just wait it out with minimal user disruption.