build git for gh actions

This commit is contained in:
Craig 2020-04-19 00:50:26 +00:00
parent eb923b3290
commit 22772d3ac3

View File

@ -5,7 +5,8 @@ FROM debian:stretch-slim
RUN set -eux; apt-get update; apt-get install -y --no-install-recommends \ RUN set -eux; apt-get update; apt-get install -y --no-install-recommends \
apt-transport-https gnupg-agent software-properties-common lsb-release \ apt-transport-https gnupg-agent software-properties-common lsb-release \
autoconf ca-certificates curl netbase wget gnupg dirmngr libatomic1 \ autoconf ca-certificates curl netbase wget gnupg dirmngr libatomic1 \
bzr git mercurial openssh-client subversion procps cmake automake bzip2 dpkg-dev file g++ gcc \ libghc-zlib-dev libexpat1-dev \
bzr mercurial openssh-client subversion procps cmake automake bzip2 dpkg-dev file g++ gcc \
libbz2-dev libc6-dev libcurl4-openssl-dev libdb-dev libevent-dev libffi-dev libgdbm-dev libglib2.0-dev libgmp-dev \ libbz2-dev libc6-dev libcurl4-openssl-dev libdb-dev libevent-dev libffi-dev libgdbm-dev libglib2.0-dev libgmp-dev \
libjpeg-dev libkrb5-dev liblzma-dev libmagickcore-dev libmagickwand-dev libmaxminddb-dev libncurses5-dev libncursesw5-dev \ libjpeg-dev libkrb5-dev liblzma-dev libmagickcore-dev libmagickwand-dev libmaxminddb-dev libncurses5-dev libncursesw5-dev \
libpng-dev libpq-dev libreadline-dev libsqlite3-dev libssl-dev libtool libwebp-dev libxml2-dev libxslt-dev libyaml-dev \ libpng-dev libpq-dev libreadline-dev libsqlite3-dev libssl-dev libtool libwebp-dev libxml2-dev libxslt-dev libyaml-dev \
@ -15,6 +16,19 @@ RUN set -eux; apt-get update; apt-get install -y --no-install-recommends \
libxfixes-dev apt-utils x11vnc libxtst-dev dialog \ libxfixes-dev apt-utils x11vnc libxtst-dev dialog \
pulseaudio openbox chromium firefox-esr dbus-x11 xserver-xorg-video-dummy supervisor; pulseaudio openbox chromium firefox-esr dbus-x11 xserver-xorg-video-dummy supervisor;
#
# add git
ENV GIT_VERSION 2.21.0
RUN set -eux; \
cd /tmp/; \
wget https://github.com/git/git/archive/v$GIT_VERSION.zip -O latestgit.zip; \
unzip latestgit.zip; \
cd git-$GIT_VERSION; \
make prefix=/usr/local all; \
make prefix=/usr/local install; \
rm -rf /tmp/latestgit.zip /tmp/git-$GIT_VERSION;
# #
# install libclipboard # install libclipboard
RUN set -eux; \ RUN set -eux; \
@ -39,7 +53,6 @@ COPY .build/gst/local /gst/local/
# #
# add node # add node
ENV NODE_VERSION 12.16.2 ENV NODE_VERSION 12.16.2
RUN ARCH= && dpkgArch="$(dpkg --print-architecture)" \ RUN ARCH= && dpkgArch="$(dpkg --print-architecture)" \
&& case "${dpkgArch##*-}" in \ && case "${dpkgArch##*-}" in \
amd64) ARCH='x64';; \ amd64) ARCH='x64';; \