We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2e03d3f commit ebeb922Copy full SHA for ebeb922
1 file changed
rootfs/builder/build.sh
@@ -14,12 +14,14 @@ app_dir=/app
14
build_root=/tmp/build
15
cache_root=/tmp/cache
16
cache_file=/tmp/cache.tgz
17
-env_root=/tmp/env
+secret_dir=/tmp/env
18
+env_root=/tmp/environment
19
buildpack_root=/tmp/buildpacks
20
21
mkdir -p $app_dir
22
mkdir -p $cache_root
23
mkdir -p $env_root
24
+mkdir -p $secret_dir
25
mkdir -p $buildpack_root
26
mkdir -p $build_root/.profile.d
27
@@ -97,6 +99,12 @@ REQUEST_ID=$(openssl rand -base64 32)
97
99
export REQUEST_ID
98
100
export STACK=cedar-14
101
102
+## copy the environment dir excluding the ephemeral ..data/ dir and other symlinks created by Kubernetes.
103
+
104
+if [ "$(ls -A $secret_dir)" ]; then
105
+ cp $secret_dir/* $env_root/
106
+fi
107
108
## SSH key configuration
109
110
if [[ -n "$SSH_KEY" ]]; then
0 commit comments