This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC4GfwPnz2tI61Yn0PjAkLmCAtrA2rwmcXMIuBbX3HZP8YcwN3cAmgpfcg6pcJB3mLZXse7KgQEtD/8cjtmH5wyiKOHLHIr4KuE3rxyjv86ulWXtwO5ZZc/Vxl/+kwGhBK0R7+rP1/mSZZ/pgSIn8NPxzjtv0h1utDbHXyPJufT/cu9Po3+c8LZETW7G7ktm5i+0QWJTptyvlgXM/bBMgxUiQMN2aCRHOPHbI/MBqTpJ8sNEEVJ3FcGkUEkJSo33iCvCdJLwrRvCZ8AwNmmvpXRWNPSoGGQBbeThC8I5lO2R5yZhIlChszvvsPl9yT8c0uvMV6jlbh3j5vBf8DHuhcf rogaha@Robertos-MacBook-Pro.local |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(vagrant@vagrant-ubuntu-raring-64):<~/go/src/github.com/dotcloud/docker> | |
[11:37:57 PM]% pulls contributors --additions (master|…)[Fri 14 Mar] | |
CONTRIBUTOR ADDITIONS DELETIONS COMMITS | |
shykes 112696 37819 665 | |
crosbymichael 35222 23116 393 | |
creack 32296 21721 682 | |
vieux 30152 18024 544 | |
dhrp 26326 14982 73 | |
jamtur01 16566 16274 38 | |
alexlarsson 10756 2668 230 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
self.auth = ('testuser', 'testuser') | |
data = {'callback_url': 'http://localhost:8003/hooks/highland/build', 'source_type': 'git', 'dockerfile_location': u'', 'docker_tag_name': u'latest', 'source_branch': u'master', 'docker_repo_slug': u'rogaha/docker-desktop', 'ssh_public': None, 'ssh_private': None, 'source_url': u'git://github.com/rogaha/docker-desktop.git'} | |
headers = {'Content-type': 'application/json', 'Accept': 'application/json'} | |
r = requests.post(url, data=json.dumps(data), headers=headers, auth=self.auth) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC4GfwPnz2tI61Yn0PjAkLmCAtrA2rwmcXMIuBbX3HZP8YcwN3cAmgpfcg6pcJB3mLZXse7KgQEtD/8cjtmH5wyiKOHLHIr4KuE3rxyjv86ulWXtwO5ZZc/Vxl/+kwGhBK0R7+rP1/mSZZ/pgSIn8NPxzjtv0h1utDbHXyPJufT/cu9Po3+c8LZETW7G7ktm5i+0QWJTptyvlgXM/bBMgxUiQMN2aCRHOPHbI/MBqTpJ8sNEEVJ3FcGkUEkJSo33iCvCdJLwrRvCZ8AwNmmvpXRWNPSoGGQBbeThC8I5lO2R5yZhIlChszvvsPl9yT8c0uvMV6jlbh3j5vBf8DHuhcf rogaha@Robertos-MacBook-Pro.local |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDDFWCJ9o7ozoccviUCoWzRYD+9/MLLPBRKQ2EEf87aWh7hsdHPGpQa4QoRHZ1+F6tzY0Joi4afApAZhJ+jRT1uwJVy+1hQ1QdjqMPAenfRcn+26XeU3mtZnDAP7wPxRbhoUOLV6mZdKBXwIHU7RwWE2iXHLvJe4nBwYpNV8LRT2l0ZW9wdedve02ZVrI8SyBGczJglHJqyDiMSEKTgX8Ik7xEBMCdhaFNUh9D4EklYkIGsXI/YUqJK09VfgbkecolggTPXTuItV3oStB7u0zAJ/xVHwfGmm+mRPlIJFJGGk9aGHHO3Alzeun1ys8ROPdHznUPkgrfdqaOOUSK/WVZ9 roberto@docker.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ERROR = -1 | |
PENDING = 0 | |
BUILDING = 1 | |
DONE = 2 | |
BUILD_STATUS = ( | |
(ERROR, "Error"), | |
(PENDING, "Pending"), | |
(BUILDING, "Building"), | |
(DONE, "Done") | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def highland_build_hook(request): | |
log.debug(u"(highland_build_hook) start") | |
if request.method == 'POST': | |
try: | |
log.debug(u"(highland_build_hook) POST") | |
data = JSONParser().parse(request) | |
build_code = data.get('build_code', None) | |
dockerfile = data.get('dockerfile_contents', None) | |
readme = data.get('readme_contents', None) | |
source_tarball_url = data.get('source_tarball_url', None) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
EXCEPTION = -2 | |
ERROR = -1 | |
PENDING = 0 | |
CLAIMED = 1 | |
STARTED = 2 | |
CLONED = 3 | |
README = 4 | |
DOCKERFILE = 5 | |
BUILT = 6 | |
BUNDLED = 7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
connection = mdb.connect(db_host, db_user, db_password, db_name, port=db_port) | |
cursor = connection.cursor(mdb.cursors.SSDictCursor) | |
cursor.execute("select user_agent from {0} where {1} LIKE " | |
"'%{2}%'".format(table_name, filter_field, filter_value)) | |
row = cursor.fetchone() | |
# Fetch each row at a time instead of fetching everything at once | |
# It improves the memory usage on the client side | |
while row is not None: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC4GfwPnz2tI61Yn0PjAkLmCAtrA2rwmcXMIuBbX3HZP8YcwN3cAmgpfcg6pcJB3mLZXse7KgQEtD/8cjtmH5wyiKOHLHIr4KuE3rxyjv86ulWXtwO5ZZc/Vxl/+kwGhBK0R7+rP1/mSZZ/pgSIn8NPxzjtv0h1utDbHXyPJufT/cu9Po3+c8LZETW7G7ktm5i+0QWJTptyvlgXM/bBMgxUiQMN2aCRHOPHbI/MBqTpJ8sNEEVJ3FcGkUEkJSo33iCvCdJLwrRvCZ8AwNmmvpXRWNPSoGGQBbeThC8I5lO2R5yZhIlChszvvsPl9yT8c0uvMV6jlbh3j5vBf8DHuhcf rogaha@Robertos-MacBook-Pro.local |
OlderNewer