Skip to content

GeoCENS/dokku-build-env

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 

Repository files navigation

dokku-build-env

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

Installation

cd /var/lib/dokku/plugins
git clone https://github.com/cameron-martin/dokku-build-env.git build-env

Usage

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

export VAR_NAME=value

Example

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 https://s3-external-1.amazonaws.com/heroku-buildpack-ruby/ruby-2.0.0.tgz -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
export CURL_CONNECT_TIMEOUT=30

About

Adds user env to the build step

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%