Conventional directory for application build source [duplicate]

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite













This question already has an answer here:



  • What is the “/usr/local/src” folder meant for?

    2 answers



I know this is rather subject to opinion but what are some good choices where on the file system to locate the source code of a build that the server builds (let's say it's a build/integration server)? E.g. there is /usr/src but I think that is rather a conventional location for shell-related stuff (correct me if wrong). How about /usr/local/src?



E.g. right now I check out foo (one of our apps we integrate) source code in /var/lib/foo but I think that may be a misleading reference. Of course it doesn't matter for execution purposes but I am trying to get in line with the convetions.







share|improve this question













marked as duplicate by amphibient, schily, slm♦ Jun 28 at 3:23


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.














  • oh I think this is answered by unix.stackexchange.com/a/10816/23944. Admin should decide whether to delete this question unless it makes sense to keep it
    – amphibient
    Jun 27 at 15:10






  • 2




    Unfortunately the accepted answer there is slightly wrong (don’t use /usr/local/src for builds).
    – Stephen Kitt
    Jun 27 at 15:12














up vote
0
down vote

favorite













This question already has an answer here:



  • What is the “/usr/local/src” folder meant for?

    2 answers



I know this is rather subject to opinion but what are some good choices where on the file system to locate the source code of a build that the server builds (let's say it's a build/integration server)? E.g. there is /usr/src but I think that is rather a conventional location for shell-related stuff (correct me if wrong). How about /usr/local/src?



E.g. right now I check out foo (one of our apps we integrate) source code in /var/lib/foo but I think that may be a misleading reference. Of course it doesn't matter for execution purposes but I am trying to get in line with the convetions.







share|improve this question













marked as duplicate by amphibient, schily, slm♦ Jun 28 at 3:23


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.














  • oh I think this is answered by unix.stackexchange.com/a/10816/23944. Admin should decide whether to delete this question unless it makes sense to keep it
    – amphibient
    Jun 27 at 15:10






  • 2




    Unfortunately the accepted answer there is slightly wrong (don’t use /usr/local/src for builds).
    – Stephen Kitt
    Jun 27 at 15:12












up vote
0
down vote

favorite









up vote
0
down vote

favorite












This question already has an answer here:



  • What is the “/usr/local/src” folder meant for?

    2 answers



I know this is rather subject to opinion but what are some good choices where on the file system to locate the source code of a build that the server builds (let's say it's a build/integration server)? E.g. there is /usr/src but I think that is rather a conventional location for shell-related stuff (correct me if wrong). How about /usr/local/src?



E.g. right now I check out foo (one of our apps we integrate) source code in /var/lib/foo but I think that may be a misleading reference. Of course it doesn't matter for execution purposes but I am trying to get in line with the convetions.







share|improve this question














This question already has an answer here:



  • What is the “/usr/local/src” folder meant for?

    2 answers



I know this is rather subject to opinion but what are some good choices where on the file system to locate the source code of a build that the server builds (let's say it's a build/integration server)? E.g. there is /usr/src but I think that is rather a conventional location for shell-related stuff (correct me if wrong). How about /usr/local/src?



E.g. right now I check out foo (one of our apps we integrate) source code in /var/lib/foo but I think that may be a misleading reference. Of course it doesn't matter for execution purposes but I am trying to get in line with the convetions.





This question already has an answer here:



  • What is the “/usr/local/src” folder meant for?

    2 answers









share|improve this question












share|improve this question




share|improve this question








edited Jun 27 at 15:08
























asked Jun 27 at 14:55









amphibient

4,38483466




4,38483466




marked as duplicate by amphibient, schily, slm♦ Jun 28 at 3:23


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.






marked as duplicate by amphibient, schily, slm♦ Jun 28 at 3:23


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.













  • oh I think this is answered by unix.stackexchange.com/a/10816/23944. Admin should decide whether to delete this question unless it makes sense to keep it
    – amphibient
    Jun 27 at 15:10






  • 2




    Unfortunately the accepted answer there is slightly wrong (don’t use /usr/local/src for builds).
    – Stephen Kitt
    Jun 27 at 15:12
















  • oh I think this is answered by unix.stackexchange.com/a/10816/23944. Admin should decide whether to delete this question unless it makes sense to keep it
    – amphibient
    Jun 27 at 15:10






  • 2




    Unfortunately the accepted answer there is slightly wrong (don’t use /usr/local/src for builds).
    – Stephen Kitt
    Jun 27 at 15:12















oh I think this is answered by unix.stackexchange.com/a/10816/23944. Admin should decide whether to delete this question unless it makes sense to keep it
– amphibient
Jun 27 at 15:10




oh I think this is answered by unix.stackexchange.com/a/10816/23944. Admin should decide whether to delete this question unless it makes sense to keep it
– amphibient
Jun 27 at 15:10




2




2




Unfortunately the accepted answer there is slightly wrong (don’t use /usr/local/src for builds).
– Stephen Kitt
Jun 27 at 15:12




Unfortunately the accepted answer there is slightly wrong (don’t use /usr/local/src for builds).
– Stephen Kitt
Jun 27 at 15:12










1 Answer
1






active

oldest

votes

















up vote
1
down vote













What is the "/usr/local/src" folder meant for? addresses /usr/src and /usr/local/src. The FHS says those directories should only be used for reference purposes.



For a build system I would use a temporary directory under /tmp, or the home directory of the (system) user which runs the builds, or a dedicated directory under /srv (e.g. /srv/workspace for Jenkins’ workspaces).



I wouldn’t use /var/lib/foo, that’s intended to store foo’s variable state, not its source code.






share|improve this answer























  • I kind of don't like either of those two locations
    – amphibient
    Jun 27 at 15:38






  • 1




    @amphibient /srv might be better, see my update. What don’t you like about /tmp or a home directory?
    – Stephen Kitt
    Jun 27 at 15:43











  • I don't like that those dirs have a general (usually human caused but also often caused by apps) tendency to collect a lot of trash, such as log files and miscellaneous other junk
    – amphibient
    Jun 27 at 15:45

















1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
1
down vote













What is the "/usr/local/src" folder meant for? addresses /usr/src and /usr/local/src. The FHS says those directories should only be used for reference purposes.



For a build system I would use a temporary directory under /tmp, or the home directory of the (system) user which runs the builds, or a dedicated directory under /srv (e.g. /srv/workspace for Jenkins’ workspaces).



I wouldn’t use /var/lib/foo, that’s intended to store foo’s variable state, not its source code.






share|improve this answer























  • I kind of don't like either of those two locations
    – amphibient
    Jun 27 at 15:38






  • 1




    @amphibient /srv might be better, see my update. What don’t you like about /tmp or a home directory?
    – Stephen Kitt
    Jun 27 at 15:43











  • I don't like that those dirs have a general (usually human caused but also often caused by apps) tendency to collect a lot of trash, such as log files and miscellaneous other junk
    – amphibient
    Jun 27 at 15:45














up vote
1
down vote













What is the "/usr/local/src" folder meant for? addresses /usr/src and /usr/local/src. The FHS says those directories should only be used for reference purposes.



For a build system I would use a temporary directory under /tmp, or the home directory of the (system) user which runs the builds, or a dedicated directory under /srv (e.g. /srv/workspace for Jenkins’ workspaces).



I wouldn’t use /var/lib/foo, that’s intended to store foo’s variable state, not its source code.






share|improve this answer























  • I kind of don't like either of those two locations
    – amphibient
    Jun 27 at 15:38






  • 1




    @amphibient /srv might be better, see my update. What don’t you like about /tmp or a home directory?
    – Stephen Kitt
    Jun 27 at 15:43











  • I don't like that those dirs have a general (usually human caused but also often caused by apps) tendency to collect a lot of trash, such as log files and miscellaneous other junk
    – amphibient
    Jun 27 at 15:45












up vote
1
down vote










up vote
1
down vote









What is the "/usr/local/src" folder meant for? addresses /usr/src and /usr/local/src. The FHS says those directories should only be used for reference purposes.



For a build system I would use a temporary directory under /tmp, or the home directory of the (system) user which runs the builds, or a dedicated directory under /srv (e.g. /srv/workspace for Jenkins’ workspaces).



I wouldn’t use /var/lib/foo, that’s intended to store foo’s variable state, not its source code.






share|improve this answer















What is the "/usr/local/src" folder meant for? addresses /usr/src and /usr/local/src. The FHS says those directories should only be used for reference purposes.



For a build system I would use a temporary directory under /tmp, or the home directory of the (system) user which runs the builds, or a dedicated directory under /srv (e.g. /srv/workspace for Jenkins’ workspaces).



I wouldn’t use /var/lib/foo, that’s intended to store foo’s variable state, not its source code.







share|improve this answer















share|improve this answer



share|improve this answer








edited Jun 27 at 15:42


























answered Jun 27 at 15:10









Stephen Kitt

139k22299361




139k22299361











  • I kind of don't like either of those two locations
    – amphibient
    Jun 27 at 15:38






  • 1




    @amphibient /srv might be better, see my update. What don’t you like about /tmp or a home directory?
    – Stephen Kitt
    Jun 27 at 15:43











  • I don't like that those dirs have a general (usually human caused but also often caused by apps) tendency to collect a lot of trash, such as log files and miscellaneous other junk
    – amphibient
    Jun 27 at 15:45
















  • I kind of don't like either of those two locations
    – amphibient
    Jun 27 at 15:38






  • 1




    @amphibient /srv might be better, see my update. What don’t you like about /tmp or a home directory?
    – Stephen Kitt
    Jun 27 at 15:43











  • I don't like that those dirs have a general (usually human caused but also often caused by apps) tendency to collect a lot of trash, such as log files and miscellaneous other junk
    – amphibient
    Jun 27 at 15:45















I kind of don't like either of those two locations
– amphibient
Jun 27 at 15:38




I kind of don't like either of those two locations
– amphibient
Jun 27 at 15:38




1




1




@amphibient /srv might be better, see my update. What don’t you like about /tmp or a home directory?
– Stephen Kitt
Jun 27 at 15:43





@amphibient /srv might be better, see my update. What don’t you like about /tmp or a home directory?
– Stephen Kitt
Jun 27 at 15:43













I don't like that those dirs have a general (usually human caused but also often caused by apps) tendency to collect a lot of trash, such as log files and miscellaneous other junk
– amphibient
Jun 27 at 15:45




I don't like that those dirs have a general (usually human caused but also often caused by apps) tendency to collect a lot of trash, such as log files and miscellaneous other junk
– amphibient
Jun 27 at 15:45


Popular posts from this blog

How to check contact read email or not when send email to Individual?

Bahrain

Postfix configuration issue with fips on centos 7; mailgun relay