Sign inSign up

redmatter/gitman

By redmatter

•Updated about 9 years ago

Dockerised gitman

Image
0

563

redmatter/gitman repository overview

⁠Dockerised Gitman

Source of the docker image redmatter/gitman⁠.

Documentation on gitman can be found at https://github.com/jacebrowning/gitman⁠

Inspiration and entrypoint logic from php composer⁠.

⁠How to use it?

In what ever way you use it, you will have to setup a volume with your project content; the easiest way to do that is by setting up your current working directory. i.e by passing in the docker run option --volume=$(pwd):/project.

⁠Safest way to run it

Here is the safest way to run it; with the same privileges as your user. i.e by passing in the docker run option --user=$(id -u):$(id -g)

The entrypoint script can take all gitman commandline options⁠.

docker run --rm -it \
    --user="$(id -u):$(id -g)" \
    --volume="$(pwd):/project" \
    init

⁠Customisations via environment variable

⁠PROJECT_DIR

default: /project

If you fancy setting up the project volume to be somewhere other than /project, you will need to set this variable up.

⁠GITMAN_CACHE

default: /tmp

This is the folder that gitman uses for caching git repos.

Tag summary

Content type

Image

Digest

Size

264.2 MB

Last updated

about 9 years ago

docker pull redmatter/gitman