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
pipeline { | |
environment { | |
LANG = "C.UTF-8" | |
} | |
agent { | |
docker { | |
image 'centos:7' | |
args '-p 2222:22 -v --privileged ' | |
} | |
} |
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
[root@ip-172-31-40-87 current]# cat worker_sample.rb | |
require 'sinatra/base' | |
require 'logger' | |
require 'ddtrace' | |
require 'ddtrace/contrib/sinatra/tracer' | |
class WorkerSample < Sinatra::Base | |
configure do | |
Datadog.configure do |c| | |
c.tracer hostname: 'test' |
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
root@ce0d825c1557:/# apt install postgresql-10 | |
Reading package lists... Done | |
Building dependency tree | |
Reading state information... Done | |
Some packages could not be installed. This may mean that you have | |
requested an impossible situation or if you are using the unstable | |
distribution that some required packages have not yet been created | |
or been moved out of Incoming. | |
The following information may help to resolve the situation: |
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
paul.lupu@SVROLP00209:~/work/kubernetes/metrics-server:(master)\ | |
_$ kk apply -f deploy/1.8+/ | |
clusterrole.rbac.authorization.k8s.io/system:aggregated-metrics-reader unchanged | |
clusterrolebinding.rbac.authorization.k8s.io/metrics-server:system:auth-delegator unchanged | |
rolebinding.rbac.authorization.k8s.io/metrics-server-auth-reader unchanged | |
apiservice.apiregistration.k8s.io/v1beta1.metrics.k8s.io unchanged | |
serviceaccount/metrics-server unchanged | |
deployment.apps/metrics-server unchanged | |
service/metrics-server unchanged | |
clusterrole.rbac.authorization.k8s.io/system:metrics-server unchanged |
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
2019-10-04 08:55:42.577+0000 [id=30] SEVERE jenkins.InitReactorRunner$1#onTaskFailed: Failed Initializing plugin selenium | |
java.net.SocketTimeoutException: Accept timed out | |
at java.base/java.net.PlainSocketImpl.socketAccept(Native Method) | |
at java.base/java.net.AbstractPlainSocketImpl.accept(AbstractPlainSocketImpl.java:458) | |
at java.base/java.net.ServerSocket.implAccept(ServerSocket.java:551) | |
at java.base/java.net.ServerSocket.accept(ServerSocket.java:519) | |
at hudson.slaves.Channels.newJVM(Channels.java:227) | |
at hudson.plugins.selenium.process.SeleniumProcessUtils.createSeleniumGridVM(SeleniumProcessUtils.java:59) | |
at hudson.plugins.selenium.PluginImpl.startHub(PluginImpl.java:176) | |
at hudson.plugins.selenium.PluginImpl.postInitialize(PluginImpl.java:136) |
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
default via 172.31.0.1 dev eth0 proto dhcp src 172.31.9.74 metric 100 | |
10.34.0.0/24 via 10.34.0.2 dev tun0 | |
10.34.0.2 dev tun0 proto kernel scope link src 10.34.0.1 | |
172.31.0.0/20 dev eth0 proto kernel scope link src 172.31.9.74 | |
172.31.0.1 dev eth0 proto dhcp scope link src 172.31.9.74 metric 100 |
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
apiVersion: networking.k8s.io/v1beta1 | |
kind: Ingress | |
metadata: | |
annotations: | |
alb.ingress.kubernetes.io/subnets: subnet-767bb43d,subnet-eecaf7b5 | |
alb.ingress.kubernetes.io/scheme: internet-facing | |
kubernetes.io/ingress.class: alb | |
name: echoserver | |
spec: | |
rules: |
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
root@jenkins01:~/ansible_ami_builder# cat playbook.yaml | |
# AWS Playbook | |
--- | |
- hosts: localhost | |
connection: local | |
gather_facts: False | |
vars: | |
key_name: troc-ec2-key |
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
import requests | |
import os | |
HEROKU_APP=os.environ['HEROKU_APP'] | |
HEROKU_API_KEY=os.environ['HEROKU_API_KEY'] | |
### scale up our application to 4 dynos | |
url = 'https://api.heroku.com/apps/'+HEROKU_APP+'/formation' | |
head = {"Content-Type": "application/json", "Accept": "application/vnd.heroku+json; version=3", "Authorization": "Bearer "+HEROKU_API_KEY} | |
payload = { "updates": [ { "quantity": 4, "type": "web" } ]} |
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
import requests | |
import os | |
HEROKU_APP=os.environ['HEROKU_APP'] | |
HEROKU_API_KEY=os.environ['HEROKU_API_KEY'] | |
### scale up our application to 4 dynos | |
url = 'https://api.heroku.com/apps/'+HEROKU_APP+'/formation' | |
head = {"Content-Type": "application/json", "Accept": "application/vnd.heroku+json; version=3", "Authorization": "Bearer "+HEROKU_API_KEY} | |
payload = { "updates": [ { "quantity": 4, "type": "web" } ]} |