https://github.com/juli3nk/docker-volume-git
Docker Volume GIT plugin allows to mount git repository in container
https://github.com/juli3nk/docker-volume-git
docker docker-plugin docker-volume-plugin git
Last synced: 15 days ago
JSON representation
Docker Volume GIT plugin allows to mount git repository in container
- Host: GitHub
- URL: https://github.com/juli3nk/docker-volume-git
- Owner: juli3nk
- License: gpl-3.0
- Created: 2017-07-02T14:12:20.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2019-07-31T20:24:59.000Z (over 6 years ago)
- Last Synced: 2024-04-17T19:14:24.887Z (almost 2 years ago)
- Topics: docker, docker-plugin, docker-volume-plugin, git
- Language: Go
- Homepage:
- Size: 1.75 MB
- Stars: 26
- Watchers: 2
- Forks: 5
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Docker Volume GIT
[](https://goreportcard.com/report/github.com/kassisol/docker-volume-git)
This plugin allows to mount git repository in container.
## Getting Started
### Install
```bash
$ docker plugin install kassisol/gitvol:x.x.x
```
### Create a volume
| Key | Default | Description |
|---------------|-----------|-------------|
| url | | |
| ref | master | |
| auth-type | anonymous | |
| auth-user | | |
| secret-driver | stdin | |
#### As anonymous
```bash
$ docker volume create -d kassisol/gitvol:x.x.x -o "url=https://github.com/kassisol/docker-volume-git.git" vol_gitplugin
```
#### Using a secret on Standard Input
| Key | Description |
|--------------------|-------------|
| auth-password | |
```bash
$ docker volume create -d kassisol/gitvol:x.x.x -o "url=ssh:////" -o "auth-type=password" -o "auth-user=user1" -o "secret-driver=stdin" -o "auth-password=pass1234" vol_repo
```
#### Using a secret in Vault
| Key | Description |
|--------------------|-------------|
| vault-addr | |
| vault-token | |
| vault-secret-path | |
| vault-secret-field | |
```bash
$ docker volume create -d kassisol/gitvol:x.x.x -o "url=ssh:////" -o "auth-type=pubkey" -o "auth-user=user1" -o "secret-driver=vault" -o "vault-addr=http://192.168.0.10:8200" -o "vault-token=1ad7bce4-078e-23a1-07e9-981a02abd514" -o "vault-secret-path=secret/user1" -o "vault-secret-field=prikey" vol_repo
```
## User Feedback
### Issues
If you have any problems with or questions about this application, please contact us through a [GitHub](https://github.com/kassisol/docker-volume-git/issues) issue.