For educational reasons I've decided to create my own CA. Here is what I learned.
Lets get some context first.
Use these rapid keyboard shortcuts to control the GitHub Atom text editor on Mac OSX.
#!/bin/bash | |
# After a 1.7+ opsmanager restarts with a new ip address | |
# ssh into the opsmanager as 'ubuntu' and | |
# Run this file from the opsmanager as follows | |
# sudo su -l postgres < thisfile.sh > | |
# Get the current public ip or hostname from aws metadata | |
HN=$(curl http://169.254.169.254/latest/meta-data/public-hostname) |
go get github.com/concourse/autopilot | |
cf install-plugin $GOPATH/bin/autopilot | |
cf login -a ${CF_URL_US_SOUTH} -u ${CF_USERNAME} -p ${CF_PASSWORD} -o ${CF_ORG} -s ${CF_SPACE} | |
cf zero-downtime-push myapp -f manifest.yml |
I [tweeted this already][1] but I thought it could use some expansion:
Enable decentralized git workflow: git config alias.serve "daemon --verbose --export-all --base-path=.git --reuseaddr --strict-paths .git/"
Say you use a git workflow that involves working with a core "official" repository that you pull and push your changes from and into. I'm sure many companies do this, as do many users of git hosting services like Github.
Say that server, or Github, goes down for a bit.
➜ bosh-lite git:(master) CF_HOME=/tmp/cf2 cf login -a https://api.10.244.0.34.xip.io -u admin -p admin --skip-ssl-validation | |
API endpoint: https://api.10.244.0.34.xip.io | |
Authenticating... | |
OK | |
Targeted org jdk-org | |
Targeted space jdk-space | |
Using bosh-lite; apply 5GB file upload patch - https://groups.google.com/a/cloudfoundry.org/forum/#!msg/bosh-users/MjiFAdpyimQ/VeOCpG9SsHQJ
Then:
Upload cf-release
bosh upload release https://bosh.io/d/github.com/cloudfoundry/cf-release?v=205