Skip to main content

Posts

Showing posts from January, 2016

Make build Env. for Golang and zmq in Chroot

https://github.com/doohee323/buildGoInChroot When you need to build Golang app. in different ubuntu version, you can use chroot. I made it for the usecase. It makes chroot environment and a builds debian file. And I made a lucid with vagrant, and installed below 3 ubuntu version debians in it. Since ZMQ library is needed for this app, only lucid debian can run in lucid VM. Required 1. install chroot apt-get install dchroot apt-get install debootstrap 2. edit chroot configuration vi /etc/schroot/schroot.conf [precise] description=Ubuntu precise location=~/chroot/precise priority=3 users=hello group=hello root-groups=root [lucid] description=Ubuntu lucid location=~/chroot/lucid priority=3 users=hello group=hello root-groups=root [trusty] description=Ubuntu trusty location=~/chroot/trusty priority=3