vyadh / teamcity-deployment-dashboard

A TeamCity dashboard to help summarise what app version has been released to what environment.
Apache License 2.0
25 stars 6 forks source link

Document build instructions #23

Closed vyadh closed 4 years ago

vyadh commented 4 years ago

We need to build the frontend via NPM and the backend via Gradle. Ideally the build would be all orchestrated by Gradle, but currently the two parts are separate and the way to do it is not documented, so that at least should be fixed in the short term.

The build is roughly the equivalent of doing the following after a clean checkout:

cd frontend
npm install
set CI=true && npm test
npm run build

cd ..
cp -R frontend/build/* server/src/main/resources/buildServerResources
gradle serverPlugin

mv server/build/distributions/server.zip ./deployment-dashboard.zip
vyadh commented 4 years ago

Created Docker build and wrapper script (build.sh) so explicit instructions no longer really necessary