Skip to content

Commit

Permalink
Kludge to build scripts so that this can be deployed on CF
Browse files Browse the repository at this point in the history
Someone who understands these scripts should fix properly.
  • Loading branch information
aeijdenberg committed Jul 11, 2018
1 parent 30acce8 commit 0d5a24b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion build/customize-build.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
const backendCustomBaseFolder = path.resolve(__dirname, '../custom-src/backend');

// There are no defaults for the backend - its the same as removing all of the custom plugins that be there
doCustomizeBackend(forceDefaults || reset, backendBaseFolder, backendCustomBaseFolder);
//doCustomizeBackend(forceDefaults || reset, backendBaseFolder, backendCustomBaseFolder);
};

function doCustomizeFiles(forceDefaults, reset, customConfig, baseFolder, customBaseFolder) {
Expand Down
13 changes: 7 additions & 6 deletions deploy/cloud-foundry/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,18 @@ find . -name glide.lock -exec sed -i 's/^testImports:$/testImports: []/g' {} \;

cd ${TOP_LEVEL}

echo "Building portal-proxy..."
mkdir -p go/src/github.com/cloudfoundry-incubator
ln -s $PWD go/src/github.com/cloudfoundry-incubator/stratos
GOPATH=$PWD/go go install github.com/cloudfoundry-incubator/stratos/components/app-core
mv go/bin/app-core portal-proxy
rm -rf go

npm install
npm run customize

# Fetch Glide dependencies
npm run cf-get-backend-deps

npm run build-cf

# Build backend components
npm run cf-build-backend

npm run deploy-cf

chmod +x portal-proxy
Expand Down

0 comments on commit 0d5a24b

Please sign in to comment.