• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1FROM protoc-artifacts:latest
2
3RUN scl enable devtoolset-1.1 'bash -c "cd /protobuf && \
4    git fetch && \
5    git checkout v3.5.1 && \
6    ./autogen.sh && \
7    CXXFLAGS=-m32 ./configure --disable-shared --prefix=/protobuf-32 && \
8    make clean && make -j$(nproc) && make -j$(nproc) 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 -j$(nproc) && make -j$(nproc) install"'
13
14ENV CXXFLAGS=-I/protobuf-32/include \
15    LDFLAGS="-L/protobuf-32/lib -L/protobuf-64/lib"
16
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"]
21