Mirroring the opam repository, including source archives
Find a file
Reynir Björnsson 8e326ecbc5 WIP partial writes
If possible, downloads are streamed to disk in the /pending/ directory
in the tar filesystem. If the download is successful and the checksums
match the file is renamed to its sha256 hash. Otherwise, it is moved
under /to-delete/ so it can be deleted by an operator.

Before downloading we check if it has been downloaded before, but we
need to check as well if it is being downloaded (in /pending/) or if we
unsuccessfully downloaded it before (e.g. failed checksum, stored in
/to-delete/).

It is not very elegant code, and it could do with a thorough review or
rewrite.
2023-01-25 11:34:31 +01:00
mirage WIP partial writes 2023-01-25 11:34:31 +01:00
LICENSE.md initial commit 2022-08-25 14:57:03 +02:00
README.md add --verify to force verification of the on-disk data 2022-09-26 21:49:47 +02:00

opam-mirror unikernel

This unikernel periodically (at startup, on request, every hour) updates the provided opam-repository and downloads all referenced archives. It acts as an opam-repository including archive mirror. Only archives with appropriate checksums are stored.