yum install -y autoconf automake libtool cmake ncurses-devel openssl-devel lzo-devel zlib-devel gcc gcc-c++tar zxvf thrift-0.9.3.tar.gz
cd thrift-0.9.3
./configure --without-tests
make
make install
thrift --versiondocker pull thrift:0.9.3docker run -v "$PWD:/opt" thrift:0.9.3 thrift -o /opt/thrift/data --gen java /opt/service.thrift
namespace java com.gitnavi.service
struct User {
1: i32 id
2: string username
}
service UserService {
User getUser()
}