From d7f7a1dd300d087c522ffe24512ab0ff6d3f412a Mon Sep 17 00:00:00 2001 From: Carlo Landmeter Date: Tue, 31 Dec 2019 02:31:49 +0100 Subject: add dabuild.conf support --- dabuild.conf | 32 ++++++++++++++++++++++++++++++++ dabuild.in | 5 +++++ 2 files changed, 37 insertions(+) create mode 100644 dabuild.conf diff --git a/dabuild.conf b/dabuild.conf new file mode 100644 index 0000000..227bb92 --- /dev/null +++ b/dabuild.conf @@ -0,0 +1,32 @@ +# docker-abuild (dabuild) configuration file +# uncomment to enable (defaults and options are provided) +# NOTE: these settings will override environment variables + +# Override hosts architecture for build container. +# Options are: x86|x86_64|aarch64|armhf|armv7 +# DABUILD_ARCH=$(uname -m) + +# Arguments to Passed through to the container run command line. +# DABUILD_ARGS= + +# Create and use Docker named volumes as caches for the running container, +# persisting changes across invocations +# DABUILD_CACHE=false + +# If set while DABUILD_CACHE=true then remove and recreate the volumes +# acting as caches. +# DABUILD_CLEAN=false + +# Output debug messages to stdout. +# DABUILD_DEBUG=false + +# Sets the CLI tool to use to run the container. +# Options are docker or podman. +# DABUILD_DOCKER=docker + +# Do not remove intermediate containers if set to false. +# DABUILD_RM=true + +# Sets the Alpine version of the container in which the abuild invocation takes +# place. Defaults to your aports current branch, either N.N-stable or edge +# DABUILD_VERSION= diff --git a/dabuild.in b/dabuild.in index c761c7e..6eae27a 100755 --- a/dabuild.in +++ b/dabuild.in @@ -10,6 +10,11 @@ die () { exit 1 } +# source the configuration if available +if [ -f "/etc/dabuild.conf" ]; then + . /etc/dabuild.conf +fi + ## debug if [ "$DABUILD_DEBUG" = "true" ]; then set -x -- cgit v1.2.3