Skip to content

negimagss/springboot-example-github-actions

This branch is 29 commits ahead of integrationninjas/springboot-example:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

23bf3f4 · Oct 16, 2024

History

49 Commits
Jul 1, 2024
Jul 1, 2024
Aug 15, 2023
Jul 1, 2024
Oct 16, 2024
Aug 15, 2023
Aug 15, 2023
Jan 14, 2024

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%