Skip to content

Instantly share code, notes, and snippets.

@iandyh
Last active February 19, 2020 16:33
Show Gist options
  • Save iandyh/5a1b1de9a46c6fa385f1 to your computer and use it in GitHub Desktop.
Save iandyh/5a1b1de9a46c6fa385f1 to your computer and use it in GitHub Desktop.
Install Git with OpenSSL on Ubuntu
# install git with openssl
ENV GIT_VERSION 1.9.1
ENV PLATFORM 1ubuntu0.1
ENV GIT ${GIT_VERSION}-${PLATFORM}
RUN apt-get install -y build-essential dpkg-dev
RUN mkdir -p git-openssl
WORKDIR /tmp/git-openssl
RUN apt-get source git=1:${GIT}
RUN apt-get -y build-dep git
RUN dpkg-source -x git_${GIT}.dsc
WORKDIR /tmp/git-openssl/git-${GIT_VERSION}
RUN sed -i 's/libcurl4-gnutls-dev/libcurl4-openssl-dev/' debian/control
RUN sed -i '/TEST\ =test/d' debian/rules
RUN apt-get install -y libcurl4-openssl-dev liberror-perl git-man
RUN dpkg-buildpackage -b
RUN dpkg -i ../git_${GIT}_amd64.deb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment