Skip to content

Instantly share code, notes, and snippets.

View rogaha's full-sized avatar

Roberto Gandolfo Hashioka rogaha

  • Docker, Inc
  • San Francisco, CA
View GitHub Profile
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)
EXCEPTION = -2
ERROR = -1
PENDING = 0
CLAIMED = 1
STARTED = 2
CLONED = 3
README = 4
DOCKERFILE = 5
BUILT = 6
BUNDLED = 7
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:
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC4GfwPnz2tI61Yn0PjAkLmCAtrA2rwmcXMIuBbX3HZP8YcwN3cAmgpfcg6pcJB3mLZXse7KgQEtD/8cjtmH5wyiKOHLHIr4KuE3rxyjv86ulWXtwO5ZZc/Vxl/+kwGhBK0R7+rP1/mSZZ/pgSIn8NPxzjtv0h1utDbHXyPJufT/cu9Po3+c8LZETW7G7ktm5i+0QWJTptyvlgXM/bBMgxUiQMN2aCRHOPHbI/MBqTpJ8sNEEVJ3FcGkUEkJSo33iCvCdJLwrRvCZ8AwNmmvpXRWNPSoGGQBbeThC8I5lO2R5yZhIlChszvvsPl9yT8c0uvMV6jlbh3j5vBf8DHuhcf rogaha@Robertos-MacBook-Pro.local
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/opt/shark-0.9.1-bin-hadoop1/lib_managed/jars/org.slf4j/slf4j-log4j12/slf4j-log4j12-1.7.2.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/opt/spark-0.9.1-bin-hadoop1/assembly/target/scala-2.10/spark-assembly_2.10-0.9.1-hadoop1.0.4.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
14/05/22 07:44:18 INFO executor.MesosExecutorBackend: Registered with Mesos as executor ID 201405220741-234885548-5050-263-0
14/05/22 07:44:18 INFO slf4j.Slf4jLogger: Slf4jLogger started
14/05/22 07:44:18 INFO Remoting: Starting remoting
14/05/22 07:44:19 INFO Remoting: Remoting started; listening on addresses :[akka.tcp://spark@worker1:33922]
14/05/22 07:44:19 INFO Remoting: Remoting now listens on addresses: [akka.tcp://spark@worker1:33922]
14/05/22 08:55:56 INFO Slf4jLogger: Slf4jLogger started [462/1827]
14/05/22 08:55:56 INFO Remoting: Starting remoting
14/05/22 08:55:56 INFO Remoting: Remoting started; listening on addresses :[akka.tcp://spark@worker3:50104]
14/05/22 08:55:56 INFO Remoting: Remoting now listens on addresses: [akka.tcp://spark@worker3:50104]
14/05/22 08:55:56 INFO SparkEnv: Connecting to BlockManagerMaster: akka.tcp://spark@spark-client:54787/user/BlockManagerMaster
14/05/22 08:55:57 INFO DiskBlockManager: Created local directory at /tmp/spark-local-20140522085557-8332
14/05/22 08:55:57 INFO MemoryStore: MemoryStore started with capacity 460.0 MB.
14/05/22 08:55:57 INFO ConnectionManager: Bound socket to port 47810 with id = Connecti
<!-- pagination-->
<div class="span9 offset3 pagination pagination-centered">
<ul>
<li><a href="?page=3&amp;q=true"><<</a></li>
<li><a href="?page=1&amp;q=true">1</a></li>
curl -X POST -i -H "Content-Type: application/json" -d '{"state": "success", "target_url": "https://example.com/build/status", "description": "The build succeeded, "context": "continuous-integration/jenkins"}' https://index.docker.io/u/rogaha/docker-desktop/hook/2db4b03beiaiif211i3cea51e53gb0c1d4e/
(fabric)rogaha@Robertos-MacBook-Pro:~/development/rogaha/saas-config/fabric$ pip install -r requirements.txt 14:15:34 ☁ master ☂ ⚡
Requirement already satisfied (use --upgrade to upgrade): Fabric==1.8.3 in /Users/rogaha/.virtualenvs/fabric/lib/python2.7/site-packages (from -r requirements.txt (line 1))
Requirement already satisfied (use --upgrade to upgrade): cuisine==0.6.5 in /Users/rogaha/.virtualenvs/fabric/lib/python2.7/site-packages (from -r requirements.txt (line 2))
Requirement already satisfied (use --upgrade to upgrade): docker-py==0.3.0 in /Users/rogaha/.virtualenvs/fabric/lib/python2.7/site-packages (from -r requirements.txt (line 3))
Requirement already satisfied (use --upgrade to upgrade): PyYAML==3.10 in /Users/rogaha/.virtualenvs/fabric/lib/python2.7/site-packages (from -r requirements.txt (line 4))
Requirement already satisfied (use --upgrade to upgrade): paramiko>=1.10,<1.13 in /Users/rogaha/.virtualenvs/fabric/lib/python2.7/site-packages (fr
(fabric)rogaha@Robertos-MacBook-Pro:~/development/rogaha/saas-config/fabric$ python 14:16:29 ☁ master ☂ ⚡
Python 2.7.5 (default, Mar 9 2014, 22:15:05)
[GCC 4.2.1 Compatible Apple LLVM 5.0 (clang-500.0.68)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import cuisine
>>>
(fabric)rogaha@Robertos-MacBook-Pro:~/development/rogaha/saas-config/fabric$ which python 14:19:02 ☁ master ☂ ⚡
/Users/rogaha/.virtualenvs/fabric/bin/python
(fabric)rogaha@Robertos-MacBook-Pro:~/development/rogaha/saas-config/fabric$