Open kcranston opened 4 years ago
For the version with ws enabled, we have
Applications/otcetera/otcetera -- source Applications/otcetera/build -- build Applications/otcetera/local -- install
I'd like to change this to:
Applications/otcetera/git -- source Applications/otcetera/build -- build Applications/otcetera/local -- install
The layout for rested seems similar.
There are a number of reasonable ways to tweak this, what were you thinking? I guess the main thing is to keep the source, build, and install directories different, and to use separate install directories for restbed and otcetera. Installing C++ applications seems different than installing python applications.
-BenRI
On 6/1/20 9:16 AM, Karen Cranston wrote:
Looking at locations of where things get cloned / downloaded / installed / etc:
*
|$HOME/repo| directory where we clone + install peyotl, ws-wrapper, opentree, phylesystem, amendments, collections; created in functions.sh <https://urldefense.com/v3/__https://github.com/OpenTreeOfLife/germinator/blob/1def898e2181250385b86402cce4a432409927f3/deploy/setup/functions.sh__;!!OToaGQ!7snU1nzGQ1HO3xHyVIUXJfkuJ9Z_R5l514gzfJ04JJJPx3fBuiPGaMLnS6wAGIW598g9uBY$> and used in install-api.sh <https://urldefense.com/v3/__https://github.com/OpenTreeOfLife/germinator/blob/38cb084f8c39c2ed895090b794c8589038a10fe8/deploy/setup/install-api.sh__;!!OToaGQ!7snU1nzGQ1HO3xHyVIUXJfkuJ9Z_R5l514gzfJ04JJJPx3fBuiPGaMLnS6wAGIW5g3nndys$> and install-common.sh <https://urldefense.com/v3/__https://github.com/OpenTreeOfLife/germinator/blob/78c800288631fa4e06efa160e1c3b1c06049cf5b/deploy/setup/install-common.sh__;!!OToaGQ!7snU1nzGQ1HO3xHyVIUXJfkuJ9Z_R5l514gzfJ04JJJPx3fBuiPGaMLnS6wAGIW5rU5suVs$>
*
|$HOME/Applications| directory where we clone and install otcetera, restbed in install-otcetera.sh <https://urldefense.com/v3/__https://github.com/OpenTreeOfLife/germinator/blob/1def898e2181250385b86402cce4a432409927f3/deploy/setup/install-otcetera.sh__;!!OToaGQ!7snU1nzGQ1HO3xHyVIUXJfkuJ9Z_R5l514gzfJ04JJJPx3fBuiPGaMLnS6wAGIW5KrIpOfU$>
Is this the same structure that we want going forward with ansible?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://urldefense.com/v3/__https://github.com/OpenTreeOfLife/ot-ansible/issues/5__;!!OToaGQ!7snU1nzGQ1HO3xHyVIUXJfkuJ9Z_R5l514gzfJ04JJJPx3fBuiPGaMLnS6wAGIW56WYcuV4$, or unsubscribe https://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/AABCH3CGRVVBGJMEVNJQ4OTRUPH5JANCNFSM4NP6LBIA__;!!OToaGQ!7snU1nzGQ1HO3xHyVIUXJfkuJ9Z_R5l514gzfJ04JJJPx3fBuiPGaMLnS6wAGIW5Co2PGyc$.
I think we can go with either. Having both was (I think) an attempt to make sure that experiments with ansible not over-writing germinator deployments. I think that was @bredelings . So, I don't think we need both. On "nexttree" we (read "@mtholder") had a different directory for building the synth tree and a different one for serving the tree. Neither were repo or Applications)
We might want to maintain the convention of having a dir for synth and another dir for serving the tree. but i don't care what the names are.
EDIT: just noting that I wrote this before seeing Ben's post. so it is a response to Karen.
From conversation on gitter, going to keep everything that we download (+install) from github in repos
. The build
dir(s) should not be inside the source code repos (either sister to, or in a separate parent, perhaps Applications
).
I think I left my comment without refreshing this page. I like both @bredelings suggestion about separating the c++ apps and also @mtholder structure on nexttree.
On dev / production, ls $HOME
:
cpp_apps
- otcetera and restbed, each in their own dir with the subdirectories suggested by @bredelings
repos
- all other repos
downloads
- destination for various wgets
unpacked
- destination for unpacked tarballs
on nexttree, ls $HOME
:
synth_dir
- everything related to building the synthetic tree
ws_dir
- everything related to serving the tree
Directory structures within ws_dir
will be same / similar to $HOME on dev/prod.
Sounds good. If you want to move the git source for cpp apps under repo
, so that ls otcetera
would show build/
and local/
that seems equally good. Or I guess you could make a symlink from otcetera/git
to repos/otcetera
....... OK, enough bike-shedding!
Looking at locations of where things get cloned / downloaded / installed / etc:
$HOME/repo
directory where we clone + install peyotl, ws-wrapper, opentree, phylesystem, amendments, collections; created in functions.sh and used in install-api.sh and install-common.sh$HOME/Applications
directory where we clone and install otcetera, restbed in install-otcetera.shIs this the same structure that we want going forward with ansible?