Try to use pip to install python packages like vcrpy in standard ubuntu 12.10
it seems there is problem to upgrade using pip 1.3.1
see log below
# cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=12.10
DISTRIB_CODENAME=quantal
\begin{enumerate}\setlength{\itemsep}{1pt}\setlength{\parskip}{0pt}\setlength{\parsep}{0pt} | |
\item | |
item1 | |
\item | |
item2 | |
\end{enumerate} | |
\begin{enumerate}\setlength{\itemsep}{1pt}\setlength{\parskip}{0pt}\setlength{\parsep}{0pt} | |
\item |
require 'aruba/cucumber' | |
module ArubaOverrides | |
def detect_ruby(cmd) | |
processor, platform, *rest = RUBY_PLATFORM.split("-") | |
#puts platform | |
if platform =~ /w32$/ && cmd =~ /^mkbok / #mkbok is the real command in features | |
"ruby -I../../lib -S ../../bin/#{cmd}" | |
else | |
"#{cmd}" | |
end |
#!/usr/bin/env python | |
""" | |
hello2.py hello world sample | |
Usage: hello2.py [options] | |
Options: | |
-m messages message list, separare by ',' | |
-h this help | |
Mail bug reports and suggestion to : Larry Cai <larry.caiyu AT gmail.com> |
Try to use pip to install python packages like vcrpy in standard ubuntu 12.10
it seems there is problem to upgrade using pip 1.3.1
see log below
# cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=12.10
DISTRIB_CODENAME=quantal
testcase_0 | |
testcase_1 | |
testcase_2 | |
testcase_3 | |
testcase_4 | |
testcase_5 | |
testcase_6 | |
testcase_7 | |
testcase_8 | |
testcase_9 |
# Description: | |
# Interact with your Jenkins CI server | |
# | |
# Dependencies: | |
# None | |
# | |
# Configuration: | |
# HUBOT_JENKINS_HOST | |
# HUBOT_JENKINS_AUTH | |
# |
#!/usr/bin/env python | |
import sys | |
import urllib2 | |
import ssl | |
import lxml | |
import lxml.html | |
CTX = ssl.create_default_context() | |
CTX.check_hostname = False | |
CTX.verify_mode = ssl.CERT_NONE |
使用官方的docker image来学习 RabbitMQ和Python客户端的使用
参考: https://www.rabbitmq.com/tutorials/tutorial-one-python.html
启动RabbitMQ
docker run -d -P -e RABBITMQ_NODENAME=rabbit --hostname rabbit --name rabbit rabbitmq:3
freeStyleJob("Hello3") { | |
logRotator(2, 30) | |
scm { | |
git('https://github.com/larrycai/docker-images.git') | |
} | |
triggers { | |
scm('H/15 * * * *') | |
} | |
wrappers { | |
preBuildCleanup() |
// A Declarative Pipeline is defined within a 'pipeline' block. | |
pipeline { | |
// agent defines where the pipeline will run. | |
agent { | |
// This also could have been 'agent any' - that has the same meaning. | |
label "" | |
// Other possible built-in agent types are 'agent none', for not running the | |
// top-level on any agent (which results in you needing to specify agents on | |
// each stage and do explicit checkouts of scm in those stages), 'docker', |