Kun Zhang | 8bc9920 | 2015-05-12 15:58:01 -0700 | [diff] [blame] | 1 | FROM protoc-artifacts:latest |
| 2 | |
| 3 | RUN scl enable devtoolset-1.1 'bash -c "cd /protobuf && \ |
| 4 | git checkout v3.0.0-alpha-2 && \ |
| 5 | ./autogen.sh && \ |
| 6 | CXXFLAGS=-m32 ./configure --disable-shared --prefix=/protobuf-32 && \ |
| 7 | make clean && make && make install"' |
| 8 | |
| 9 | RUN scl enable devtoolset-1.1 'bash -c "cd /protobuf && \ |
| 10 | CXXFLAGS=-m64 ./configure --disable-shared --prefix=/protobuf-64 && \ |
| 11 | make clean && make && make install"' |
| 12 | |
| 13 | ENV CXXFLAGS -I/protobuf-32/include |
| 14 | ENV LDFLAGS "-L/protobuf-32/lib -L/protobuf-64/lib" |
| 15 | |
| 16 | RUN git clone --depth 1 https://github.com/grpc/grpc-java.git |
| 17 | |
| 18 | # Start in devtoolset environment that uses GCC 4.7 |
| 19 | CMD ["scl", "enable", "devtoolset-1.1", "bash"] |