@@ -296,19 +296,21 @@ Concourse publishes its artifacts to GCS.
296296#### Create Buckets
297297
298298``` shell
299- gsutil mb -l europe-west4 gs://bosh-aws-light-stemcells
300- gsutil mb -l europe-west4 gs://bosh-aws-light-stemcells-candidate
299+ export gcp_region=" europe-west4"
301300
302- gsutil mb -l europe-west4 gs://bosh-gce-light-stemcell-ci-terraform-state
301+ gsutil mb -l " ${gcp_region} " gs://bosh-aws-light-stemcells
302+ gsutil mb -l " ${gcp_region} " gs://bosh-aws-light-stemcells-candidate
303303
304- gsutil mb -l europe-west4 gs://bosh-gce-light-stemcells
305- gsutil mb -l europe-west4 gs://bosh-gce-light-stemcells-candidate
306- gsutil mb -l europe-west4 gs://bosh-gce-raw-stemcells-new
304+ gsutil mb -l " ${gcp_region} " gs://bosh-gce-light-stemcell-ci-terraform-state
307305
308- gsutil mb -l europe-west4 gs://bosh-core-stemcells
309- gsutil mb -l europe-west4 gs://bosh-core-stemcells-candidate
310- gsutil mb -l europe-west4 gs://bosh-os-images
311- gsutil mb -l europe-west4 gs://bosh-stemcell-triggers
306+ gsutil mb -l " ${gcp_region} " gs://bosh-gce-light-stemcells
307+ gsutil mb -l " ${gcp_region} " gs://bosh-gce-light-stemcells-candidate
308+ gsutil mb -l " ${gcp_region} " gs://bosh-gce-raw-stemcells-new
309+
310+ gsutil mb -l " ${gcp_region} " gs://bosh-core-stemcells
311+ gsutil mb -l " ${gcp_region} " gs://bosh-core-stemcells-candidate
312+ gsutil mb -l " ${gcp_region} " gs://bosh-os-images
313+ gsutil mb -l " ${gcp_region} " gs://bosh-stemcell-triggers
312314```
313315
314316#### Make Buckets Publicly Readable
@@ -343,18 +345,28 @@ gcloud compute firewall-rules update default-allow-internal --source-ranges 10.0
343345
344346#### Create Integration Networks
345347
346- Create the bosh-integration networks for tests and BATs tests. Each stemcell
347- line should get its own subnet corresponding to its ` subnet_int ` .
348+ Create the ` stemcell-builder-integration-${subnet_int} ` networks for tests and BATs tests.
349+ Each stemcell line should get its own subnet corresponding to its ` subnet_id ` equal to the
350+ two digit release year. For example release year 2010 would have ` subnet_id="10" ` .
348351
349- Example:
352+ Example per [ ci/pipelines/vars.yml ] ( ci/pipelines/vars.yml ) :
350353
351- - subnet_id=44
352- - subnet_range=10.100.44.0/24
353- - subnet_name=bosh-integration-44
354+ ``` yaml
355+ ---
356+ stemcell_details :
357+ # ... snip
358+ subnet_int : " 10" # ! use last two digits of release year: ex 2010 -> 10
359+ # ... snip
360+ ```
361+
362+ Would mean creating the following subnet in GCP:
354363
355364``` shell
356365# branch: ubuntu-${short_name}
357- gcloud compute networks subnets create --network default --range 10.100.0.0/24 bosh-integration-0
366+ export subnet_int=" 10"
367+
368+ gcloud compute networks subnets create --network default \
369+ --range " 10.100.${subnet_int} .0/24" " stemcell-builder-integration-${subnet_int} "
358370```
359371
360372### AWS
0 commit comments