File tree 2 files changed +29
-14
lines changed
2 files changed +29
-14
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
title : Vagrant
3
3
category : Devops
4
+ layout : 2017/sheet
5
+ intro : |
6
+ [Vagrant](http://vagrantup.com) lets you build isolated virtual environments for your apps.
4
7
---
5
8
6
9
### Get started
7
10
8
11
Add some base boxes:
12
+ {: .-setup}
9
13
10
- $ vagrant box add precise32 http://files.vagrantup.com/precise32.box
11
- $ vagrant box add precise64 http://files.vagrantup.com/precise64.box
14
+ ``` bash
15
+ vagrant box add precise64 http://files.vagrantup.com/precise64.box
16
+ ```
12
17
13
18
Work it:
14
19
15
- $ mkdir test_box
16
- $ cd test_box
17
- $ vagrant init precise64
20
+ ``` bash
21
+ mkdir test_box
22
+ cd test_box
23
+ vagrant init precise64
24
+ ```
18
25
19
26
Run it:
20
27
21
- $ vagrant up
22
- $ vagrant ssh
28
+ ``` bash
29
+ vagrant up
30
+ vagrant ssh
31
+ ```
23
32
24
33
To stop, use one of the following:
25
34
26
- $ vagrant ssh # then: sudo shutdown -h now
27
- $ vagrant suspend
28
- $ vagrant destroy # !!
35
+ ``` bash
36
+ vagrant ssh # then: sudo shutdown -h now
37
+ vagrant suspend
38
+ vagrant destroy # !!
39
+ ```
29
40
30
- ### Reference
31
-
32
- * [ Vagrant] ( http://vagrantup.com )
41
+ ### Also see
33
42
43
+ * [ Vagrant website] ( http://vagrantup.com ) _ (vagrantup.com)_
44
+ * [ Vagrantfile cheatsheet] ( ./vagrantfile )
Original file line number Diff line number Diff line change 1
1
---
2
2
title : Vagrantfile
3
3
category : Devops
4
+ layout : 2017/sheet
4
5
---
5
6
7
+ ## Vagrantfile
8
+ {: .-one-column}
9
+
6
10
``` rb
7
11
Vagrant .configure(" 2" ) do |config |
8
12
# All Vagrant configuration is done here. The most common configuration
120
124
121
125
## Also see
122
126
123
- * [ Vagrant] ( vagrant.html )
127
+ * [ Vagrant cheatsheet ] ( ./vagrant )
You can’t perform that action at this time.
0 commit comments