Skip to content
Snippets Groups Projects
Unverified Commit 920ea8d8 authored by Tim Bo's avatar Tim Bo Committed by GitHub
Browse files

fix(deps): Update git to latest stable version (#5493)

Solves an issue with sorting git tags

Closes #5477
parent 95e2edbb
No related branches found
Tags 28.11.0
No related merge requests found
......@@ -24,11 +24,17 @@ ENV DEBIAN_FRONTEND noninteractive
ENV LC_ALL C.UTF-8
ENV LANG C.UTF-8
RUN apt-get update && apt-get install -y gpg curl wget unzip xz-utils git openssh-client bsdtar build-essential && \
RUN apt-get update && apt-get install -y gpg curl wget unzip xz-utils openssh-client bsdtar build-essential && \
rm -rf /var/lib/apt/lists/*
## Gradle
# The git version of ubuntu 18.04 is too old to sort ref tags properly (see #5477), so update it to the latest stable version
RUN echo "deb http://ppa.launchpad.net/git-core/ppa/ubuntu bionic main\ndeb-src http://ppa.launchpad.net/git-core/ppa/ubuntu bionic main" > /etc/apt/sources.list.d/git.list && \
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E1DD270288B4E6030699E45FA1715D88E1DF1F24 && \
apt-get update && \
apt-get -y install git && \
rm -rf /var/lib/apt/lists/*
## Gradle
RUN apt-get update && apt-get install -y --no-install-recommends openjdk-11-jre-headless gradle && \
rm -rf /var/lib/apt/lists/*
......
......@@ -50,6 +50,13 @@ FROM base as final
# required for install
USER root
# The git version of ubuntu 18.04 is too old to sort ref tags properly (see #5477), so update it to the latest stable version
RUN echo "deb http://ppa.launchpad.net/git-core/ppa/ubuntu bionic main\ndeb-src http://ppa.launchpad.net/git-core/ppa/ubuntu bionic main" > /etc/apt/sources.list.d/git.list && \
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E1DD270288B4E6030699E45FA1715D88E1DF1F24 && \
apt-get update && \
apt-get -y install git && \
rm -rf /var/lib/apt/lists/*
# Docker client and group
RUN groupadd -g 999 docker
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment