1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/contrib/brew/docker-brew
2013-07-24 23:48:16 +02:00

25 lines
No EOL
1 KiB
Python
Executable file

#!/usr/bin/env python
import argparse
import brew
DEFAULT_REPOSITORY = 'git://github.com/dotcloud/docker'
DEFAULT_BRANCH = 'library'
if __name__ == '__main__':
parser = argparse.ArgumentParser('Build the docker standard library')
parser.add_argument('--push', action='store_true', default=False,
help='push generated repositories to the official registry')
parser.add_argument('-n', metavar='NAMESPACE', default='library',
help='namespace used for generated repositories.'
' Default is library')
parser.add_argument('-b', metavar='BRANCH', default=DEFAULT_BRANCH,
help='branch in the repository where the library definition'
' files will be fetched. Default is ' + DEFAULT_BRANCH)
parser.add_argument('repository', default=DEFAULT_REPOSITORY, nargs='?',
help='git repository containing the library definition files.'
' Default is ' + DEFAULT_REPOSITORY)
args = parser.parse_args()
brew.build_library(args.repository, args.b, args.n, args.push)