blob: 32c485046c5ed390f9eee77085087cb9acafa4d2 [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 Zhangaf9fb6d2015-06-30 16:08:46 -07005 git checkout v3.0.0-alpha-3.1 && \
Kun Zhang8bc99202015-05-12 15:58:01 -07006 ./autogen.sh && \
7 CXXFLAGS=-m32 ./configure --disable-shared --prefix=/protobuf-32 && \
8 make clean && make && make install"'
9
10RUN scl enable devtoolset-1.1 'bash -c "cd /protobuf && \
11 CXXFLAGS=-m64 ./configure --disable-shared --prefix=/protobuf-64 && \
12 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"]