Unverified Commit c1539e2c authored by Samruddhi Khandale's avatar Samruddhi Khandale Committed by GitHub

Oryx: change path of git repo download (#59)

* change oryx git path

* change oryx install dir

* change ownership

* add debian flavor

* revert codespace:codespace

* temp testing

* attempt to fix stuck action

* remove name

* attempt 2

* remove name

* attempt 3

* nit
parent 63e9392a
name: "test"
on:
pull_request:
paths-ignore:
- ./**/oryx/**
- ./**/java/**
- ./**/dotnet/**
- ./**/php/**
- ./**/node/**
jobs:
test:
runs-on: ubuntu-latest
steps:
- run: 'echo "No build required ; Temporary tweak for merging the PRs until branch protection rules are updated"'
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
"DYNAMIC_INSTALL_ROOT_DIR": "/usr/local/oryx-platforms", "DYNAMIC_INSTALL_ROOT_DIR": "/usr/local/oryx-platforms",
"ORYX_PREFER_USER_INSTALLED_SDKS": "true", "ORYX_PREFER_USER_INSTALLED_SDKS": "true",
"ORYX_DIR": "/usr/local/oryx", "ORYX_DIR": "/usr/local/oryx",
"DEBIAN_FLAVOR": "focal-scm",
"PATH": "${ORYX_DIR}:${PATH}" "PATH": "${ORYX_DIR}:${PATH}"
}, },
"install": { "install": {
......
...@@ -104,7 +104,7 @@ if ! oryx --version > /dev/null ; then ...@@ -104,7 +104,7 @@ if ! oryx --version > /dev/null ; then
BUILD_SCRIPT_GENERATOR=/usr/local/buildscriptgen BUILD_SCRIPT_GENERATOR=/usr/local/buildscriptgen
ORYX=/usr/local/oryx ORYX=/usr/local/oryx
GIT_ORYX=/tmp/oryx GIT_ORYX=/opt/tmp
mkdir -p ${BUILD_SCRIPT_GENERATOR} mkdir -p ${BUILD_SCRIPT_GENERATOR}
mkdir -p ${ORYX} mkdir -p ${ORYX}
...@@ -122,10 +122,10 @@ if ! oryx --version > /dev/null ; then ...@@ -122,10 +122,10 @@ if ! oryx --version > /dev/null ; then
ln -s ${BUILD_SCRIPT_GENERATOR}/GenerateBuildScript ${ORYX}/oryx ln -s ${BUILD_SCRIPT_GENERATOR}/GenerateBuildScript ${ORYX}/oryx
cp -f $GIT_ORYX/images/build/benv.sh ${ORYX}/benv cp -f $GIT_ORYX/images/build/benv.sh ${ORYX}/benv
ORYX_INSTALL_DIR="/usr/local/oryx-platforms" ORYX_INSTALL_DIR="/opt"
mkdir -p "${ORYX_INSTALL_DIR}" mkdir -p "${ORYX_INSTALL_DIR}"
updaterc "export ORYX_SDK_STORAGE_BASE_URL=https://oryx-cdn.microsoft.io && export ENABLE_DYNAMIC_INSTALL=true && DYNAMIC_INSTALL_ROOT_DIR=$ORYX_INSTALL_DIR && ORYX_PREFER_USER_INSTALLED_SDKS=true" updaterc "export ORYX_SDK_STORAGE_BASE_URL=https://oryx-cdn.microsoft.io && export ENABLE_DYNAMIC_INSTALL=true && DYNAMIC_INSTALL_ROOT_DIR=$ORYX_INSTALL_DIR && ORYX_PREFER_USER_INSTALLED_SDKS=true && export DEBIAN_FLAVOR=focal-scm"
chown -R "${USERNAME}:oryx" "${ORYX_INSTALL_DIR}" "${BUILD_SCRIPT_GENERATOR}" "${ORYX}" chown -R "${USERNAME}:oryx" "${ORYX_INSTALL_DIR}" "${BUILD_SCRIPT_GENERATOR}" "${ORYX}"
chmod -R g+r+w "${ORYX_INSTALL_DIR}" "${BUILD_SCRIPT_GENERATOR}" "${ORYX}" chmod -R g+r+w "${ORYX_INSTALL_DIR}" "${BUILD_SCRIPT_GENERATOR}" "${ORYX}"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment