From acb3bccd4f619db9adafb91ffae1fae1919df33d Mon Sep 17 00:00:00 2001 From: Dennis ten Hoove Date: Tue, 15 Aug 2023 10:31:34 +0200 Subject: [PATCH] Document repository configuration --- README.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/README.md b/README.md index 28618e6..0f5a12c 100644 --- a/README.md +++ b/README.md @@ -27,3 +27,31 @@ sudo ARKANIUM_OVERWRITE_RANDOM='customlinux_v1.0' arkanium-build customlinux Once done you can find compressed and uncompressed copies of your new image in the `target` directory. Arkanium will by default generate a psuedo-random hex string and use this as the name of your image. This behaviour can be overwritten by assigning a custom name to the `ARKANIUM_OVERWRITE_RANDOM` environment variable. + +## Repository + +### Example repo layout +This would be a suitable layout if `repo_url` in `/arkanium/config` is set to `https://repo.example.com/arkanium`. +```text +repo.example.com +├── arkanium +| ├── list # Plain text file containing names of all available image types +| ├── customlinux +| | ├── database # Plain text file containing : delimited lists of all available images `image_name:compression_method:sha1sum` +| | ├── customlinux_v1.0.tar.zst # Compressed disk images +``` + +### Example repository configuration +The list file in part optional, is it not utilized during the deployment process, but the user may use with the `arkanium-deploy list` command which lists all available images. +```text +customlinux +customlinux-gnome +customlinux-kde +``` + +The `database` file contains a `:` delimited list of all available images. +```text +customlinux_v1.0:zst:80ba4c7f3ff7a0ebce8e67d5b73f87c56af1b9f3 +customlinux_v2.0:zst:d5f45b2dac77399b37231c6ec4e864d184d35cf1 +ddc4106c02de28a77e5f7d5e5d83a1089d07544ddd:xz:5934ad0e7c5c9d453fb3d89e59b8ce71bbec3edc +``` \ No newline at end of file