- Do you sometimes want to run performance benchmarks, stress/load tests, or security vulnerability probes against a shared integration environment, or even a production environment?
- Do you worry about polluting these environments, or not leaving any audit trail when things go wrong?
Here are a couple scripts to setup, and later teardown, a cleanroom environment (user, org, space, quota) for doing just these kinds of experiments.
$ ./setup_cleanroom.sh \
~/workspace/deployments-runtime/stubs/cf/cf-stub.yml \
rboshman \
test-ruby-cve-oct-13 \
$(hostname | md5 | head -c 10) # <- hard-to-guess semi-deterministic password
...
You're now free to move about your cleanroom org: 'rboshman-test-ruby-cve-oct-13'.
$ # push apps and stuff
$ ./teardown_cleanroom.sh \
~/workspace/deployments-runtime/stubs/cf/cf-stub.yml \
rboshman \
test-ruby-cve-oct-13 \
$(hostname | md5 | head -c 10)
...
Cleanliness is next to cloudiness.