https://github.com/christiangracia/marketfeels.com-java-api
This repo contains a Dockerized Java Spring Boot API that auths with JWT, uses PostgreSQl, and is run in a pod with Kubernetes for marketfeels.com. Hosted on Google Cloud GKE
https://github.com/christiangracia/marketfeels.com-java-api
api docker java jwt kubernetes spring-boot
Last synced: 3 months ago
JSON representation
This repo contains a Dockerized Java Spring Boot API that auths with JWT, uses PostgreSQl, and is run in a pod with Kubernetes for marketfeels.com. Hosted on Google Cloud GKE
- Host: GitHub
- URL: https://github.com/christiangracia/marketfeels.com-java-api
- Owner: ChristianGracia
- Created: 2021-01-14T01:55:23.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-01-25T02:47:39.000Z (over 5 years ago)
- Last Synced: 2025-01-17T18:32:56.072Z (over 1 year ago)
- Topics: api, docker, java, jwt, kubernetes, spring-boot
- Language: Java
- Homepage: https://marketfeels.com
- Size: 80.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# stock-site-back-end-k8
This repo contains a Dockerized Java Spring Boot API back-end that is part of a many pods in a Kubernetes cluster
## Installation
build jar
`mvnw package && java -jar target/cg-stock-site-0.0.1-SNAPSHOT.jar`
build docker image
`docker build -t stock-site-back-end .`
run docker container
`docker container run --publish 8080:8080 --detach stock-site-back-end`
## Google Cloud Installation
clone this repo in google cloud shell
cd into cloned repo
in google cloud shell type:
`./mvnw -DskipTests package`
`mvn clean package`
**sending to google cloud container registry**
build
`docker build -t java-api .`
tag
`docker tag java-api us.gcr.io/marketfeels/java-api:latest`
push
`docker push us.gcr.io/marketfeels/java-api`