Skip to content

Commit

Permalink
fix(env_dir): Remove directories from the env dir passed to the compile
Browse files Browse the repository at this point in the history
  • Loading branch information
kmala committed Dec 12, 2016
1 parent 2e03d3f commit ebeb922
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion rootfs/builder/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,14 @@ app_dir=/app
build_root=/tmp/build
cache_root=/tmp/cache
cache_file=/tmp/cache.tgz
env_root=/tmp/env
secret_dir=/tmp/env
env_root=/tmp/environment
buildpack_root=/tmp/buildpacks

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

Expand Down Expand Up @@ -97,6 +99,12 @@ REQUEST_ID=$(openssl rand -base64 32)
export REQUEST_ID
export STACK=cedar-14

## copy the environment dir excluding the ephemeral ..data/ dir and other symlinks created by Kubernetes.

if [ "$(ls -A $secret_dir)" ]; then
cp $secret_dir/* $env_root/
fi

## SSH key configuration

if [[ -n "$SSH_KEY" ]]; then
Expand Down

0 comments on commit ebeb922

Please sign in to comment.