This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Package for Log4R | |
library("log4r") | |
# Default Logger | |
default_logger <- logger() | |
# Debug level enabled Logger (by default DEBUG level is suppressed) | |
debug_logger <- logger("DEBUG") | |
# File Logger |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Apply configuration | |
kubectl create -f lagom-k8s-app.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
apiVersion: extensions/v1beta1 | |
kind: Deployment | |
metadata: | |
name: menu | |
labels: | |
app: menu | |
spec: | |
replicas: 1 | |
template: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Create RBAC | |
kubectl create -f lagom-on-k8s-rbac.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
# | |
# Create a role, `pod-reader`, that can list pods and | |
# bind the default service account in the `default` namespace | |
# to that role. | |
# | |
kind: Role | |
apiVersion: rbac.authorization.k8s.io/v1 | |
metadata: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Build Docker Image | |
eval $(minikube docker-env) | |
mvn clean package docker:build -P kubernetes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Start Minikube | |
(minikube delete || true) &>/dev/null && minikube start --memory 2048 && eval $(minikube docker-env) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.knoldus.lagom.sample.restaurant.menu.impl; | |
import akka.actor.ActorSystem; | |
import akka.management.AkkaManagement$; | |
import akka.management.cluster.bootstrap.ClusterBootstrap$; | |
import com.google.inject.AbstractModule; | |
import com.google.inject.Inject; | |
import com.knoldus.lagom.sample.restaurant.menu.api.MenuService; | |
import com.lightbend.lagom.javadsl.server.ServiceGuiceSupport; | |
import com.typesafe.config.Config; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
play { | |
akka.actor-system = menu | |
modules.enabled += com.knoldus.lagom.sample.restaurant.menu.impl.MenuModule | |
http.secret.key = none | |
} | |
lagom.persistence.ask-timeout = 10s |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- for reactive-lib kubernetes api --> | |
<dependency> | |
<groupId>com.lightbend.lagom</groupId> | |
<artifactId>api-tools_2.12</artifactId> | |
<version>1.4.8</version> | |
</dependency> | |
<dependency> | |
<groupId>com.lightbend.rp</groupId> | |
<artifactId>reactive-lib-akka-cluster-bootstrap_2.12</artifactId> | |
<version>0.9.2</version> |
NewerOlder