The Portworx BBQ app is a Golang web application with a Mongo Database Backend. The files in this repository include the application and dependencies, along with a Dockerfile to build the container, and Kubernetes manifests to deploy in a cluster.
To run in a Kubernetes cluster just cd
to the Kubernetes folder and run the manifests in numbered order. The defaults should work if manifests are unchanged. If you wish to change the connection strings for the Portworx BBQ web app connection to MongoDB, change the ENV variables in the manifest. (MONGO_HOST, MONGO_USER,MONGO_PASS)
This will deploy:
- A namespace
- Mongo DB Container (from dockerhub)
- Portworx BBQ App (from dockerhub)
To run the Portworx BBQ App in docker run:
docker run --name pxbbq -e MONGO_HOST=localhost -e MONGO_USER=porxie -e MONGO_PASS=porxie eshanks16/pxbbq:v1
- Clone the repository
cd
to the porxbbq directory- Run
go mod tidy go run server.go