workflows/docker: update to git 2.18 or higher for compilation testing
Update to git 2.18 or higher to support git submodules.
@@ -5,10 +5,15 @@ LABEL maintainer="Shirong Hao <shirong@linux.alibaba.com>"
ENV APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=1
ENV DEBIAN_FRONTEND noninteractive
-RUN apt-get update && apt-get install -y autoconf gcc g++ make wget git cmake \
+RUN apt-get update && apt-get install -y autoconf gcc g++ make wget cmake \
libseccomp-dev binutils-dev libprotoc-dev protobuf-compiler \
pkg-config libssl-dev openssl libtool file curl
+# install git 2.18 or higher to support git submodules
+RUN apt-get install -y software-properties-common && \
+ add-apt-repository ppa:git-core/ppa -y && \
+ apt-get update && apt-get install -y git
+
WORKDIR /root
# install prortobuf-c
