Home | History | Annotate | Download | only in compiler
      1 FROM protoc-artifacts:latest
      2 
      3 RUN 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 
     10 RUN 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 
     14 ENV CXXFLAGS=-I/protobuf-32/include \
     15     LDFLAGS="-L/protobuf-32/lib -L/protobuf-64/lib"
     16 
     17 RUN git clone --depth 1 https://github.com/grpc/grpc-java.git
     18 
     19 # Start in devtoolset environment that uses GCC 4.7
     20 CMD ["scl", "enable", "devtoolset-1.1", "bash"]
     21