Skip to content

Commit

Permalink
Merge pull request #85 from bacongobbler/add-env-root
Browse files Browse the repository at this point in the history
feat(builder): inject ENV_DIR into the environment
  • Loading branch information
Matthew Fisher authored Aug 1, 2016
2 parents 3131bad + 152680b commit 330e4a0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions rootfs/builder/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,12 @@ unset DEIS_DEBUG
app_dir=/app
build_root=/tmp/build
cache_root=/tmp/cache
env_root=/tmp/env
buildpack_root=/tmp/buildpacks

mkdir -p $app_dir
mkdir -p $cache_root
mkdir -p $env_root
mkdir -p $buildpack_root
mkdir -p $build_root/.profile.d

Expand Down Expand Up @@ -145,9 +147,9 @@ fi

## Buildpack compile

"$selected_buildpack/bin/compile" "$build_root" "$cache_root" | ensure_indent
"$selected_buildpack/bin/compile" "$build_root" "$cache_root" "$env_root" | ensure_indent

"$selected_buildpack/bin/release" "$build_root" "$cache_root" > $build_root/.release
"$selected_buildpack/bin/release" "$build_root" > $build_root/.release

## Run post-compile hook

Expand Down

0 comments on commit 330e4a0

Please sign in to comment.