Skip to content

Inspecting blobstore cc resources and cc packages(webdav)

Renee Chu edited this page May 23, 2019 · 3 revisions

dora app includes both source code and vendored packages

z dora
tree
.
├── Gemfile
├── dora.rb
[...]
├── scripts
│   ├── README.md
│   ├── clean\ up\ map\ script
[...]
│   └── scale_dora
├── spec
│   ├── curl_spec.rb
│   ├── instances_spec.rb
[...]
├── stress
├── stress_testers.rb
└── vendor
    └── cache
        ├── json-2.1.0.gem
        ├── rack-2.0.6.gem
	        [...]
bosh ssh singleton-blobstore
cd /var/vcap/store/shared/cc-resources/app_bits_cache

cc-resources

  • cached files
  • mostly
bosh ssh singleton-blobstore
cd /var/vcap/store/shared/cc-resources/app_bits_cache

ls 
12  15  1c  69  8b  b1  ba

 find . type f
 ./69/62/6962a1ca12fd2fd71d7940932ef57559991feabb
./b1/52/b15267e1f94e69238a00a6f1bd48fb7683c03a78
./15/d8/15d8209c5c420a141e38763b153b41e5de2535ba
./8b/9e/8b9e81a2a6ff57f97bec1f65940c61cc6b6d81be

./8b/9e/8b9e81a2a6ff57f97bec1f65940c61cc6b6d81be
> POSIX tar archive

tar -xvf ./8b/9e/8b9e81a2a6ff57f97bec1f65940c61cc6b6d81be
metadata.gz
data.tar.gz
checksums.yaml.gz

gunzip data.tar.gz
data.tar

tar -xvf data.tar
README.md
> "JSON implementation for Ruby"
install.rb
java/src/json/ext/ByteListTranscoder.java
java/src/json/ext/Generator.java
[...]

cc-packages

  • compiled / bundled apps
  • contains source code AND vendored packages
cd /var/vcap/store/shared/cc-packages

find . -type f
./9a/e6/9ae6806e-743e-429b-8ea0-09b3e4a08f02
./40/37/40374e35-b53d-47a3-8973-d279919c681d # 2 tar'd packages, one for each cf push

file ./9a/e6/9ae6806e-743e-429b-8ea0-09b3e4a08f02
./9a/e6/9ae6806e-743e-429b-8ea0-09b3e4a08f02: Zip archive data, at least v2.0 to extract

unzip -t ./9a/e6/9ae6806e-743e-429b-8ea0-09b3e4a08f02
Archive:  ./9a/e6/9ae6806e-743e-429b-8ea0-09b3e4a08f02
    testing: .rspec                   OK
    testing: Gemfile                  OK
    testing: dora.rb                  OK
    [...]
    testing: vendor/cache/typhoeus-1.3.1.gem   OK
    testing: vendor/cache/json-2.1.0.gem   OK
    [...]
Clone this wiki locally