Skip to content

Build and run a specific version of Git in a docker container.

Notifications You must be signed in to change notification settings

sealocal/docker-git

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

docker-git

Build the base image:

$ docker build -f dependcies/Dockerfile -t git-dependencies .

Build the git image:

$ docker build -t git .

Run the latest image (2.25.0):

$ docker run --rm -it git
root@[container]:/# git --version
git version 2.25.0
root@[container]:/# exit
exit

$ docker run --rm -it git:latest
root@[container]:/# git --version
git version 2.25.0
root@[container]:/# exit
exit

Build the git image with a specific version of git (e.g., 2.24.0):

$ docker build -t git:2.24.0 --build-arg VERSION=2.24.0 .

Run the versioned image:

$ docker run --rm -it git:2.24.0
root@[container]:/# git --version
git version 2.24.0
root@[container]:/# exit
exit

About

Build and run a specific version of Git in a docker container.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published