Skip to content

Commit bbc685f

Browse files
committed
updating with vagrant 2.3 box!
1 parent c35a09a commit bbc685f

1 file changed

Lines changed: 30 additions & 2 deletions

File tree

pages/docs/install/install-mac.md

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,43 @@ brew cask install vagrant-manager
2525

2626
## Option 1: Singularityware Vagrant Box
2727

28-
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. The <a href="https://atlas.hashicorp.com/singularityware/boxes/singularity-2.2.99" target="_blank">Singularity Box</a> is for version 2.2.99, and will be updated appropriately with the release of 2.3. To use this box, you can simply create a folder, and then do the following:
28+
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:
29+
30+
- [singularityware/singularity-2.2.99](https://atlas.hashicorp.com/singularityware/boxes/singularity-2.2.99)
31+
- [singularityware/singularity-2.3](https://atlas.hashicorp.com/singularityware/boxes/singularity-2.3)
2932

3033
```bash
3134
mkdir singularity-vm
3235
cd singularity-vm
33-
vagrant init singularityware/singularity-2.2.99
36+
vagrant init singularityware/singularity-2.3
37+
vagrant up
3438
vagrant ssh
3539
```
3640

41+
You are then ready to go with Singularity 2.3!
42+
43+
```
44+
vagrant@vagrant:~$ which singularity
45+
/usr/local/bin/singularity
46+
vagrant@vagrant:~$ singularity --version
47+
2.3-master.gadf5259
48+
vagrant@vagrant:~$ singularity create test.img
49+
Initializing Singularity image subsystem
50+
Opening image file: test.img
51+
Creating 768MiB image
52+
Binding image to loop
53+
Creating file system within image
54+
Image is done: test.img
55+
```
56+
57+
Note that when you do `vagrant up` you can also select the provider, if you use vagrant for multiple providers. For example:
58+
59+
```
60+
vagrant up --provider virtualbox
61+
```
62+
63+
although this isn't entirely necessary if you only have it configured for virtualbox.
64+
3765
## Option 2: Vagrant Box from Scratch
3866

3967
If you want to use a different version of Singularity, or want to get more familiar with how Vagrant and VirtualBox work, you can build your own Vagrant Box from scratch. In this case, we will use the Vagrantfile for `bento/ubuntu-16.04`, however you could also try any of the <a href="https://atlas.hashicorp.com/bento" target="_blank">other bento boxes</a> that are equally delicious. As before, you should first make a separate directory for your Vagrantfile, and then init a base image.

0 commit comments

Comments
 (0)