- Static content uses the Pug framework.
- Static content is hosted on Google Firebase.
- Arrp compiler service runs on Google Cloud Run.
Prerequisites:
- Docker
- Firebase CLI
- Google Cloud CLI
- Authenticate Docker daemon with Google Cloud:
gcloud auth configure-docker
Updating the compiler service:
- Increment the version number in file
compiler/VERSION
. That will deploy a new service namedarrp-compiler-v<VERSION>
. - Update the service name in rewrite rule in file
firebase.json
. - Update service code in directory
compiler
. Change Arrp git commit ID incompiler/Dockerfile
, etc. - Run
make compiler
to build the Docker image. - Run
make deploy-compiler
to deploy the service on Cloud Run. - Proceed with the static content workflow to test and deploy website with the new service.
Updating the website:
- Update UI code.
- Run
make ui
to generate static content in directorypublic
. - Run
firebase serve
to test website locally (using already deployed services on Cloud Run). - Run
firebase deploy
to deploy static content and configuration infirebase.json
to Firebase.