Skip to content

sansayin/full-stack-playground

Repository files navigation

Build and Run with Docker

Set Up PostgreSql, Redis and Etcd in Docker

make init-docker

Docker Dev ENV

simply run make

make

this will build within docker env, and out put executable in bin folder.

Make Docker Image

make image

Deploy in KinD(K8s in Docker)

Install KinD

make kind-cluster

Push To Docker Hub

make push

Deploy

make kind-deploy-rpc 
make kind-deploy-api

Use k9s to check nodes

Get IP

kubectl get svc/zero-rest-service -o=jsonpath='{.status.loadBalancer.ingress[0].ip}'

Simple Test

Replace url with IP in prev step

curl -X GET http://$(LB_IP):8888/users

Robotframework Testing

Simple script under test folder after robot env was setup run

cd test
python -m venv
source venv/bin/activate
cd ..
make robot-test