README.md in bosh-stemcell-1.2361.0 vs README.md in bosh-stemcell-1.2366.0
- old
+ new
@@ -20,22 +20,21 @@
From a fresh copy of the bosh repo:
export BOSH_AWS_ACCESS_KEY_ID=YOUR-AWS-ACCESS-KEY
export BOSH_AWS_SECRET_ACCESS_KEY=YOUR-AWS-SECRET-KEY
cd bosh-stemcell
- vagrant up local
+ vagrant up remote --provider=aws
#### Build the stemcell from inside the VM
-Substitute *\<current_build\>* with the current build number, which can be found by looking at
-[bosh artifacts](http://bosh_artifacts.cfapps.io)
+Substitute *\<current_build\>* with the current build number, which can be found by looking at [bosh artifacts](http://bosh_artifacts.cfapps.io).
+The final two arguments are the S3 bucket and key for the OS image to use, which can be found by reading the OS\_IMAGES document in this project.
vagrant ssh -c '
cd /bosh
- bundle install --local
- CANDIDATE_BUILD_NUMBER=<current_build> http_proxy=http://localhost:3142/ bundle exec rake stemcell:build[vsphere,centos,ruby]
- ' local
+ CANDIDATE_BUILD_NUMBER=<current_build> http_proxy=http://localhost:3142/ bundle exec rake stemcell:build[vsphere,centos,ruby,ci4-bosh-os-images-centos,aa1590ae6eb031840b59485ad292d4ae313c0327338867263c07a73878fb4a49]
+ ' remote
# Run the stemcell locally with Fusion
VMware Fusion is the preferred local virtual environment. You can [purchase it here](http://www.vmware.com/products/fusion/). Once you have Fusion installed:
@@ -104,6 +103,16 @@
ifconfig eth0 10.0.2.30/24 up
route add default gw 10.0.2.2 eth0
```
Test the network with `ping 8.8.8.8`
+
+# Build an OS image
+
+A stemcell with a custom OS image can be built using the stemcell-building VM created earlier.
+
+ vagrant ssh -c '
+ cd /bosh
+ bundle exec rake stemcell:build_os_image[centos,/tmp/centos_base_image.tgz]
+ bundle exec rake stemcell:build_with_local_os_image[aws,centos,ruby,/tmp/centos_base_image.tgz]
+ ' remote