diff --git a/.gitignore b/.gitignore index 1872ae8..af78da8 100644 --- a/.gitignore +++ b/.gitignore @@ -10,3 +10,5 @@ /docker/ # apt package repository /repo/ +# local config +/local-config.sh diff --git a/local-config-example.sh b/local-config-example.sh new file mode 100644 index 0000000..a1f3a0b --- /dev/null +++ b/local-config-example.sh @@ -0,0 +1,18 @@ +# dbuild local configuration example +# +# Copy this file to `local-config.sh` and customize for your site +# +# The below examples are intended for many use cases; see +# `scripts/base-config.sh`, `scripts/packages/*.sh` and +# `scripts/distro/*.sh` for more variables to customize + +# http/https proxy for package downloads +#HTTP_PROXY=http://192.168.0.42:3128 + +# Whether to always allocate a tty in Docker (true/false) +# +# A bug in Docker pre-1.1.1 prevents command exit status from the +# `docker run` command when a tty is allocated. Set to `false` if you +# need exit status from Docker. +#DOCKER_ALWAYS_ALLOCATE_TTY=true + diff --git a/scripts/init-cli.sh b/scripts/init-cli.sh index 968b501..8d153ea 100644 --- a/scripts/init-cli.sh +++ b/scripts/init-cli.sh @@ -204,6 +204,11 @@ if test -n "$PACKAGE"; then . $PACKAGE_CONFIG_DIR/$PACKAGE.sh fi +# Source optional config override file +if test -f $BASE_DIR/local-config.sh; then + debug " Sourcing local config" + . $BASE_DIR/local-config.sh +fi # Debug ! $DDEBUG || set -x