$ tar -zxvf pcf-pipelines-v0.16.0.tgz
export GITHUB_TOKEN= $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
version="2.0.0"
vtag="v$version"
username=boina-n
repo=cf-all-routes
lrname=linux-amd64-$repo-release
wrname=windows-amd64-$repo-release.exe
uname="$repo-$version"
utgzname="$repo $version.tgz"
This is a set up for projects which want to check in only their source files, but have their gh-pages branch automatically updated with some compiled output every time they push.
You want a script that does a local compile to e.g. an out/
directory. Let's call this compile.sh
for our purposes, but for your project it might be npm build
or gulp make-docs
or anything similar.
The out/
directory should contain everything you want deployed to gh-pages
. That almost always includes an index.html
.
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
mkdir dumb-static-app | |
cd dumb-static-app/ | |
touch Staticfile | |
echo 'Dumb static app' > index.html | |
cf push mydumbapp -m 64M |
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
for space_guid in `cf curl /v2/spaces | jq -r ".resources[].metadata.guid"` | |
do | |
routes_url=$(cf curl /v2/spaces/$space_guid | jq -r ".entity.routes_url") | |
for route in $(cf curl $routes_url | jq -r ".resources[].metadata.guid") | |
do | |
hostname=$(cf curl /v2/routes/$route | jq -r ".entity.host") | |
domain_guid=$(cf curl /v2/routes/$route | jq -r ".entity.domain_guid") | |
domaine_name=$(cf curl /v2/domains/$domain_guid | jq -r ".entity.name") | |
echo $hostname"."$domaine_name | |
done |
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
$ sudo su - git | |
$ cd repos/ | |
$ mkdir test-repo.git | |
$ git init --bare | |
# from the jumpbox or any server | |
# make sure the the repo host is declared in the ssh config file: | |
$ cat ~/.ssh/config | |
host myrepo |
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
uaac target | |
uaac token client get admin | |
uaac user add concourse-ci -p $Password--emails [email protected] | |
uaac member add cloud_controller.admin concourse-ci | |
uaac member add scim.read concourse-ci | |
uaac member add scim.write concourse-ci |
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
fly -t pcf login -k | |
fly -t pcf containers | |
sudo /home/nboina/bin/fly -t pcf login -k | |
sudo /home/nboina/bin/fly -t pcf hijack -j pcf-sleep-all/sleep-apps |
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
host myrepo | |
HostName 10.10.8.19 | |
IdentityFile ~/.ssh/gitsrv.key | |
User git | |
host myconcourse | |
HostName 10.10.9.28 | |
IdentityFile ~/.ssh/mykey | |
User concourse-user |
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
https://[opsmanager.ip]/api/v0/security/root_ca_certificate |