Conventional directory for application build source [duplicate]
Clash 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.
directory-structure
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.
add a comment |Â
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.
directory-structure
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
add a comment |Â
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.
directory-structure
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
directory-structure
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
add a comment |Â
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
add a comment |Â
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.
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
add a comment |Â
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.
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
add a comment |Â
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.
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
add a comment |Â
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.
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.
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
add a comment |Â
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
add a comment |Â
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