]> source.dussan.org Git - gitblit.git/commit
Detect and report if running in container
authorFlorian Zschocke <f.zschocke+git@gmail.com>
Thu, 9 Dec 2021 23:10:04 +0000 (00:10 +0100)
committerFlorian Zschocke <f.zschocke+git@gmail.com>
Thu, 9 Dec 2021 23:10:04 +0000 (00:10 +0100)
commit109d6479b411d2ee1439ebf70590030981cbcac7
tree7e1397bf6de47cbe20c7a39f989e60cc148a3ecb
parent14e91e8a1ca3b4b4b0ea54f518805e6409f8705d
Detect and report if running in container

To help with analysis, try to detect if the instance is running inside
a container. Some containers are detected, but this is probably not
exhaustive. At least a Docker container should be detectable.
Report in the runtime manager to the log if a container was detected.
src/main/java/com/gitblit/manager/RuntimeManager.java
src/main/java/com/gitblit/utils/ContainerDetector.java [new file with mode: 0644]