Skip to content

Instantly share code, notes, and snippets.

@util.renderer
def getrepoPath(props):
return [ Interpolate('/opt/repos:/buildslave/%(props:buildername)s/build/repos') ]
container_conf = {}
container_conf['network_mode'] = 'host'
container_conf['dns'] = ['8.8.8.8','8.8.4.4']
c['slaves'] = [
buildslave.DockerLatentBuildSlave('docker_slave', 'password',
docker_host='unix:///var/run/docker.sock',
@anish
anish / gist:ac3fb8c2b7359dac87b5
Created March 5, 2016 20:24
docker latent slave fails
Traceback (most recent call last):
File "/usr/lib64/python2.6/site-packages/twisted/spread/pb.py", line 563, in expressionReceived
method(*sexp[1:])
File "/usr/lib64/python2.6/site-packages/twisted/spread/pb.py", line 933, in proto_answer
d.callback(self.unserialize(netResult))
File "/usr/lib64/python2.6/site-packages/twisted/internet/defer.py", line 393, in callback
self._startRunCallbacks(result)
File "/usr/lib64/python2.6/site-packages/twisted/internet/defer.py", line 501, in _startRunCallbacks
self._runCallbacks()
--- <exception caught here> ---
sudo add-apt-repository ppa:openjdk-r/ppa
sudo apt-get update
sudo apt-get install openjdk-8-jdk
sudo update-alternatives --config java
sudo update-alternatives --config javac
java -version
sudo apt-get install ngrok-client
@anish
anish / gist:f323f089312a9073dd17
Created December 9, 2015 02:21
valgrind sysdig
sh-4.1# valgrind sysdig
==6934== Memcheck, a memory error detector
==6934== Copyright (C) 2002-2012, and GNU GPL'd, by Julian Seward et al.
==6934== Using Valgrind-3.8.1 and LibVEX; rerun with -h for copyright info
==6934== Command: sysdig
==6934==
==6934== Invalid read of size 1
==6934== at 0x4A08180: strncpy (mc_replace_strmem.c:476)
==6934== by 0x602B8B: scap_create_userlist (in /usr/bin/sysdig)
==6934== by 0x5F5CAA: scap_open_live_int (in /usr/bin/sysdig)
@anish
anish / gist:2b984bcb6e0e7128de9a
Created December 8, 2015 06:19
api test failure
=== RUN TestRoundTripTypes
--- FAIL: TestRoundTripTypes (0.22s)
serialization_test.go:79:
1: PersistentVolume: diff: (*api.PersistentVolume){TypeMeta:(unversioned.TypeMeta){Kind:(string) APIVersion:(string)} ObjectMeta:(api.ObjectMeta){Name:(string)I彥 GenerateName:(string)n Namespace:(string) SelfLink:(string)i{Ɇ鱁vɎ"澊\ UID:(types.UID)#"2$瘹wÈ6ʃ蒂$:驯ÔDZ奡 ResourceVersion:(string)13342962953036215102 Generation:(int64)0 CreationTimestamp:(unversioned.Time){Time:(time.Time){sec:(int64)0 nsec:(int32)0 loc:(*time.Location)<nil>}} DeletionTimestamp:(*unversioned.Time)<nil> DeletionGracePeriodSeconds:(*int64)<nil> Labels:(map[string]string)<nil> Annotations:(map[string]string)<nil>} Spec:(api.PersistentVolumeSpec){Capacity:(api.ResourceList)<nil> PersistentVolumeSource:(api.PersistentVolumeSource){GCEPersistentDisk:(*api.GCEPersistentDiskVolumeSource)<nil> AWSElasticBlockStore:(*api.AWSElasticBlockStoreVolumeSource)<nil> HostPath:(*api.HostPathVolumeSource)<nil> Glusterfs:(*api.GlusterfsVolume
@anish
anish / test-go.sh
Created December 7, 2015 22:13
k8s.io/kubernetes/pkg/api/
# k8s.io/kubernetes/pkg/api/api
_output/local/go/src/k8s.io/kubernetes/pkg/api/api/mapper.go:41: too many arguments in call to meta.NewDefaultRESTMapper
_output/local/go/src/k8s.io/kubernetes/pkg/api/api/mapper.go:54: cannot use gv.String() (type string) as type unversioned.GroupVersion in argument to Scheme.KnownTypes
_output/local/go/src/k8s.io/kubernetes/pkg/api/api/mapper.go:65: too many arguments in call to mapper.Add
_output/local/go/src/k8s.io/kubernetes/pkg/api/api/ref.go:56: Scheme.ObjectVersionAndKind undefined (type *runtime.Scheme has no field or method ObjectVersionAndKind)
_output/local/go/src/k8s.io/kubernetes/pkg/api/api/register.go:28: cannot use "" (type string) as type unversioned.GroupVersion in argument to Scheme.AddKnownTypes
_output/local/go/src/k8s.io/kubernetes/pkg/api/api/register.go:73: cannot use "" (type string) as type unversioned.GroupVersion in argument to Scheme.AddKnownTypes
_output/local/go/src/k8s.io/kubernetes/pkg/api/api/register.go:74: cannot use "" (type string) as type
Build timed out (after 60 minutes). Marking the build as aborted.
Build timed out (after 60 minutes). Marking the build as failed.
Build was aborted
Recording test results
ERROR: Step ‘Publish JUnit test result report’ aborted due to exception:
java.io.IOException: remote file operation failed: /var/lib/jenkins/workspace/kubernetes-pull-build-test-e2e-gce at hudson.remoting.Channel@52b6f4fb:builder-2: hudson.remoting.ChannelClosedException: channel is already closed
@anish
anish / gist:ded6190ab950057d486f
Created November 6, 2015 10:43
hack/update-codecgen.sh
0 1
0 2
0 3
0 4
0 5
0 6
0 7
0 8
0 9
0 10
0 1
hack/update-codecgen.sh: line 58: /dump/workspace/k8s.io/kubernetes/pkg/apis/metrics/v1alpha1: Is a directory
hack/update-codecgen.sh: line 58: /dump/workspace/k8s.io/kubernetes/pkg/apis/metrics/v1alpha1: Is a directory
hack/update-codecgen.sh: line 58: /dump/workspace/k8s.io/kubernetes/pkg/apis/metrics/v1alpha1: Is a directory
hack/update-codecgen.sh: line 58: /dump/workspace/k8s.io/kubernetes/pkg/apis/metrics/v1alpha1: Is a directory
hack/update-codecgen.sh: line 58: /dump/workspace/k8s.io/kubernetes/pkg/apis/metrics/v1alpha1: Is a directory
hack/update-codecgen.sh: line 58: /dump/workspace/k8s.io/kubernetes/pkg/apis/metrics/v1alpha1: Is a directory
hack/update-codecgen.sh: line 58: /dump/workspace/k8s.io/kubernetes/pkg/apis/metrics/v1alpha1: Is a directory
hack/update-codecgen.sh: line 58: /dump/workspace/k8s.io/kubernetes/pkg/apis/metrics/v1alpha1: Is a directory
hack/update-codecgen.sh: line 58: /dump/workspace/k8s.io/kubernetes/pkg/apis/metrics/v1alpha1: Is a directory
@anish
anish / gist:2efdb24accb522c0d063
Created November 6, 2015 09:59
hack/update-codecgen.sh
0 1 /dump/workspace/k8s.io/kubernetes/pkg/apis/metrics/v1alpha1 bitbucket.org/ww/goautoneg bufio bytes compress/flate compress/gzip container/list crypto crypto/aes crypto/cipher crypto/des crypto/dsa crypto/ecdsa crypto/elliptic crypto/hmac crypto/md5 crypto/rand crypto/rc4 crypto/rsa crypto/sha1 crypto/sha256 crypto/sha512 crypto/subtle crypto/tls crypto/x509 crypto/x509/pkix encoding encoding/asn1 encoding/base64 encoding/binary encoding/gob encoding/hex encoding/json encoding/pem errors expvar flag fmt github.com/beorn7/perks/quantile github.com/davecgh/go-spew/spew github.com/docker/docker/pkg/mount github.com/docker/docker/pkg/units github.com/docker/libcontainer/cgroups github.com/docker/libcontainer/cgroups/fs github.com/docker/libcontainer/configs github.com/docker/libcontainer/system github.com/ghodss/yaml github.com/golang/glog github.com/golang/protobuf/proto github.com/google/gofuzz github.com/juju/ratelimit github.com/matttproud/golang_protobuf_extensions/pbutil github.com/pborman/uuid github.co