Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/shivamka1/prime-grpc-scala


https://github.com/shivamka1/prime-grpc-scala

Last synced: about 8 hours ago
JSON representation

Awesome Lists containing this project

README

        

# prime-grpc-scala

## Dev
Lagom plugin exposes single `runAll` command to start all services besides service locator and service gateway. All the APIs could be reached `@localhost:9000`.
```
$ sbt runAll
```

## Deploy
1. Install minikube
```sh
$ ./deploy/scripts/setup-minikube-for-linux.sh
```

2. Publish docker images
```sh
$ sbt prime-generator/docker:publishLocal -Ddocker.username=iamsmkr -Ddocker.registry=index.docker.io
$ sbt prime-proxy-impl/docker:publishLocal -Ddocker.username=iamsmkr -Ddocker.registry=index.docker.io
```

3. Create application secret
```sh
$ kubectl create secret generic application-secret --from-literal=secret="$(openssl rand -base64 48)"
```

4. Apply k8s manifests
```sh
$ kubectl apply -f deploy/k8s/config-map.yml
$ kubectl apply -f deploy/k8s/prime-generator.yml
$ kubectl apply -f deploy/k8s/prime-proxy.yml
```

## Usage
```sh
$ curl --header 'Host: primeservice.com' $(sudo -E minikube ip)/prime/23
```