Skip to content

Developer Notes

Kartikey Mamgain edited this page Mar 30, 2022 · 3 revisions

Running locally connecting to remote database

You can install database in a kubernetes cluster and port forward the service. example:

kubectl port-forward svc/hippo-pgbouncer 5432:5432 -n testing

Update the database details in bindings/postgres directory. Set the environment variable SERVICE_BINDING_ROOT to bindings directory.

export SERVICE_BINDING_ROOT=`pwd`/bindings

Building and pushing docker images

First login

echo $CR_PAT | docker login ghcr.io -u USERNAME --password-stdin

Build an image

docker build -t ghcr.io/shopbasket/shopbasket:latest .

Push and image

docker push ghcr.io/shopbasket/shopbasket:latest
Clone this wiki locally