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

質問編集履歴

1

vagrant 設定追加

2017/08/13 06:20

投稿

tommyTeratail
tommyTeratail

スコア31

title CHANGED
File without changes
body CHANGED
@@ -8,6 +8,85 @@
8
8
  Docker version 17.06.0-ce, build 02c1d87
9
9
  docker-compose version 1.15.0, build e12f3b9
10
10
  ```
11
+
12
+ ```ruby
13
+ # -*- mode: ruby -*-
14
+ # vi: set ft=ruby :
15
+
16
+ # All Vagrant configuration is done below. The "2" in Vagrant.configure
17
+ # configures the configuration version (we support older styles for
18
+ # backwards compatibility). Please don't change it unless you know what
19
+ # you're doing.
20
+ Vagrant.configure("2") do |config|
21
+ # The most common configuration options are documented and commented below.
22
+ # For a complete reference, please see the online documentation at
23
+ # https://docs.vagrantup.com.
24
+
25
+ # Every Vagrant development environment requires a box. You can search for
26
+ # boxes at https://atlas.hashicorp.com/search.
27
+ config.vm.box = "bento/debian-9.0"
28
+
29
+ # Disable automatic box update checking. If you disable this, then
30
+ # boxes will only be checked for updates when the user runs
31
+ # `vagrant box outdated`. This is not recommended.
32
+ # config.vm.box_check_update = false
33
+
34
+ # Create a forwarded port mapping which allows access to a specific port
35
+ # within the machine from a port on the host machine. In the example below,
36
+ # accessing "localhost:8080" will access port 80 on the guest machine.
37
+ # config.vm.network "forwarded_port", guest: 80, host: 8080
38
+
39
+ # Create a private network, which allows host-only access to the machine
40
+ # using a specific IP.
41
+ # config.vm.network "private_network", ip: "192.168.33.10"
42
+ config.vm.network "private_network", ip: "192.168.77.10"
43
+
44
+ # Create a public network, which generally matched to bridged network.
45
+ # Bridged networks make the machine appear as another physical device on
46
+ # your network.
47
+ # config.vm.network "public_network"
48
+
49
+ # Share an additional folder to the guest VM. The first argument is
50
+ # the path on the host to the actual folder. The second argument is
51
+ # the path on the guest to mount the folder. And the optional third
52
+ # argument is a set of non-required options.
53
+ # config.vm.synced_folder "../data", "/vagrant_data"
54
+ config.vm.synced_folder "../synced_folder", "/home/vagrant/synced_folder", :nfs => true, create:true
55
+
56
+ # Provider-specific configuration so you can fine-tune various
57
+ # backing providers for Vagrant. These expose provider-specific options.
58
+ # Example for VirtualBox:
59
+ #
60
+ config.vm.provider "virtualbox" do |vb|
61
+ # Display the VirtualBox GUI when booting the machine
62
+ # vb.gui = true
63
+
64
+ # Customize the amount of memory on the VM:
65
+ vb.memory = "2048"
66
+ end
67
+ #
68
+ # View the documentation for the provider you are using for more
69
+ # information on available options.
70
+
71
+ # Define a Vagrant Push strategy for pushing to Atlas. Other push strategies
72
+ # such as FTP and Heroku are also available. See the documentation at
73
+ # https://docs.vagrantup.com/v2/push/atlas.html for more information.
74
+ # config.push.define "atlas" do |push|
75
+ # push.app = "YOUR_ATLAS_USERNAME/YOUR_APPLICATION_NAME"
76
+ # end
77
+
78
+ # Enable provisioning with a shell script. Additional provisioners such as
79
+ # Puppet, Chef, Ansible, Salt, and Docker are also available. Please see the
80
+ # documentation for more information about their specific syntax and use.
81
+ # config.vm.provision "shell", inline: <<-SHELL
82
+ # apt-get update
83
+ # apt-get install -y apache2
84
+ # SHELL
85
+ end
86
+ ```
87
+
88
+
89
+
11
90
  ## 課題
12
91
  下記エラーが表示される
13
92
  ```sh