blob: 1c4bb4910aa8ed263974c5a2285d6a5e0390b6f1 [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 && \
Kun Zhangcadc0b22015-08-12 17:58:32 -07004 git fetch && \
Kun Zhangbd23a8d2015-08-28 18:47:06 -07005 git checkout v3.0.0-beta-1 && \
Kun Zhang8bc99202015-05-12 15:58:01 -07006 ./autogen.sh && \
Eric Anderson1d8af602015-09-17 15:32:27 -07007 CXXFLAGS=-m32 ./configure --disable-shared --prefix=/protobuf-32 -j$(nproc) && \
Kun Zhang8bc99202015-05-12 15:58:01 -07008 make clean && make && make install"'
9
10RUN scl enable devtoolset-1.1 'bash -c "cd /protobuf && \
Eric Anderson1d8af602015-09-17 15:32:27 -070011 CXXFLAGS=-m64 ./configure --disable-shared --prefix=/protobuf-64 -j$(nproc) && \
Kun Zhang8bc99202015-05-12 15:58:01 -070012 make clean && make && make install"'
13
Eric Anderson7d906c52015-05-20 14:20:45 -070014ENV CXXFLAGS=-I/protobuf-32/include \
15 LDFLAGS="-L/protobuf-32/lib -L/protobuf-64/lib"
Kun Zhang8bc99202015-05-12 15:58:01 -070016
17RUN git clone --depth 1 https://github.com/grpc/grpc-java.git
18
19# Start in devtoolset environment that uses GCC 4.7
20CMD ["scl", "enable", "devtoolset-1.1", "bash"]