Skip to content

raibarra04/devops-cloud-iaas

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

DevOps Cloud IaaS

This project uses a premade application to showcase how to create a server and deploy the application.

Purpose

Apply DevOps Skills

  1. Create a remote server using a cloud provider.
  2. Configure that server for application requirements.
  3. Create Linux user on server to run application.
  4. Transfer local build Jar file to remote server.
  5. Deploy and run the build file on our remote server.
  6. Configure server firewall to allow inbound connections to port application is running on for TCP connections.

Requirements

Ensure that Java 17 and Gradle 8.11 are installed on the remote server. These are the versions I used to successfully configure and run this application without error. Using other versions may result in an incopatability between versions, resulting in a failure to build and deploy the application.

Build and copy file to remote

gradle build
scp <local jar file> <remote server>

Start Application

java -jar <.jar file>

Adding "&" to the command will run the application in the background

Stop or Kill application

[ctrl + c] will stop the application, but if you decided to run the application in the background with "&", there are some extra steps.

Locate only running java apps

ps aux | grep java

Take the PID column of the running application(process)

kill <pid of your app>

About

Create and configure server to run Java application from a gradle build artifact.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors