Skip to content

Deployment

justbennet edited this page Feb 13, 2018 · 8 revisions

For this example we'll be installing Methods Core into /usr/local/MethodsCore

  1. The following will work if you have the ssh key needed

    $ git clone [email protected]/UMPsychMethodsCore/MethodsCore /usr/local/MethodsCore

    Otherwise, you can use

    $ git clone https://github.com/UMPsychMethodsCore/MethodsCore.git /usr/local/MethodsCore

    and enter your GitHub account name and password to bootstrap.

  2. $ cd /usr/local/MethodsCore/.deploy

  3. $ ./setup_deployment.sh

    If this is a Brainbox deployment, replace the /usr/local/MethodsCore/.local ssh keys with the generic Brainbox ssh keys; ask Bennet about getting those for now.

  4. $ cd /usr/local/MethodsCore/.local/

  5. Add the deploy.pub public key to the deployment keys on Github unless using the generic Brainbox deployment key(s). If you aren't Mike, send the deploy.pub to him via e-mail or Slack.

  6. If you want to track a branch other than public (like dev) edit the branch file. The currently used branches are public and dev only.

  7. $ cd /usr/local/MethodsCore/.deploy/src

  8. $ ./self_update.sh

Optional

If you need to support spm8Batch command line preprocessing scripts add the following to /etc/profile.d/methodscore.sh

source /usr/local/MethodsCore/spm8Batch/spm8Setup
export MATLABPATH='/usr/local/MethodsCore/SPM/SPM8/spm8_with_R6313'
  1. Add the machine name and PI name to the Deployed Machines
Clone this wiki locally