- MEAN (MongoDB, Express, Angular, NodeJS)
- Uses Mongoose, a sort of ORM for Mongo, for modeling object schemas and connecting/querying the Mongo database.
There are two stages of building PWA. Building the NPM dependencies, and packaging for RPM/Docker. Both are needed to do a release. Building the dependencies is also needed for creating a development environment.
There is a Makefile
with several different build sections. The most important one, and the one that is needed prior to being able to anything else, is installing the NPM dependencies.
This can be done for production with:
make npm
or for development with:
make npm_dev
It's usually a good idea to clean up old build first:
make clean_all
Currently, the docker build is done manually. This should be added to Jenkins, but there are some. questions we'd have to answer first -- mostly, where do the finished images get pushed?
There is a pscheduler docker build already, but that just build pscheduler in a docker container, then handles the RPMs as usual. In this case, the docker images are the build artifacts. Not sure how to deal with those. These scripts push to dockerhub.
-
Checkout the branch or tag you want to build
-
Change to the docker deploy dir:
cd deploy/docker
-
Edit
version
orbleeding-version
, depending on what you want to build. -
run the appropriate script
./build-all.sh
or
./bleeding-build-all.sh
These scripts build and tag the version you specify in the version file, and push them to Dockerhub.
- See pS Jenkins for exact details
The build process is like this:
make clean_all
make npm
make manifest
make dist
make rpm