CI/CD: fix protoc-c version error in ubuntu compile check
@@ -3,11 +3,16 @@ FROM ubuntu:18.04
LABEL maintainer="Shirong Hao <shirong@linux.alibaba.com>"
RUN apt-get update && apt-get install -y autoconf gcc g++ make wget git \
- libseccomp-dev binutils-dev libprotoc-dev libprotobuf-c0-dev \
- protobuf-c-compiler pkg-config libssl-dev openssl
+ libseccomp-dev binutils-dev libprotoc-dev protobuf-compiler \
+ pkg-config libssl-dev openssl libtool
WORKDIR /root
+# install prortobuf-c
+RUN wget https://github.com/protobuf-c/protobuf-c/archive/v1.3.1.tar.gz &&\
+ tar -zxvf v1.3.1.tar.gz && cd protobuf-c-1.3.1 && ./autogen.sh && \
+ ./configure && make && make install
+
# install go
RUN wget https://dl.google.com/go/go1.14.2.linux-amd64.tar.gz && \
tar -zxvf go1.14.2.linux-amd64.tar.gz -C /usr/lib && \
