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
#!/bin/bash | |
rm -rf /opt/application/PCF-DEV/pcfdev/clones/$(date +"%Y%m%d" --date="+2 days ago").pcfdev-v0.389.0 | |
vboxmanage clonevm pcfdev-v0.389.0 --basefolder /opt/application/PCF-DEV/pcfdev/clones/ --name $(date +"%Y%m%d").pcfdev-v0.389.0 | |
# 1. Take a snapshot | |
vboxmanage snapshot pcfdev-v0.389.0 take $(date +"%Y%m%d").pcfdev-v0.389.0 | |
# 2. Clone the Snapshot | |
vboxmanage clonevm pcfdev-v0.389.0 --snapshot $(date +"%Y%m%d").pcfdev-v0.389.0 --basefolder /opt/application/PCF-DEV/pcfdev/clones/ --name $(date +"%Y%m%d").pcfdev-v0.389.0 |
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
git clone https://github.com/kgshukla/hawqdb-service-broker.git | |
./gradlew -Dhttp.proxyHost=12.34.56.78 -Dhttp.proxyPort=3128 -Dhttps.proxyHost=12.34.56.78 -Dhttps.proxyPort=3129 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
## How to install the Cloud Foundry usage report plugin for the CLI: | |
wget https://storage.googleapis.com/golang/go1.7.4.linux-amd64.tar.gz | |
tar -zxvf go1.7.4.linux-amd64.tar.gz | |
tar -C /usr/local -xzf go1.7.4.linux-amd64.tar.gz | |
export PATH=$PATH:/usr/local/go/bin | |
go get github.com/cloudfoundry/cli | |
mkdir $HOME/work | |
export GOPATH=$HOME/work | |
go get github.com/cloudfoundry/cli | |
go get github.com/krujos/usagereport-plugin |
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
vboxmanage list vms | |
vboxmanage import /opt/application/PCF-BDS/HDB-Sandbox-2.01-vbox.ova | |
VBoxManage modifyvm "HDB-Sandbox-2.01-vbox" --natpf1 delete http | |
VBoxManage modifyvm "HDB-Sandbox-2.01-vbox" --natpf1 "http,tcp,,8888,,80" | |
VBoxManage modifyvm "HDB-Sandbox-2.01-vbox" --natpf1 delete gpdb |
NewerOlder