This tool is a simple developing platform based on Vagrant and Docker.
.
├── LICENSE
├── README.md
├── Vagrantfile
├── docker
│ ├── LICENSE
│ ├── README.md
│ ├── data
│ │ ├── go
│ │ │ └── sample_project
│ │ │ ├── glide.lock
│ │ │ ├── glide.yaml
│ │ │ └── main.go
│ │ └── php
│ │ └── sample_project
│ │ └── index.php
│ ├── docker-compose.yml
│ ├── go
│ │ └── bin
│ │ └── startup.sh
│ ├── mongo
│ │ ├── Dockerfile
│ │ └── conf
│ │ ├── mongod.conf
│ │ └── rc.local
│ ├── nginx
│ │ └── conf
│ │ ├── go.conf
│ │ └── php.conf
│ └── php
│ └── Dockerfile
└── provisioning
├── playbook.yml
└── roles
├── docker
│ └── tasks
│ └── main.yml
├── misc
│ └── tasks
│ └── main.yml
└── system
└── tasks
└── main.yml
- Clone Repositories / Packages
$ git clone git@github.com:fuwalab/dev-env.git $ cd dev-env $ git submodule init $ git submodule update
- Install VirtualBox
- Install Vagrant
- Install Ansible
- macOS
$ brew install ansible
- Install vagrant's plugin
vagrant-hostsupdater
$ vagrant plugin install vagrant-hostsupdater
-
Run
vagrant up
- It may take around 30 min.
- It will be installed the following docker images and containers
- nginx - php - mysql - mongo - go
-
Login to docker container(on Vagrant)
- Reload docker containers just in case
$ cd /vagrant/docker/ $ docker-compose restart
-
The following URLs will be enabled
- php
http://dev-env.fuwalab/
- go
http://go.dev-env.fuwalab/
- Volumes
- Put project directories into
docker/data
- It's separated by language
- Put project directories into