akka {
remote {
This file contains hidden or 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
| podTemplate( | |
| label: 'es-build', | |
| containers: [ | |
| containerTemplate(name: 'jnlp', image: 'henryrao/jnlp-slave', args: '${computer.jnlpmac} ${computer.name}', alwaysPullImage: true) | |
| ], | |
| volumes: [ | |
| hostPathVolume(mountPath: '/root/.kube/config', hostPath: '/root/.kube/config') | |
| ]) { | |
| node('es-build') { |
This file contains hidden or 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 jobName = "jenkins-master" | |
| def job = Jenkins.instance.getItem(jobName) | |
| job.getBuilds().each { it.delete() } |
This file contains hidden or 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
| podTemplate( | |
| label: 'stored2', | |
| containers: [ | |
| containerTemplate(name: 'jnlp', image: 'henryrao/jnlp-slave', args: '${computer.jnlpmac} ${computer.name}', alwaysPullImage: true), | |
| containerTemplate(name: 'elastic', image: 'docker.elastic.co/elasticsearch/elasticsearch:5.2.2', ttyEnabled: true, | |
| command: '/usr/share/elasticsearch/bin/elasticsearch -Ehttp.host=0.0.0.0 -Etransport.host=127.0.0.1 -Expack.security.enabled=false', | |
| envVars: [ | |
| containerEnvVar(key: 'ES_JAVA_OPTS', value: '-Des.cgroups.hierarchy.override=/') | |
| ]) | |
| ], |
This file contains hidden or 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
| pipeline { | |
| agent none | |
| stages { | |
| stage('Build') { | |
| agent { label 'docker' } | |
| steps { | |
| echo "hello" | |
| } | |
| } | |
| } |
This file contains hidden or 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
| val lines = """|PUT my_index | |
| |{ | |
| | "mappings": { | |
| | "my_type": { | |
| | "properties": { | |
| | "location": { | |
| | "type": "geo_point" | |
| | } | |
| | } | |
| | } |
#改/etc/hosts
可精确改到原有hostname原来是指向127.0.0.1(lookback)的问题, 在建立ceph的osd node一定得改
原始/etc/hosts
127.0.0.1 node1 node1
变成
不能debug的错误信息
could not launch process: could not fork/exec
先自己产生证书, 接下来一定要重开机
- 获取delve源代码
This file contains hidden or 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
| docker run --rm --net=host --cap-add=NET_ADMIN quay.io/coreos/dnsmasq -d -q --dhcp-range=192.168.90.20,192.168.90.30 --enable-tftp --tftp-root=/var/lib/tftpboot --dhcp-userclass=set:ipxe,iPXE --dhcp-boot=tag:#ipxe,undionly.kpxe --dhcp-boot=tag:ipxe,http://bootcfg.example.com:8080/boot.ipxe --log-queries --log-dhcp --dhcp-option=3,192.168.90.1 --address=/bootcfg.example.com/192.168.90.250 | |
| docker run -p 8080:8080 --rm -v $PWD/demo1:/var/lib/bootcfg:Z -v $PWD/demo1/groups:/var/lib/bootcfg/groups:Z quay.io/coreos/bootcfg:latest -address=0.0.0.0:8080 -log-level=debug |
This file contains hidden or 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
| docker run --rm \ | |
| -v /opt/bin:/tmp/bin gcr.io/google_containers/hyperkube:v1.4.6 \ | |
| /bin/sh -c "cp /hyperkube /tmp/bin" \ | |
| && ln -s /opt/bin/hyperkube /opt/bin/kubectl |