diff options
author | Richard Mortier <mort@cantab.net> | 2020-01-03 21:58:53 +0000 |
---|---|---|
committer | Richard Mortier <mort@cantab.net> | 2020-01-03 21:58:53 +0000 |
commit | ec28328015ab6c10f1b672070ff92ccd996ba1d6 (patch) | |
tree | 97fcd885196f04f1a3cf64ee39cd5bf166aa8226 | |
parent | a12beaa82a385da27e7ab04b06957253bac6a6e1 (diff) | |
parent | d7f7a1dd300d087c522ffe24512ab0ff6d3f412a (diff) | |
download | docker-abuild-ec28328015ab6c10f1b672070ff92ccd996ba1d6.tar.bz2 docker-abuild-ec28328015ab6c10f1b672070ff92ccd996ba1d6.tar.xz |
Merge branch 'github/fork/clandmeter/dabuild-conf' into 'master'
add dabuild.conf support
See merge request alpine/docker-abuild!57
-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 |