Skip to content
This repository has been archived by the owner on Feb 6, 2022. It is now read-only.

pdiroot/java-docker-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 

Repository files navigation

Example Java application in Docker

Local environment

Run application in docker-compose:

./application/run.sh

Publish application images to docker registry:

./application/publish.sh

Production environment

Prerequisites

To usethis example you need to have installed and configured: AWS CLI tools, terraform, kubectl.

Deploy application to Kubernetes cluster

Deploy all infrastructure tiers:

./deployment/infrastructure/deploy.sh foundation
./deployment/infrastructure/deploy.sh application
./deployment/infrastructure/deploy.sh database

Get K8s config file to manage EKS cluster:

aws --region eu-central-1 --profile usatellite-terraform eks update-kubeconfig --name workshop

Deploy the application

kubectl apply -f ./deployment/kubernetes