blob: a8f40c5ea185c6acf9ca7667fdad26462edb8dfc [file] [log] [blame]
Kun Zhang8bc99202015-05-12 15:58:01 -07001FROM protoc-artifacts:latest
2
3RUN 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
9RUN 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
13ENV CXXFLAGS -I/protobuf-32/include
14ENV LDFLAGS "-L/protobuf-32/lib -L/protobuf-64/lib"
15
16RUN git clone --depth 1 https://github.com/grpc/grpc-java.git
17
18# Start in devtoolset environment that uses GCC 4.7
19CMD ["scl", "enable", "devtoolset-1.1", "bash"]