Skip to content

kemixkoo/docker-debian-git-repos

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Debian Git Repositories Image

Based on

Usage

docker run --rm -v /path/to/sources:/workspace/sources \
    -v /path/to/.ssh:/root/.ssh \
    kemixkoo/debian-git-repos

Will do "git status" for all sources git repositories., and show status logs in console.

Deamon Run

docker run -d -v /path/to/sources:/workspace/sources \
    -v /path/to/.ssh:/root/.ssh \
    -it kemixkoo/debian-git-repos /bin/bash

When in deamon mode with -d option, need add -i (--interactive) with "/bin/bash". Else, the container can't be deamon mode.

Then, in Jenkins or consle, can use docker exec command to do any commands, eg:

docker exec <running_constainer_id> ./gitx.sh pull --rebase -p

Building

docker build -t kemixkoo/debian-git-repos .

About

gitx.sh script for Git repositories management

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages