Vagrant

Vagrant Docs

Usage

1. Download and Install : vagrant, virtualbox

Download vagrant: https://www.vagrantup.com/downloads.html

Download virtualbox: https://www.virtualbox.org/wiki/Downloads

Check

Vagrant 2.2.0

$vagrant --version
Vagrant 2.2.0
$ VBoxManage --version
5.2.12r122591

2. Add blueking image to vagrant

Download bluking image: http://bkopen-10032816.file.myqcloud.com/paas/bk-django1.8-u2.box

bk-django1.8.box is the name of bluking image. Including centos7+Django+a series of blueking necessary units.

vagrant box add bk bk-django1.8.box  # bk is defined for this box 

3. Initial

Make your own workstation path for vagrant

4.Config framework, create database

5.Run server

Open browser, http://dev.bk.test.garena.com:1234

more command of vagrant visit here: https://www.vagrantup.com/docs/cli/index.html

Last updated