npm install
node server.js
(startup file)brew services start postgresql
brew services stop postgresql
ssh root@104.248.122.189
sudo dnf module enable postgresql:16
sudo dnf install postgresql-server
sudo systemctl start postgresql
sudo systemctl enable postgresql
sudo dnf module install nodejs:18/common
scp -r /Users/anirbandutta/Desktop/src/webapp-1.zip root@104.248.122.189:/root/src
curl -v -XPOST "http://localhost:8080/healthz"
packer init file-name
packer fmt file-name
packer validate file-name
packer build file-name
The machine image gets stored in Google cloud under project_name -> images
- build.yaml : installs all the dependencies of node
- tests.yml : runs tests to create user, get details, and update them. Runs on PR raised and PR merged
- packer-build.yml: builds machine image and stores in google cloud after PR is merged
- packer-validate.yml: runs packer fmt and packer validate on PR raised