oryx: change and own DYNAMIC_INSTALL_ROOT_DIR

This commit is contained in:
Samruddhi Khandale 2022-06-09 18:13:08 +00:00 committed by GitHub
parent b9914bad93
commit 99bfaeb5ab
2 changed files with 6 additions and 3 deletions

View file

@ -5,7 +5,7 @@
"PATH": "usr/local/oryx:${PATH}",
"ORYX_SDK_STORAGE_BASE_URL": "https://oryx-cdn.microsoft.io",
"ENABLE_DYNAMIC_INSTALL": "true",
"DYNAMIC_INSTALL_ROOT_DIR": "/usr/local"
"DYNAMIC_INSTALL_ROOT_DIR": "/tmp/oryx-platforms"
},
"install": {
"app": "",

View file

@ -118,8 +118,11 @@ if ! oryx --version > /dev/null ; then
ln -s ${BUILD_SCRIPT_GENERATOR}/GenerateBuildScript ${ORYX}/oryx
cp -f $GIT_ORYX/images/build/benv.sh ${ORYX}/benv
updaterc "export PATH=$PATH:/usr/local/oryx && export ORYX_SDK_STORAGE_BASE_URL=https://oryx-cdn.microsoft.io && export ENABLE_DYNAMIC_INSTALL=true && DYNAMIC_INSTALL_ROOT_DIR=/usr/local"
chown -R ${USERNAME} /usr/local/
ORYX_INSTALL_DIR="/tmp/oryx-platforms"
mkdir -p "${ORYX_INSTALL_DIR}"
chown -R ${USERNAME} "${ORYX_INSTALL_DIR}"
updaterc "export PATH=$PATH:/usr/local/oryx && export ORYX_SDK_STORAGE_BASE_URL=https://oryx-cdn.microsoft.io && export ENABLE_DYNAMIC_INSTALL=true && DYNAMIC_INSTALL_ROOT_DIR=$ORYX_INSTALL_DIR"
fi
echo "Done!"