| jfarrell | e03f7e8 | 2015-02-18 23:25:54 -0500 | [diff] [blame] | 1 | # Apache Thrift Docker containers |
| 2 | A set of docker containers used to build and test Apache Thrift |
| 3 | |
| 4 | ### Available Containers |
| 5 | |
| Randy Abernethy | 65cf6c1 | 2015-03-15 17:38:19 -0700 | [diff] [blame] | 6 | * Ubuntu - based on ubuntu:trusty (14.04) |
| 7 | * Centos - based on centos:6.6 |
| jfarrell | e03f7e8 | 2015-02-18 23:25:54 -0500 | [diff] [blame] | 8 | |
| 9 | ## Dependencies |
| 10 | |
| 11 | * A working Docker environment. A Vagrantfile is provided which will setup an Ubuntu host and working Docker environment as well as build the Apache Thrift Docker container for testing and development |
| 12 | |
| 13 | ## Usage |
| 14 | From the Apache Thrift code base root |
| 15 | |
| 16 | * Build |
| 17 | |
| Randy Abernethy | 65cf6c1 | 2015-03-15 17:38:19 -0700 | [diff] [blame] | 18 | docker build -t thrift build/docker/ubuntu |
| jfarrell | e03f7e8 | 2015-02-18 23:25:54 -0500 | [diff] [blame] | 19 | |
| 20 | or |
| 21 | |
| Randy Abernethy | 65cf6c1 | 2015-03-15 17:38:19 -0700 | [diff] [blame] | 22 | docker build -t thrift build/docker/centos |
| jfarrell | e03f7e8 | 2015-02-18 23:25:54 -0500 | [diff] [blame] | 23 | |
| 24 | * Run |
| 25 | |
| Nobuaki Sukegawa | a6ab1f5 | 2015-11-28 15:04:39 +0900 | [diff] [blame] | 26 | docker run -v $(pwd):/thrift/src -it thrift /bin/bash |
| jfarrell | e03f7e8 | 2015-02-18 23:25:54 -0500 | [diff] [blame] | 27 | |