npm installnode server.js(startup file)brew services start postgresqlbrew services stop postgresql
ssh root@104.248.122.189sudo dnf module enable postgresql:16sudo dnf install postgresql-serversudo systemctl start postgresqlsudo systemctl enable postgresqlsudo dnf module install nodejs:18/commonscp -r /Users/anirbandutta/Desktop/src/webapp-1.zip root@104.248.122.189:/root/srccurl -v -XPOST "http://localhost:8080/healthz"
packer init file-namepacker fmt file-namepacker validate file-namepacker 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