Skip to content

Commit 9aa1bed

Browse files
alaindomissyvsoch
authored andcommitted
installation instructions for windows (#89)
* installation instructions for windows * Update install-windows.md
1 parent 1726283 commit 9aa1bed

1 file changed

Lines changed: 52 additions & 1 deletion

File tree

pages/docs/install/install-windows.md

Lines changed: 52 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,55 @@ permalink: install-windows
55
folder: docs
66
---
77

8-
Windows? Ugh, I suppose we will write this. I heard it has a command line? Will get around to this eventually. Nothing here for now, folks.
8+
9+
This recipe demonstrates how to run Singularity on your Windows computer via Vagrant and Ubuntu. This recipe may take anywhere from 5-20 minutes to complete.
10+
11+
## Setup
12+
13+
First, install the following software:
14+
- install [Git for Windows](https://git-for-windows.github.io/)
15+
- install [VirtualBox for Windows](https://www.virtualbox.org/wiki/Downloads)
16+
- install [Vagrant for Windows](https://www.vagrantup.com/downloads.html)
17+
- install [Vagrant Manager for Windows](http://vagrantmanager.com/downloads/)
18+
19+
## Singularityware Vagrant Box
20+
21+
We are maintaining a set of Vagrant Boxes via <a href="https://atlas.hashicorp.com/" target="_blank">Atlas</a>, one of <a href="https://www.hashicorp.com/#open-source-tools" target="_blank">Hashicorp</a> many tools that likely you've used and haven't known it. We currently have boxes for the following versions of Singularity:
22+
23+
- [singularityware/singularity-2.2.99](https://atlas.hashicorp.com/singularityware/boxes/singularity-2.2.99)
24+
- [singularityware/singularity-2.3](https://atlas.hashicorp.com/singularityware/boxes/singularity-2.3)
25+
- [singularityware/singularity-2.3.1](https://atlas.hashicorp.com/singularityware/boxes/singularity-2.3.1)
26+
27+
Run GitBash. The default home directory will be C:\Users\your_username
28+
29+
```bash
30+
mkdir singularity-vm
31+
cd singularity-vm
32+
vagrant init singularityware/singularity-2.3.1
33+
vagrant up
34+
vagrant ssh
35+
```
36+
37+
You are then ready to go with Singularity 2.3.1!
38+
39+
```
40+
vagrant@vagrant:~$ which singularity
41+
/usr/local/bin/singularity
42+
vagrant@vagrant:~$ singularity --version
43+
2.3-master.gadf5259
44+
vagrant@vagrant:~$ singularity create test.img
45+
Initializing Singularity image subsystem
46+
Opening image file: test.img
47+
Creating 768MiB image
48+
Binding image to loop
49+
Creating file system within image
50+
Image is done: test.img
51+
```
52+
53+
Note that when you do `vagrant up` you can also select the provider, if you use vagrant for multiple providers. For example:
54+
55+
```
56+
vagrant up --provider virtualbox
57+
```
58+
59+
although this isn't entirely necessary if you only have it configured for virtualbox.

0 commit comments

Comments
 (0)