Skip to content

alecmus/kbe-rest-brewery

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kbe-rest-brewery

Spring MVC RESTful API

Based on this and updated to use Spring Framework 6/Spring Boot 3.

Packaging, Building and Pushing to Docker

mvn clean package docker:build docker:push

Docker Commands

Without Layers

These commands are to be run from the root directory of the project.

docker build -f ./src/main/dockerBase/Dockerfile -t alecmus/kbe-rest-brewery .

docker run -p 8080:8080 -d alecmus/kbe-rest-brewery

With Layers

docker build -f ./src/main/docker/Dockerfile -t alecmus/kbe-rest-brewery .

docker run -p 8080:8080 -d alecmus/kbe-rest-brewery

Notes

  • To show the logs in the console while running omit the -d (detached) flag.
  • The -p flag is for publishing all exposed ports to the host interfaces. By specifying -p 8080:8080 we are explicitly mapping the port 8080 within the docker context to the host's port 8080 to allow the application to be accessible via local port 8080 on the host machine.

About

Spring MVC RESTful API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published