Skip to content

negimagss/springboot-example-github-actions

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

springboot-example for deploying using Github actions

Spring Boot Example Application

API Endpoint: http://localhost:8080/

Added context:

1: Enable docker super user in EC2, this will cause problems if not addressed

a) groups $USER

b) sudo usermod -aG docker $USER

c) Restart the shell and re login to EC2

  1. sudo systemctl restart docker

  2. Edit incound rules from your EC2 for the port

  3. ls -l /var/run/docker.sock

  4. sudo chown root:docker /var/run/docker.sock

  5. sudo chmod 660 /var/run/docker.sock

  6. docker run hello-world : To check if it works

To install Docker

  1. sudo yum update # Update package repositories (for Amazon Linux/CentOS)

  2. sudo yum install -y yum-utils device-mapper-persistent-data lvm2

  3. sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo

  4. sudo yum install docker-ce docker-ce-cli containerd.io

  5. sudo yum install docker

  6. sudo systemctl start docker

  7. sudo systemctl enable docker

About

Spring Boot Example Application

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 69.2%
  • HTML 28.8%
  • Dockerfile 2.0%