Installation instructions for MacOS #1
50
README.md
|
|
@ -9,8 +9,54 @@ https://github.com/psychoinformatics-de/processing-workflow.
|
|||
|
||||
|
Yes, I agree. Yes, I agree.
Sounds good. :) Sounds good. :)
It could become a footnote. The intended meaning was: "If you wan't to spare yourself trouble of installing Singularity by yourself, this is the way to go." It could become a footnote.
The intended meaning was: "If you wan't to spare yourself trouble of installing Singularity by yourself, this is the way to go."
Agree, I would only split it into smaller chunks like so:
Agree, I would only split it into smaller chunks like so:
```suggestion
Lastly, install the required software in your VM, as if your operating system was Linux. Please follow instructions described in the ["Software requirements for automatic recomputation"](#software-requirements-for-automatic-recomputation) section above.
```
I believe this needs to be done once the VM is initialised, so after: There's a possibility that you need to take your VM down and up again for the configuration changes to be applied. I believe this needs to be done once the VM is [initialised](https://www.vagrantup.com/docs/cli/init), so after:
```
$ export VM=debian/buster64 && \
vagrant init $VM
```
There's a possibility that you need to take your VM down and up again for the configuration changes to be applied.
Makes sense! its probably just fair to link to this upfront, so that people that do want to spare themselves the trouble know about this right away. > The intended meaning was: "If you wan't to spare yourself trouble of installing Singularity by yourself, this is the way to go."
Makes sense! its probably just fair to link to this upfront, so that people that do want to spare themselves the trouble know about this right away.
cool, sounds great! cool, sounds great!
ok, cool. Do you want to add this, or refer to the docs for it? ok, cool. Do you want to add this, or refer to the docs for it?
|
||||
## Software requirements for automatic recomputation
|
||||
|
||||
- [DataLad](http://www.datalad.org)
|
||||
- [Singularity](https://sylabs.io/docs/)
|
||||
Software requirements for the worflow are described in details [here](https://github.com/psychoinformatics-de/fairly-big-processing-workflow#software-requirements).
|
||||
|
||||
If you're not planning to use any job scheduling / batch processing system (e.g. [HTCondor](https://research.cs.wisc.edu/htcondor/), [SLURM](https://slurm.schedmd.com/documentation.html)), but would simply like to run the example below, make sure to have the following software installed:
|
||||
|
||||
- [DataLad](http://www.datalad.org): Please make sure that you have installed a recent version of DataLad (`0.14.3` or higher), as well as recent versions of its dependencies (git, `2.24.0` or higher; git-annex, `8.20*` or higher). Installation instructions are available at: [http://handbook.datalad.org](http://handbook.datalad.org/en/latest/intro/installation.html#install).
|
||||
|
||||
- [Singularity](https://sylabs.io/docs/): In principle, no specific version of Singularity is required. If you're not sure what version to use, simply install the most recent one. Installation instructions can be found [here](https://sylabs.io/docs/).
|
||||
|
||||
Make sure to have your [Git identity](http://handbook.datalad.org/en/latest/intro/installation.html#initial-configuration) set up.
|
||||
|
||||
## Installation tips for MacOS
|
||||
|
||||
An installation of [Singularity on MacOS](https://sylabs.io/guides/3.8/admin-guide/installation.html#installation-on-windows-or-mac) requires using a virtual machine. It is recommended to use [VirtualBox](https://www.virtualbox.org) and (optionally) [Vagrant](https://www.vagrantup.com) software. This software can be installed via [Homebrew](https://brew.sh) package manager.
|
||||
|
||||
```
|
||||
$ brew install --cask virtualbox && \
|
||||
brew install --cask vagrant && \
|
||||
brew install --cask vagrant-manager
|
||||
```
|
||||
|
||||
The easiest way to start is to browse the [public Vagrant box catalog](https://app.vagrantup.com/boxes/search) for a Vagrant box matching your use case. Here, a box can be undestood as a base image of an operating system environment.
|
||||
|
||||
First, create and enter a directory to be used with your virtual machine:
|
||||
|
||||
```
|
||||
$ mkdir vm-tutorial && \
|
||||
cd vm-tutorial
|
||||
```
|
||||
|
||||
Next, initialise your virtual machine. Please substitute the value of the `$VM` variable with a name of your Vagrant box (`debian/buster64` in this example).
|
||||
|
||||
<ul><b>IMPORTANT NOTE:</b> The Singularity community maintains <a href="https://app.vagrantup.com/boxes/search?page=1&provider=&q=sylabs&sort=downloads&utf8=✓">a set of Vagrant boxes</a> too. These boxes have Singularity software already included and ready to use.</ul>
|
||||
|
||||
```
|
||||
$ export VM=debian/buster64 && \
|
||||
vagrant init $VM
|
||||
```
|
||||
|
||||
Make sure to allocate enough memory for your virtual machine. This can be done by editing the `vb.memory` parameter in the corresponding Vagrantfile (Vagrant configuration file). This file is automatically created in you virtual machine's directory.
|
||||
|
||||
Next, issue the following commands to bring your virtual machine up:
|
||||
|
||||
```
|
||||
$ vagrant up && \
|
||||
vagrant ssh
|
||||
```
|
||||
|
||||
Lastly, install the required software in your VM, as if your operating system was Linux. Please follow instructions described in the ["Software requirements for automatic recomputation"](#software-requirements-for-automatic-recomputation) section above.
|
||||
|
||||
## How to recompute
|
||||
|
||||
|
|
|
|||
I would probably cut this - it is true for some systems, but I wouldn't want to force e.g. a
pipuser to get a separatecondaenvironment, or a Windows user to fight with two separate Python installations.I would probably phrase this a bit less like "your OS is not supported" and rather like "here is how you do it". Below is a potential suggestion:
Naive question: Do I need to do this before or after starting the VM?
Maybe this paragraph can move upwards, or become a footnote of the section
Probably worthwhile to note something like