blob: 4994f64d22294ac65db603ceb37ae4199cd4ccb9 [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
Eric Anderson7d906c52015-05-20 14:20:45 -070013ENV CXXFLAGS=-I/protobuf-32/include \
14 LDFLAGS="-L/protobuf-32/lib -L/protobuf-64/lib"
Kun Zhang8bc99202015-05-12 15:58:01 -070015
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"]