aboutsummaryrefslogtreecommitdiffstats
path: root/abuild
diff options
context:
space:
mode:
authorRichard Mortier <mort@cantab.net>2019-03-26 12:01:07 +0000
committerRichard Mortier <mort@cantab.net>2019-03-26 12:01:07 +0000
commit1ee5cd4671176df7acac88ae9cca6355aa845663 (patch)
tree6f6cc2de3c97313fddb74003579d7e405021c2a2 /abuild
parent5516721cc61695dcd3b427e4db546e9281d6c9fe (diff)
downloaddocker-abuild-1ee5cd4671176df7acac88ae9cca6355aa845663.tar.bz2
docker-abuild-1ee5cd4671176df7acac88ae9cca6355aa845663.tar.xz
abuild: rename to template
Signed-off-by: Richard Mortier <mort@cantab.net>
Diffstat (limited to 'abuild')
-rwxr-xr-xabuild45
1 files changed, 0 insertions, 45 deletions
diff --git a/abuild b/abuild
deleted file mode 100755
index 05f1fe8..0000000
--- a/abuild
+++ /dev/null
@@ -1,45 +0,0 @@
-#!/bin/sh
-
-set -e
-
-## debug
-if [ "$DOCKER_ABUILD_DEBUG" = "true" ]; then
- set -x
- PS4='$LINENO: '
-fi
-
-if [ "${PWD%*/aports*}" = "$PWD" ]; then
- echo "Error: expecting to be run from within an aports tree!"
- echo "Could not find '/aports' in the current path ($PWD)"
- exit 1
-fi
-
-# use branch to figure out most appropriate alpine version
-if [ -z "$DOCKER_ABUILD_VERSION" ]; then
- ABUILD_BRANCH=$(git status | head -1)
- ABUILD_BRANCH="${ABUILD_BRANCH##*[ /]}"
- ABUILD_BRANCH="${ABUILD_BRANCH%-stable}"
-
- case $ABUILD_BRANCH in
- [[:digit:]].[[:digit:]] )
- ALPINE_VERSION=$ABUILD_BRANCH
- ;;
- * )
- ALPINE_VERSION=edge
- ;;
- esac
-else
- ALPINE_VERSION=$DOCKER_ABUILD_VERSION
-fi
-
-ABUILD_VOLUMES="
- -v ${HOME}/.abuild:/home/builder/.abuild
- -v ${PWD%/aports*}/aports:/home/builder/aports
-"
-for v in %%ALPINE_VOLUMES%%; do
- ABUILD_VOLUMES="$ABUILD_VOLUMES -v alpine-$ALPINE_VERSION-$v:/$v"
-done
-
-ABUILD_WORKDIR=/home/builder/aports${PWD#*/aports}
-DOCKER="docker run -ti $ABUILD_VOLUMES -e DOCKER_ABUILD_DEBUG $DOCKER_ABUILD_ARGS"
-$DOCKER --workdir $ABUILD_WORKDIR mor1/abuild:$ALPINE_VERSION "$@"