diff options
-rw-r--r-- | dabuild.conf | 32 | ||||
-rwxr-xr-x | dabuild.in | 5 |
2 files changed, 37 insertions, 0 deletions
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= @@ -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 |