blob: af3036e3270d8522a310f84db64f228ff0a658ce [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 && \
Łukasz Strzałkowskid954bc22016-11-04 10:18:18 -07005 git checkout v3.1.0 && \
Kun Zhang8bc99202015-05-12 15:58:01 -07006 ./autogen.sh && \
Eric Andersondaf920d2016-02-17 11:33:34 -08007 CXXFLAGS=-m32 ./configure --disable-shared --prefix=/protobuf-32 && \
8 make clean && make -j$(nproc) && make -j$(nproc) install"'
Kun Zhang8bc99202015-05-12 15:58:01 -07009
10RUN scl enable devtoolset-1.1 'bash -c "cd /protobuf && \
Eric Andersondaf920d2016-02-17 11:33:34 -080011 CXXFLAGS=-m64 ./configure --disable-shared --prefix=/protobuf-64 && \
12 make clean && make -j$(nproc) && make -j$(nproc) install"'
Kun Zhang8bc99202015-05-12 15:58:01 -070013
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"]