Build beego development environment with one command. Docker handles these for you.
- Install Golang 1.4
- Configurate GOPATH and PATH
- Install beego and bee
- Automatically load the code from local
No need to install go at all and it allows you to write code with your favorite IDE.
Take seagull as an example, we may
git clone https://github.com/tobegit3hub/seagull /seagull.
docker run -i -t --net=host -v /seagull:/go/src/github.com/tobegit3hub/seagull tobegit3hub/beego-dev
cd src/github.com/tobegit3hub/seagull/ and
bee run may work to run seagull locally.
--net=host allows you to access beego application within docker container. And
-v will load your code from local. Make sure put your project in
/go which is the GOPATH of container.