Kun Zhang | 8bc9920 | 2015-05-12 15:58:01 -0700 | [diff] [blame] | 1 | FROM protoc-artifacts:latest |
| 2 | |
| 3 | RUN scl enable devtoolset-1.1 'bash -c "cd /protobuf && \ |
Kun Zhang | cadc0b2 | 2015-08-12 17:58:32 -0700 | [diff] [blame] | 4 | git fetch && \ |
Łukasz Strzałkowski | d954bc2 | 2016-11-04 10:18:18 -0700 | [diff] [blame] | 5 | git checkout v3.1.0 && \ |
Kun Zhang | 8bc9920 | 2015-05-12 15:58:01 -0700 | [diff] [blame] | 6 | ./autogen.sh && \ |
Eric Anderson | daf920d | 2016-02-17 11:33:34 -0800 | [diff] [blame] | 7 | CXXFLAGS=-m32 ./configure --disable-shared --prefix=/protobuf-32 && \ |
| 8 | make clean && make -j$(nproc) && make -j$(nproc) install"' |
Kun Zhang | 8bc9920 | 2015-05-12 15:58:01 -0700 | [diff] [blame] | 9 | |
| 10 | RUN scl enable devtoolset-1.1 'bash -c "cd /protobuf && \ |
Eric Anderson | daf920d | 2016-02-17 11:33:34 -0800 | [diff] [blame] | 11 | CXXFLAGS=-m64 ./configure --disable-shared --prefix=/protobuf-64 && \ |
| 12 | make clean && make -j$(nproc) && make -j$(nproc) install"' |
Kun Zhang | 8bc9920 | 2015-05-12 15:58:01 -0700 | [diff] [blame] | 13 | |
Eric Anderson | 7d906c5 | 2015-05-20 14:20:45 -0700 | [diff] [blame] | 14 | ENV CXXFLAGS=-I/protobuf-32/include \ |
| 15 | LDFLAGS="-L/protobuf-32/lib -L/protobuf-64/lib" |
Kun Zhang | 8bc9920 | 2015-05-12 15:58:01 -0700 | [diff] [blame] | 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"] |