Deploy PostgreSQL in k8s:
kubectl apply -f postgres-storage.yaml
kubectl apply -f postgres-deployment.yaml
kubectl apply -f postgres-service.yaml
Restore backup:
psql -h mitrakoff.com -p 31432 -U mitrakov varlam < backup.sql
Deploy Redis in k8s:
kubectl apply -f redis-deployment.yaml
kubectl apply -f redis-service.yaml
Populate Redis storage (with backup or manually):
set Tommy "..."
Switch to Java8, if necessary
sdk use java 8.302.08.1-amzn
Build FVDS-commons dependency:
# navigate to a library project and run:
mvn install
Change DB passwords:
- in
resources/META-INF/persistence.xml
- in
resources/hibernate.properties
Bump up Varlam version, if necessary:
servlets/VarlamVersion.scala
Build a WAR:
mvn package
Build Docker image:
docker build -t mitrakov/guap .
Log in to Docker hub and push image:
docker push mitrakov/guap
Deploy Guap in k8s (or restart the pod, if deploy already exists):
kubectl apply -f guap-deployment.yaml # to deploy
# or:
kubectl delete pod guap-85bfcdd44f-9s7r9 # to restart
Done!