This repository has been archived by the owner. It is now read-only.
Adds custom environment variables to dokku builds
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 6 commits ahead, 1 commit behind musicglue:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


Note: dokku-build-env is deprecated in favour of the built-in build-env plugin (since dokku 0.3.9).

Allows you to specify custom environment variables for the build stage of your app. Unlike dokku-user-env-compile, these are not application-specific.


cd /var/lib/dokku/plugins
git clone build-env


Add any environment variables to /home/dokku/BUILD_ENV, like so

export VAR_NAME=value


Amazon S3 kept timing out when pushing, resulting in the following error

 !     Command: 'set -o pipefail; curl --fail --retry 3 --retry-delay 1 --connect-timeout 3 --max-time 30 -s -o - | tar zxf -' failed unexpectedly:
 !     gzip: stdin: invalid compressed data--format violated
 !     tar: Unexpected EOF in archive
 !     tar: Unexpected EOF in archive
 !     tar: Error is not recoverable: exiting now

So I added the following to /home/dokku/BUILD_ENV

export CURL_TIMEOUT=60