Skip to content

Example project for Spring Boot application running inside a read-only docker container

License

Notifications You must be signed in to change notification settings

osiegmar/spring-boot-docker-readonly

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spring Boot application in read-only docker container

Example project for Spring Boot application running inside a read-only docker container.

Basically these steps are currently required:

  • Add server.tomcat.basedir=/tmp/tomcat to application.properties
  • Create /tmp/tomcat and static within Dockerfile

See spring-projects/spring-boot#8578 for background information.

Steps to build and run this application

./gradlew build
docker build -t spring-boot-docker-readonly .
docker run -ti --rm --read-only spring-boot-docker-readonly

Warning

Don't consider this as a recommended solution! It's a ugly hack - for demonstration purposes only!

About

Example project for Spring Boot application running inside a read-only docker container

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages