This file contains 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
package nfstest; | |
import com.sun.xfile.XFile; | |
/** | |
* Using YANFS | |
* | |
*/ | |
public class Main { |
This file contains 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
compilation: | |
cloud_properties: | |
name: random | |
network: cf1 | |
reuse_compilation_vms: true | |
workers: 6 | |
director_uuid: cf8dc1fc-9c42-4ffc-96f1-fbad983a6ce6 | |
jobs: | |
- default_networks: | |
- name: cf1 |
This file contains 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
@RequestMapping(value = BASE_PATH + "/{instanceId}", method = RequestMethod.GET) | |
public ResponseEntity<?> getServiceInstance( | |
@PathVariable("instanceId") String instanceId) { | |
logger.debug("GET: " + BASE_PATH + "/{instanceId}" | |
+ ", getServiceInstance(), serviceInstanceId = " + instanceId); | |
ServiceInstance instance = service.getServiceInstance(instanceId); | |
if (null == instance) { |
This file contains 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
➜ 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 | |
This file contains 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
#install CF CLI (https://console.run.pivotal.io/tools) | |
$ git clone https://github.com/krujos/investigator | |
$ cd investigator | |
$ cf login -a https://api.run.pivotal.io -u <email> -o hd-testdrive -s development | |
$ cf push investigator-<your name> --random-route -m 128M | |
#So for josh k, the command is "cf push investigator-josh --random-route -m 128M" | |
$ curl <whatever url push dumped out>/env | |
# So for josh k it was "curl investigator-jdk-compurgatorial-tormentor.cfapps.io" |
This file contains 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
[ | |
{ | |
"protocol": "all", | |
"destination": "10.0.1.0/24" | |
} | |
] |
This file contains 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
➜ tmp cat deploy.sh $ | |
#!/bin/sh | |
cf create-service cleardb spark cities-db | |
cf push cities-service -p cities-service.jar --random-route --no-start | |
cf bind-service cities-service cities-db | |
cf push cities-ui -p cities-ui.jar --random-route --no-start | |
url=`cf app cities-service | grep urls: | sed -e 's/urls: //'` | |
cf cups cities-ws -p '{"tag": "cities", "uri": "http://'$url'"}' |
This file contains 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
logging: | |
level: | |
org.springframework: ${SPRING_LOG_LEVEL:INFO} |
This file contains 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
Sep 24 13:42:15 10.0.16.39 vcap.warden: [job=dea-partition-e3dfdcc7ccb6e4168349 index=0] {"timestamp":1443127335.9021058,"message":"spawn (took 0.002655)","log_level":"debug","source":"Warden::Container::Linux","data":{"handle":"190ggs8pmt1","request":{"handle":"190ggs8pmt1","script":"umask 077\nexport VCAP_APPLICATION=\\{\\\"limits\\\":\\{\\\"mem\\\":1024,\\\"disk\\\":1024,\\\"fds\\\":16384\\},\\\"application_version\\\":\\\"6dc7d87c-5f97-48d4-abef-f46e00f7c577\\\",\\\"application_name\\\":\\\"hello-php\\\",\\\"application_uris\\\":\\[\\\"hello-php.apps.pcf.jkruckcloud.com\\\"\\],\\\"version\\\":\\\"6dc7d87c-5f97-48d4-abef-f46e00f7c577\\\",\\\"name\\\":\\\"hello-php\\\",\\\"space_name\\\":\\\"development\\\",\\\"space_id\\\":\\\"f72a8962-6aa3-406f-9559-c45383fe7a88\\\",\\\"uris\\\":\\[\\\"hello-php.apps.pcf.jkruckcloud.com\\\"\\],\\\"users\\\":null,\\\"application_id\\\":\\\"e1318894-c803-49bf-aba5-3a1ca3496259\\\",\\\"instance_id\\\":\\\"a05c84b5a39742129a5c9ebf7c5dcb33\\\",\\\"instance_index\\\":0,\\\"ho |
This file contains 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
require 'yaml' | |
y = YAML.load_file './cf-deployment.yml' | |
puts 'name, instances, vm_type, disk, ram, vcpu' | |
y['jobs'].each do |job| | |
rp_name = job['resource_pool'] | |
cloud_props = nil | |
y['resource_pools'].each do |rp| | |
if rp['name'] == rp_name |