質問編集履歴
1
vagrant 設定追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -18,6 +18,164 @@
|
|
18
18
|
|
19
19
|
```
|
20
20
|
|
21
|
+
|
22
|
+
|
23
|
+
```ruby
|
24
|
+
|
25
|
+
# -*- mode: ruby -*-
|
26
|
+
|
27
|
+
# vi: set ft=ruby :
|
28
|
+
|
29
|
+
|
30
|
+
|
31
|
+
# All Vagrant configuration is done below. The "2" in Vagrant.configure
|
32
|
+
|
33
|
+
# configures the configuration version (we support older styles for
|
34
|
+
|
35
|
+
# backwards compatibility). Please don't change it unless you know what
|
36
|
+
|
37
|
+
# you're doing.
|
38
|
+
|
39
|
+
Vagrant.configure("2") do |config|
|
40
|
+
|
41
|
+
# The most common configuration options are documented and commented below.
|
42
|
+
|
43
|
+
# For a complete reference, please see the online documentation at
|
44
|
+
|
45
|
+
# https://docs.vagrantup.com.
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
# Every Vagrant development environment requires a box. You can search for
|
50
|
+
|
51
|
+
# boxes at https://atlas.hashicorp.com/search.
|
52
|
+
|
53
|
+
config.vm.box = "bento/debian-9.0"
|
54
|
+
|
55
|
+
|
56
|
+
|
57
|
+
# Disable automatic box update checking. If you disable this, then
|
58
|
+
|
59
|
+
# boxes will only be checked for updates when the user runs
|
60
|
+
|
61
|
+
# `vagrant box outdated`. This is not recommended.
|
62
|
+
|
63
|
+
# config.vm.box_check_update = false
|
64
|
+
|
65
|
+
|
66
|
+
|
67
|
+
# Create a forwarded port mapping which allows access to a specific port
|
68
|
+
|
69
|
+
# within the machine from a port on the host machine. In the example below,
|
70
|
+
|
71
|
+
# accessing "localhost:8080" will access port 80 on the guest machine.
|
72
|
+
|
73
|
+
# config.vm.network "forwarded_port", guest: 80, host: 8080
|
74
|
+
|
75
|
+
|
76
|
+
|
77
|
+
# Create a private network, which allows host-only access to the machine
|
78
|
+
|
79
|
+
# using a specific IP.
|
80
|
+
|
81
|
+
# config.vm.network "private_network", ip: "192.168.33.10"
|
82
|
+
|
83
|
+
config.vm.network "private_network", ip: "192.168.77.10"
|
84
|
+
|
85
|
+
|
86
|
+
|
87
|
+
# Create a public network, which generally matched to bridged network.
|
88
|
+
|
89
|
+
# Bridged networks make the machine appear as another physical device on
|
90
|
+
|
91
|
+
# your network.
|
92
|
+
|
93
|
+
# config.vm.network "public_network"
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
# Share an additional folder to the guest VM. The first argument is
|
98
|
+
|
99
|
+
# the path on the host to the actual folder. The second argument is
|
100
|
+
|
101
|
+
# the path on the guest to mount the folder. And the optional third
|
102
|
+
|
103
|
+
# argument is a set of non-required options.
|
104
|
+
|
105
|
+
# config.vm.synced_folder "../data", "/vagrant_data"
|
106
|
+
|
107
|
+
config.vm.synced_folder "../synced_folder", "/home/vagrant/synced_folder", :nfs => true, create:true
|
108
|
+
|
109
|
+
|
110
|
+
|
111
|
+
# Provider-specific configuration so you can fine-tune various
|
112
|
+
|
113
|
+
# backing providers for Vagrant. These expose provider-specific options.
|
114
|
+
|
115
|
+
# Example for VirtualBox:
|
116
|
+
|
117
|
+
#
|
118
|
+
|
119
|
+
config.vm.provider "virtualbox" do |vb|
|
120
|
+
|
121
|
+
# Display the VirtualBox GUI when booting the machine
|
122
|
+
|
123
|
+
# vb.gui = true
|
124
|
+
|
125
|
+
|
126
|
+
|
127
|
+
# Customize the amount of memory on the VM:
|
128
|
+
|
129
|
+
vb.memory = "2048"
|
130
|
+
|
131
|
+
end
|
132
|
+
|
133
|
+
#
|
134
|
+
|
135
|
+
# View the documentation for the provider you are using for more
|
136
|
+
|
137
|
+
# information on available options.
|
138
|
+
|
139
|
+
|
140
|
+
|
141
|
+
# Define a Vagrant Push strategy for pushing to Atlas. Other push strategies
|
142
|
+
|
143
|
+
# such as FTP and Heroku are also available. See the documentation at
|
144
|
+
|
145
|
+
# https://docs.vagrantup.com/v2/push/atlas.html for more information.
|
146
|
+
|
147
|
+
# config.push.define "atlas" do |push|
|
148
|
+
|
149
|
+
# push.app = "YOUR_ATLAS_USERNAME/YOUR_APPLICATION_NAME"
|
150
|
+
|
151
|
+
# end
|
152
|
+
|
153
|
+
|
154
|
+
|
155
|
+
# Enable provisioning with a shell script. Additional provisioners such as
|
156
|
+
|
157
|
+
# Puppet, Chef, Ansible, Salt, and Docker are also available. Please see the
|
158
|
+
|
159
|
+
# documentation for more information about their specific syntax and use.
|
160
|
+
|
161
|
+
# config.vm.provision "shell", inline: <<-SHELL
|
162
|
+
|
163
|
+
# apt-get update
|
164
|
+
|
165
|
+
# apt-get install -y apache2
|
166
|
+
|
167
|
+
# SHELL
|
168
|
+
|
169
|
+
end
|
170
|
+
|
171
|
+
```
|
172
|
+
|
173
|
+
|
174
|
+
|
175
|
+
|
176
|
+
|
177
|
+
|
178
|
+
|
21
179
|
## 課題
|
22
180
|
|
23
181
|
下記エラーが表示される
|