質問編集履歴

1

Vagrantfileの内容を追加しました。

2020/03/25 11:40

投稿

hotaru05
hotaru05

スコア4

test CHANGED
File without changes
test CHANGED
@@ -133,3 +133,163 @@
133
133
  どなたかお詳しい方、ご教授いただければ幸いです。
134
134
 
135
135
  また、足りない情報などありましたら教えていただければと思います。
136
+
137
+
138
+
139
+ ### Vagrantfile
140
+
141
+ ※BOX名だけ変更しています。
142
+
143
+ ```
144
+
145
+ # -*- mode: ruby -*-
146
+
147
+ # vi: set ft=ruby :
148
+
149
+
150
+
151
+ # All Vagrant configuration is done below. The "2" in Vagrant.configure
152
+
153
+ # configures the configuration version (we support older styles for
154
+
155
+ # backwards compatibility). Please don't change it unless you know what
156
+
157
+ # you're doing.
158
+
159
+ Vagrant.configure("2") do |config|
160
+
161
+ # The most common configuration options are documented and commented below.
162
+
163
+ # For a complete reference, please see the online documentation at
164
+
165
+ # https://docs.vagrantup.com.
166
+
167
+
168
+
169
+ # Every Vagrant development environment requires a box. You can search for
170
+
171
+ # boxes at https://vagrantcloud.com/search.
172
+
173
+ config.vm.box = "box"
174
+
175
+
176
+
177
+ # Disable automatic box update checking. If you disable this, then
178
+
179
+ # boxes will only be checked for updates when the user runs
180
+
181
+ # `vagrant box outdated`. This is not recommended.
182
+
183
+ # config.vm.box_check_update = false
184
+
185
+
186
+
187
+ # Create a forwarded port mapping which allows access to a specific port
188
+
189
+ # within the machine from a port on the host machine. In the example below,
190
+
191
+ # accessing "localhost:8080" will access port 80 on the guest machine.
192
+
193
+ # NOTE: This will enable public access to the opened port
194
+
195
+ # config.vm.network "forwarded_port", guest: 80, host: 8080
196
+
197
+
198
+
199
+ # Create a forwarded port mapping which allows access to a specific port
200
+
201
+ # within the machine from a port on the host machine and only allow access
202
+
203
+ # via 127.0.0.1 to disable public access
204
+
205
+ # config.vm.network "forwarded_port", guest: 80, host: 8080, host_ip: "127.0.0.1"
206
+
207
+
208
+
209
+ # Create a private network, which allows host-only access to the machine
210
+
211
+ # using a specific IP.
212
+
213
+ config.vm.network "private_network", ip: "192.168.33.10"
214
+
215
+
216
+
217
+ # Create a public network, which generally matched to bridged network.
218
+
219
+ # Bridged networks make the machine appear as another physical device on
220
+
221
+ # your network.
222
+
223
+ # config.vm.network "public_network"
224
+
225
+
226
+
227
+ # Share an additional folder to the guest VM. The first argument is
228
+
229
+ # the path on the host to the actual folder. The second argument is
230
+
231
+ # the path on the guest to mount the folder. And the optional third
232
+
233
+ # argument is a set of non-required options.
234
+
235
+ # config.vm.synced_folder "../data", "/vagrant_data"
236
+
237
+
238
+
239
+ # Provider-specific configuration so you can fine-tune various
240
+
241
+ # backing providers for Vagrant. These expose provider-specific options.
242
+
243
+ # Example for VirtualBox:
244
+
245
+ #
246
+
247
+ # config.vm.provider "virtualbox" do |vb|
248
+
249
+ # # Display the VirtualBox GUI when booting the machine
250
+
251
+ # vb.gui = true
252
+
253
+ #
254
+
255
+ # # Customize the amount of memory on the VM:
256
+
257
+ # vb.memory = "1024"
258
+
259
+ # end
260
+
261
+ #
262
+
263
+ # View the documentation for the provider you are using for more
264
+
265
+ # information on available options.
266
+
267
+
268
+
269
+ # Enable provisioning with a shell script. Additional provisioners such as
270
+
271
+ # Puppet, Chef, Ansible, Salt, and Docker are also available. Please see the
272
+
273
+ # documentation for more information about their specific syntax and use.
274
+
275
+ # config.vm.provision "shell", inline: <<-SHELL
276
+
277
+ # apt-get update
278
+
279
+ # apt-get install -y apache2
280
+
281
+ # SHELL
282
+
283
+ config.vm.boot_timeout = 400
284
+
285
+ config.vbguest.auto_update = false
286
+
287
+ config.vbguest.no_remote = true
288
+
289
+ # end
290
+
291
+ end
292
+
293
+
294
+
295
+ ```