Spring Boot as a Service
Blog post from Octopus Deploy
Matthew Casperson's blog post from February 18, 2018, discusses deploying Spring Boot applications as fully executable JAR files on a Linux environment, specifically an EC2 instance created via an AWS CloudFormation template with Octopus Deploy. The post outlines the process, including the configuration of AWS and SSH accounts, creating an executable JAR using the Spring Boot Maven plugin, and setting up machine policies in Octopus to manage dynamic IP addresses for EC2 instances. It details the deployment workflow, which involves transferring the JAR file to the EC2 instance, registering the instance with Octopus, and installing the application as a Linux service. Additionally, the blog covers using CloudFormation to define security groups, configure instance properties, and manage the installation of necessary dependencies like DotNET Core and Java. The deployment involves steps like health checks and package transfers, and concludes with verifying the application as a running service, illustrating the efficiency and convenience of using fully executable JARs with Octopus for managing cloud-based Spring Boot services.