aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Mortier <mort@cantab.net>2019-03-26 15:41:16 +0000
committerRichard Mortier <mort@cantab.net>2019-03-26 15:41:16 +0000
commit4267837e1d071c6cebb1c6fd42dfabf9aed0c3ea (patch)
treee31d416ddb3cbb634e4f3dfd10f11539fcd068db
parentac4c01b614e00f6ff26606a243494c245517cec1 (diff)
downloaddocker-abuild-4267837e1d071c6cebb1c6fd42dfabf9aed0c3ea.tar.bz2
docker-abuild-4267837e1d071c6cebb1c6fd42dfabf9aed0c3ea.tar.xz
readme: attempt to describe what's going on
Signed-off-by: Richard Mortier <mort@cantab.net>
-rw-r--r--README.md26
1 files changed, 26 insertions, 0 deletions
diff --git a/README.md b/README.md
index 2a8c5b0..5170ec8 100644
--- a/README.md
+++ b/README.md
@@ -1 +1,27 @@
# docker-abuild
+
+A Docker-ised `abuild` for invocation from within an `aports/` tree. Attempts to auto-detect which branch of `aports/` is checked out, and use an appropriately based container for running `abuild`.
+
+## Configuration
+
+The `abuild` script is generated from `abuild.in` on `make build`. This ensures synchronisation of volume names. By default, the `abuild` script then uses the Docker image `mor1/abuild`; set the `IMG` variable in the `Makefile` and `make build` to use a different image.
+
+On invocation from within an `aports/` tree, the script will determine the root of the tree (`.../aports/`) and bind mount it into the container at `/home/builder/aports`. It also bind mounts `$HOME/.abuild` for configuration.
+
+## Building without fetching
+
+Per normal usage, if you use the `-K` switch, then the build, source, etc directories will be left alone on completion. If you then invoke as `abuild build`, then the source will not be re-fetched -- useful when you wish to edit the source to debug a package build.
+
+## Caching
+
+The script attempts to support caching via named volumes. To turn on caching, invoke as
+
+``` shell
+DOCKER_ABUILD_CACHE=true abuild [options]
+```
+
+To clean the cache before continuing, invoke as
+
+``` shell
+DOCKER_ABUILD_CACHE=true DOCKER_ABUILD_CLEAN=true abuild [options]
+```