-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e82995c
commit 9e6a5a9
Showing
11 changed files
with
66 additions
and
155 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#!groovy | ||
@Library('jenkins-shared-library') | ||
import com.sivalabs.JenkinsSharedLib | ||
|
||
properties([ | ||
parameters([ | ||
booleanParam(defaultValue: false, name: 'PUBLISH_TO_DOCKERHUB', description: 'Publish Docker Image to DockerHub?') | ||
]) | ||
]) | ||
|
||
def DOCKER_USERNAME = 'sivaprasadreddy' | ||
def APP_IMAGE_NAME = 'spring-boot-todolist' | ||
|
||
def utils = new JenkinsSharedLib(this, env, params, scm, currentBuild) | ||
|
||
node { | ||
|
||
try { | ||
utils.checkout() | ||
utils.runMavenTests("Test") | ||
utils.publishDockerImage("Publish Docker Image", DOCKER_USERNAME, APP_IMAGE_NAME) | ||
} | ||
catch(err) { | ||
echo "ERROR: ${err}" | ||
currentBuild.result = currentBuild.result ?: "FAILURE" | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,37 @@ | ||
# spring-boot-todolist | ||
Deploying SpringBoot Applications | ||
|
||
A sample SpringBoot application to learn various deployment options. | ||
|
||
## Deployment | ||
|
||
### Run SpringBoot application on a Linux VM | ||
1. Create a VM using Vagrant | ||
2. Provision required software using shell scripts | ||
3. Provision required software using Ansible | ||
4. Create a Vagrant box with required softwares pre-installed and publish to VagrantCloud | ||
5. Run SpringBoot application as a Systemd service | ||
6. Run SpringBoot application as a docker container | ||
|
||
### Run SpringBoot application on AWS EC2 | ||
1. Create an EC2 instance and RDS (Postgres) on AWS using AWS Console | ||
2. Deploy application as a Systemd service using shell scripts/Ansible | ||
|
||
### Run SpringBoot application on AWS EC2 using Terraform | ||
1. Create an EC2 instance and RDS (Postgres) on AWS using Terraform | ||
2. Deploy application as a Systemd service using shell scripts/Ansible | ||
|
||
### Run SpringBoot application on AWS EC2 using CloudFormation | ||
1. Create an EC2 instance and RDS (Postgres) on AWS using CloudFormation | ||
2. Deploy application as a Systemd service using shell scripts/Ansible | ||
|
||
### Run SpringBoot application on AWS EC2 using AWS CDK | ||
1. Create an EC2 instance and RDS (Postgres) on AWS using AWS CDK | ||
2. Deploy application as a Systemd service using shell scripts/Ansible | ||
|
||
### Run SpringBoot application on AWS ECS using CloudFormation | ||
1. Create an EC2 instance and RDS (Postgres) on AWS using CloudFormation | ||
2. Deploy application as a docker container | ||
|
||
### Run SpringBoot application on AWS EKS | ||
1. Create an EKS Cluster | ||
2. Deploy application as a docker container |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
deployment/vagrant/ansible/roles/spring-boot-app/defaults/main.yml
This file was deleted.
Oops, something went wrong.
43 changes: 0 additions & 43 deletions
43
deployment/vagrant/ansible/roles/spring-boot-app/tasks/main.yml
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
deployment/vagrant/ansible/roles/spring-boot-app/templates/app.conf
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
deployment/vagrant/ansible/roles/spring-boot-app/templates/app.service
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
deployment/vagrant/ansible/roles/spring-boot-app/vars/default.yml
This file was deleted.
Oops, something went wrong.
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