質問編集履歴
3
vagrantfileの中身を追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -113,3 +113,7 @@
|
|
113
113
|
(追記)
|
114
114
|
|
115
115
|
vagrantfileの中身
|
116
|
+
|
117
|
+
![イメージ説明](22e7bf942bb0882acb55cf6c0defec8c.png)
|
118
|
+
|
119
|
+
![イメージ説明](4af4af51e32f3cb5e4300a62b43cf129.png)
|
2
追記準備中
test
CHANGED
File without changes
|
test
CHANGED
@@ -113,145 +113,3 @@
|
|
113
113
|
(追記)
|
114
114
|
|
115
115
|
vagrantfileの中身
|
116
|
-
|
117
|
-
# -*- mode: ruby -*-
|
118
|
-
|
119
|
-
# vi: set ft=ruby :
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
# All Vagrant configuration is done below. The "2" in Vagrant.configure
|
124
|
-
|
125
|
-
# configures the configuration version (we support older styles for
|
126
|
-
|
127
|
-
# backwards compatibility). Please don't change it unless you know what
|
128
|
-
|
129
|
-
# you're doing.
|
130
|
-
|
131
|
-
Vagrant.configure("2") do |config|
|
132
|
-
|
133
|
-
# The most common configuration options are documented and commented below.
|
134
|
-
|
135
|
-
# For a complete reference, please see the online documentation at
|
136
|
-
|
137
|
-
# https://docs.vagrantup.com.
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
# Every Vagrant development environment requires a box. You can search for
|
142
|
-
|
143
|
-
# boxes at https://atlas.hashicorp.com/search.
|
144
|
-
|
145
|
-
config.vm.box = "CentOS65"
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
# Disable automatic box update checking. If you disable this, then
|
150
|
-
|
151
|
-
# boxes will only be checked for updates when the user runs
|
152
|
-
|
153
|
-
# `vagrant box outdated`. This is not recommended.
|
154
|
-
|
155
|
-
# config.vm.box_check_update = false
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
# Create a forwarded port mapping which allows access to a specific port
|
160
|
-
|
161
|
-
# within the machine from a port on the host machine. In the example below,
|
162
|
-
|
163
|
-
# accessing "localhost:8080" will access port 80 on the guest machine.
|
164
|
-
|
165
|
-
# config.vm.network "forwarded_port", guest: 80, host: 8080
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
# Create a private network, which allows host-only access to the machine
|
170
|
-
|
171
|
-
# using a specific IP.
|
172
|
-
|
173
|
-
config.vm.network "private_network", ip: "192.168.33.10"
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
# Create a public network, which generally matched to bridged network.
|
178
|
-
|
179
|
-
# Bridged networks make the machine appear as another physical device on
|
180
|
-
|
181
|
-
# your network.
|
182
|
-
|
183
|
-
# config.vm.network "public_network"
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
# Share an additional folder to the guest VM. The first argument is
|
188
|
-
|
189
|
-
# the path on the host to the actual folder. The second argument is
|
190
|
-
|
191
|
-
# the path on the guest to mount the folder. And the optional third
|
192
|
-
|
193
|
-
# argument is a set of non-required options.
|
194
|
-
|
195
|
-
# config.vm.synced_folder "../data", "/vagrant_data"
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
# Provider-specific configuration so you can fine-tune various
|
200
|
-
|
201
|
-
# backing providers for Vagrant. These expose provider-specific options.
|
202
|
-
|
203
|
-
# Example for VirtualBox:
|
204
|
-
|
205
|
-
#
|
206
|
-
|
207
|
-
# config.vm.provider "virtualbox" do |vb|
|
208
|
-
|
209
|
-
# # Display the VirtualBox GUI when booting the machine
|
210
|
-
|
211
|
-
# vb.gui = true
|
212
|
-
|
213
|
-
#
|
214
|
-
|
215
|
-
# # Customize the amount of memory on the VM:
|
216
|
-
|
217
|
-
# vb.memory = "1024"
|
218
|
-
|
219
|
-
# end
|
220
|
-
|
221
|
-
#
|
222
|
-
|
223
|
-
# View the documentation for the provider you are using for more
|
224
|
-
|
225
|
-
# information on available options.
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
# Define a Vagrant Push strategy for pushing to Atlas. Other push strategies
|
230
|
-
|
231
|
-
# such as FTP and Heroku are also available. See the documentation at
|
232
|
-
|
233
|
-
# https://docs.vagrantup.com/v2/push/atlas.html for more information.
|
234
|
-
|
235
|
-
# config.push.define "atlas" do |push|
|
236
|
-
|
237
|
-
# push.app = "YOUR_ATLAS_USERNAME/YOUR_APPLICATION_NAME"
|
238
|
-
|
239
|
-
# end
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
# Enable provisioning with a shell script. Additional provisioners such as
|
244
|
-
|
245
|
-
# Puppet, Chef, Ansible, Salt, and Docker are also available. Please see the
|
246
|
-
|
247
|
-
# documentation for more information about their specific syntax and use.
|
248
|
-
|
249
|
-
# config.vm.provision "shell", inline: <<-SHELL
|
250
|
-
|
251
|
-
# apt-get update
|
252
|
-
|
253
|
-
# apt-get install -y apache2
|
254
|
-
|
255
|
-
# SHELL
|
256
|
-
|
257
|
-
end
|
1
vagrantfileの中身を追記しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -107,3 +107,151 @@
|
|
107
107
|
###補足情報(言語/FW/ツール等のバージョンなど)
|
108
108
|
|
109
109
|
windows10,VirtualBox-5.0.20-106931-Win,vagrant_1.8.3
|
110
|
+
|
111
|
+
|
112
|
+
|
113
|
+
(追記)
|
114
|
+
|
115
|
+
vagrantfileの中身
|
116
|
+
|
117
|
+
# -*- mode: ruby -*-
|
118
|
+
|
119
|
+
# vi: set ft=ruby :
|
120
|
+
|
121
|
+
|
122
|
+
|
123
|
+
# All Vagrant configuration is done below. The "2" in Vagrant.configure
|
124
|
+
|
125
|
+
# configures the configuration version (we support older styles for
|
126
|
+
|
127
|
+
# backwards compatibility). Please don't change it unless you know what
|
128
|
+
|
129
|
+
# you're doing.
|
130
|
+
|
131
|
+
Vagrant.configure("2") do |config|
|
132
|
+
|
133
|
+
# The most common configuration options are documented and commented below.
|
134
|
+
|
135
|
+
# For a complete reference, please see the online documentation at
|
136
|
+
|
137
|
+
# https://docs.vagrantup.com.
|
138
|
+
|
139
|
+
|
140
|
+
|
141
|
+
# Every Vagrant development environment requires a box. You can search for
|
142
|
+
|
143
|
+
# boxes at https://atlas.hashicorp.com/search.
|
144
|
+
|
145
|
+
config.vm.box = "CentOS65"
|
146
|
+
|
147
|
+
|
148
|
+
|
149
|
+
# Disable automatic box update checking. If you disable this, then
|
150
|
+
|
151
|
+
# boxes will only be checked for updates when the user runs
|
152
|
+
|
153
|
+
# `vagrant box outdated`. This is not recommended.
|
154
|
+
|
155
|
+
# config.vm.box_check_update = false
|
156
|
+
|
157
|
+
|
158
|
+
|
159
|
+
# Create a forwarded port mapping which allows access to a specific port
|
160
|
+
|
161
|
+
# within the machine from a port on the host machine. In the example below,
|
162
|
+
|
163
|
+
# accessing "localhost:8080" will access port 80 on the guest machine.
|
164
|
+
|
165
|
+
# config.vm.network "forwarded_port", guest: 80, host: 8080
|
166
|
+
|
167
|
+
|
168
|
+
|
169
|
+
# Create a private network, which allows host-only access to the machine
|
170
|
+
|
171
|
+
# using a specific IP.
|
172
|
+
|
173
|
+
config.vm.network "private_network", ip: "192.168.33.10"
|
174
|
+
|
175
|
+
|
176
|
+
|
177
|
+
# Create a public network, which generally matched to bridged network.
|
178
|
+
|
179
|
+
# Bridged networks make the machine appear as another physical device on
|
180
|
+
|
181
|
+
# your network.
|
182
|
+
|
183
|
+
# config.vm.network "public_network"
|
184
|
+
|
185
|
+
|
186
|
+
|
187
|
+
# Share an additional folder to the guest VM. The first argument is
|
188
|
+
|
189
|
+
# the path on the host to the actual folder. The second argument is
|
190
|
+
|
191
|
+
# the path on the guest to mount the folder. And the optional third
|
192
|
+
|
193
|
+
# argument is a set of non-required options.
|
194
|
+
|
195
|
+
# config.vm.synced_folder "../data", "/vagrant_data"
|
196
|
+
|
197
|
+
|
198
|
+
|
199
|
+
# Provider-specific configuration so you can fine-tune various
|
200
|
+
|
201
|
+
# backing providers for Vagrant. These expose provider-specific options.
|
202
|
+
|
203
|
+
# Example for VirtualBox:
|
204
|
+
|
205
|
+
#
|
206
|
+
|
207
|
+
# config.vm.provider "virtualbox" do |vb|
|
208
|
+
|
209
|
+
# # Display the VirtualBox GUI when booting the machine
|
210
|
+
|
211
|
+
# vb.gui = true
|
212
|
+
|
213
|
+
#
|
214
|
+
|
215
|
+
# # Customize the amount of memory on the VM:
|
216
|
+
|
217
|
+
# vb.memory = "1024"
|
218
|
+
|
219
|
+
# end
|
220
|
+
|
221
|
+
#
|
222
|
+
|
223
|
+
# View the documentation for the provider you are using for more
|
224
|
+
|
225
|
+
# information on available options.
|
226
|
+
|
227
|
+
|
228
|
+
|
229
|
+
# Define a Vagrant Push strategy for pushing to Atlas. Other push strategies
|
230
|
+
|
231
|
+
# such as FTP and Heroku are also available. See the documentation at
|
232
|
+
|
233
|
+
# https://docs.vagrantup.com/v2/push/atlas.html for more information.
|
234
|
+
|
235
|
+
# config.push.define "atlas" do |push|
|
236
|
+
|
237
|
+
# push.app = "YOUR_ATLAS_USERNAME/YOUR_APPLICATION_NAME"
|
238
|
+
|
239
|
+
# end
|
240
|
+
|
241
|
+
|
242
|
+
|
243
|
+
# Enable provisioning with a shell script. Additional provisioners such as
|
244
|
+
|
245
|
+
# Puppet, Chef, Ansible, Salt, and Docker are also available. Please see the
|
246
|
+
|
247
|
+
# documentation for more information about their specific syntax and use.
|
248
|
+
|
249
|
+
# config.vm.provision "shell", inline: <<-SHELL
|
250
|
+
|
251
|
+
# apt-get update
|
252
|
+
|
253
|
+
# apt-get install -y apache2
|
254
|
+
|
255
|
+
# SHELL
|
256
|
+
|
257
|
+
end
|