Answer the question
In order to leave comments, you need to log in
How to organize the directory structure inside the docker container "correctly"?
There was a dispute with colleagues about the formation of a directory structure inside a Docker container with an application based on Oracle jre + tomcat.
Does it make any sense to leave the path structure to jre and tomcat as it is done in the official containers and use them, or is it more convenient to just put everything in one directory at the root, like /app ?
How convenient / not convenient is each of these methods in daily work / debugging / maintenance?
How is it done in best practice?
Answer the question
In order to leave comments, you need to log in
I don’t know if the answer will help your holivar and colleagues.
Any best practice is primarily based on strict adherence to standards in the area in question.
For Linux, there is the FHS (Filesystem Hierarchy Standard) standard, which describes what, where, where. It is possible not to comply with this standard, but is it necessary? Moreover, the mentioned Tomcat image clearly complies with this standard.
For example, I would replace /app with /jaba-code. Well, why not then? Because we can :)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question