Generate Keys
$ ssh-keygen -f ~/.ssh/bitbucket.pem
Files bitbucket.pem and bitbucket.pem.pub will be generated.
Load this bitbucket.pem.pub key as a deploy key to your bitbucket repo.
Generate Keys
$ ssh-keygen -f ~/.ssh/bitbucket.pem
Files bitbucket.pem and bitbucket.pem.pub will be generated.
Load this bitbucket.pem.pub key as a deploy key to your bitbucket repo.
# cat solo.rb
cookbook_path "/tmp/cookbooks"
# cat runlist.json
{
"run_list" : [ "recipe[haproxy]" ]
}
#--------------------------------------------------------------------- | |
# Example configuration for a possible web application. See the | |
# full configuration options online. | |
# | |
# http://haproxy.1wt.eu/download/1.4/doc/configuration.txt | |
# | |
#--------------------------------------------------------------------- | |
#--------------------------------------------------------------------- | |
# Global settings |
filebeatTest.sh
CONF="/tmp/f.yml"
cat << EOF >> $CONF
filebeat:
registry_file: "/var/lib/filebeat/registry"
prospectors:
-
paths:
test
# remove non-ascii character from a file. | |
tr -cd '\11\12\15\40-\176' < file-with-binary-chars > clean-file | |
== | |
yum install sysstat | |
mpstat -P ALL | |
sar -u 2 5 | |
nohup sar -o output.file 12 8 >/dev/null 2>&1 & | |
iostat -xtc 5 3 |
{ | |
"acl_token": "anonymous", | |
"client_addr": "0.0.0.0", | |
"data_dir": "/var/lib/consul", | |
"datacenter": "sbox-us-east", | |
"enable_syslog": true, | |
"encrypt": "x==", | |
"log_level": "INFO", | |
"ports": { | |
"dns": 8600, |
$ aws --profile ssnp --region us-east-1 ecr get-login
docker login -u AWS -p <PEM Text> -e none https://xxxx8739xxxx.dkr.ecr.us-east-1.amazonaws.com
Docker saves config in '/root/.docker/config.json'
Reference: | |
- http://live-rg-engineering.pantheon.io/news/jenkins-docker-proxies-and-compose | |
- https://engineering.riotgames.com/news/putting-jenkins-docker-container | |