aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Mortier <mort@cantab.net>2019-10-25 15:21:00 +0100
committerRichard Mortier <mort@cantab.net>2019-11-18 21:29:15 +0000
commit51df022aec89a842111e03a4074e10de5d865381 (patch)
tree320c9cd7b18fa9b47b706ad511b049e9fc2fd04a
parent76335533f5bff8e961ace9ed4d7585d67c45844c (diff)
downloaddocker-abuild-51df022aec89a842111e03a4074e10de5d865381.tar.bz2
docker-abuild-51df022aec89a842111e03a4074e10de5d865381.tar.xz
dabuild: more helpful error message, list possible `$ARCH` in `README`
Signed-off-by: Richard Mortier <mort@cantab.net>
-rw-r--r--README.md16
-rwxr-xr-xdabuild.in3
2 files changed, 16 insertions, 3 deletions
diff --git a/README.md b/README.md
index b566df5..7cf3865 100644
--- a/README.md
+++ b/README.md
@@ -4,6 +4,18 @@
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`.
+## Supported architectures
+
+Currently supported architectures are (as reported by `uname -m`):
+
+ * x86
+ * x86_64
+ * aarch64
+ * armv6
+ * armv7
+ * armv7l
+ * armv8
+
## Configuration
The `dabuild` script is generated from `dabuild.in` on `make dabuild`. This ensures synchronisation of volume names. By default, the `dabuild` script then uses the Docker image `mor1/dabuild`. To use a different image, set the `IMG` variable in the `Makefile` and then `make dabuild`.
@@ -30,5 +42,5 @@ DABUILD_CACHE=true DABUILD_CLEAN=true abuild [options]
## Known Issues
- * Docker doesn't support IPv6 well, so if a package's tests make use of IPv6 they are likely to fail. Observed with `community/libgdata` and [fixed](https://github.com/alpinelinux/aports/pull/7597).
- * Due to what appears to be an issue with Docker for Desktop (at least on OSX), packages that untar symlinks to files that appear later in the tarball fail after untarring. Observed with `main/bash`. Workaround: just rerun the build, leaving the untarred files in place.
+ * Docker doesn't support IPv6 well, so if a package's tests make use of IPv6 they may well fail. Observed with `community/libgdata` and [fixed](https://github.com/alpinelinux/aports/pull/7597).
+ * Due to what appears to be an issue with Docker for Desktop (at least on OSX), packages that untar symlinks to files that appear later in the tarball fail after untarring. Observed with `main/bash`. Workaround: just rerun the build, leaving the untarred files in place. [Issue raised](https://github.com/alpinelinux/docker-abuild/issues/21).
diff --git a/dabuild.in b/dabuild.in
index e3c4326..b447562 100755
--- a/dabuild.in
+++ b/dabuild.in
@@ -27,7 +27,8 @@ fi
[ ! "$DABUILD_ARCH" ] && DABUILD_ARCH=$(uname -m)
case "$DABUILD_ARCH" in
x86|x86_64|aarch64|armv6|armv7|armv7l|armv8 ) ;;
- * ) die "Unsupported arch \"$DABUILD_ARCH\" detected." ;;
+ * ) die "Unsupported arch \"$DABUILD_ARCH\" detected." \
+ "Expected one of: x86|x86_64|aarch64|armv6|armv7|armv7l|armv8";;
esac
## use branch to figure out most appropriate alpine version