Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
renovate
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GitHub Mirror
Renovate Bot
renovate
Commits
920ea8d8
Unverified
Commit
920ea8d8
authored
5 years ago
by
Tim Bo
Committed by
GitHub
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
fix(deps): Update git to latest stable version (#5493)
Solves an issue with sorting git tags Closes #5477
parent
95e2edbb
No related branches found
Branches containing commit
Tags
28.11.0
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Dockerfile
+8
-2
8 additions, 2 deletions
Dockerfile
Dockerfile.slim
+7
-0
7 additions, 0 deletions
Dockerfile.slim
with
15 additions
and
2 deletions
Dockerfile
+
8
−
2
View file @
920ea8d8
...
...
@@ -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
\n
deb-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/
*
...
...
This diff is collapsed.
Click to expand it.
Dockerfile.slim
+
7
−
0
View file @
920ea8d8
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment