teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

1

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

2020/03/25 11:40

投稿

hotaru05
hotaru05

スコア4

title CHANGED
File without changes
body CHANGED
@@ -65,4 +65,84 @@
65
65
 
66
66
  ---
67
67
  どなたかお詳しい方、ご教授いただければ幸いです。
68
- また、足りない情報などありましたら教えていただければと思います。
68
+ また、足りない情報などありましたら教えていただければと思います。
69
+
70
+ ### Vagrantfile
71
+ ※BOX名だけ変更しています。
72
+ ```
73
+ # -*- mode: ruby -*-
74
+ # vi: set ft=ruby :
75
+
76
+ # All Vagrant configuration is done below. The "2" in Vagrant.configure
77
+ # configures the configuration version (we support older styles for
78
+ # backwards compatibility). Please don't change it unless you know what
79
+ # you're doing.
80
+ Vagrant.configure("2") do |config|
81
+ # The most common configuration options are documented and commented below.
82
+ # For a complete reference, please see the online documentation at
83
+ # https://docs.vagrantup.com.
84
+
85
+ # Every Vagrant development environment requires a box. You can search for
86
+ # boxes at https://vagrantcloud.com/search.
87
+ config.vm.box = "box"
88
+
89
+ # Disable automatic box update checking. If you disable this, then
90
+ # boxes will only be checked for updates when the user runs
91
+ # `vagrant box outdated`. This is not recommended.
92
+ # config.vm.box_check_update = false
93
+
94
+ # Create a forwarded port mapping which allows access to a specific port
95
+ # within the machine from a port on the host machine. In the example below,
96
+ # accessing "localhost:8080" will access port 80 on the guest machine.
97
+ # NOTE: This will enable public access to the opened port
98
+ # config.vm.network "forwarded_port", guest: 80, host: 8080
99
+
100
+ # Create a forwarded port mapping which allows access to a specific port
101
+ # within the machine from a port on the host machine and only allow access
102
+ # via 127.0.0.1 to disable public access
103
+ # config.vm.network "forwarded_port", guest: 80, host: 8080, host_ip: "127.0.0.1"
104
+
105
+ # Create a private network, which allows host-only access to the machine
106
+ # using a specific IP.
107
+ config.vm.network "private_network", ip: "192.168.33.10"
108
+
109
+ # Create a public network, which generally matched to bridged network.
110
+ # Bridged networks make the machine appear as another physical device on
111
+ # your network.
112
+ # config.vm.network "public_network"
113
+
114
+ # Share an additional folder to the guest VM. The first argument is
115
+ # the path on the host to the actual folder. The second argument is
116
+ # the path on the guest to mount the folder. And the optional third
117
+ # argument is a set of non-required options.
118
+ # config.vm.synced_folder "../data", "/vagrant_data"
119
+
120
+ # Provider-specific configuration so you can fine-tune various
121
+ # backing providers for Vagrant. These expose provider-specific options.
122
+ # Example for VirtualBox:
123
+ #
124
+ # config.vm.provider "virtualbox" do |vb|
125
+ # # Display the VirtualBox GUI when booting the machine
126
+ # vb.gui = true
127
+ #
128
+ # # Customize the amount of memory on the VM:
129
+ # vb.memory = "1024"
130
+ # end
131
+ #
132
+ # View the documentation for the provider you are using for more
133
+ # information on available options.
134
+
135
+ # Enable provisioning with a shell script. Additional provisioners such as
136
+ # Puppet, Chef, Ansible, Salt, and Docker are also available. Please see the
137
+ # documentation for more information about their specific syntax and use.
138
+ # config.vm.provision "shell", inline: <<-SHELL
139
+ # apt-get update
140
+ # apt-get install -y apache2
141
+ # SHELL
142
+ config.vm.boot_timeout = 400
143
+ config.vbguest.auto_update = false
144
+ config.vbguest.no_remote = true
145
+ # end
146
+ end
147
+
148
+ ```