Skip to content

Latest commit

 

History

History
55 lines (43 loc) · 1.14 KB

README.md

File metadata and controls

55 lines (43 loc) · 1.14 KB

HSW BE Service

Site: https://www.hackerupdates.com

Used libraries

  • spring-boot-starter-web
  • spring-boot-starter-data-jpa
  • spring-boot-starter-validation
  • spring-boot-starter-security
  • spring-boot-starter-cache
  • spring-boot-starter-data-redis
  • spring-boot-starter-test
  • springdoc-openapi
  • mapstruct
  • h2
  • Lombok
  • rest-assured
  • shedlock
  • postgresql

Follow the below steps to containerize the application

# Build the project
$ mvn clean package

# Build Docker image
$ docker build --tag=hsw:latest -f Dockerfile-app .
$ docker build --tag=nginx-hsw:latest -f Dockerfile-site .

# Run App, DB, HttpServer on Docker
$ docker-compose up -d

or

# Build the project
$ mvn clean package

# Build Docker image
$ docker build --tag=hsw:latest -f Dockerfile-app .
$ docker build --tag=nginx-hsw:latest -f Dockerfile-site .

# Run App, DB, HttpServer on Kubernetes
$ kubectl apply -f kube-postgres-pvc.yaml
$ kubectl apply -f kube-postgres.yaml
$ kubectl apply -f kube-redis-pvc.yaml
$ kubectl apply -f kube-redis.yaml
$ kubectl apply -f kube-hsw.yaml
$ kubectl apply -f kube-nginx.yaml