@@ -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,26 @@ 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-
349- Example:
350-
351- - subnet_id=44
352- - subnet_range=10.100.44.0/24
353- - subnet_name=bosh-integration-44
348+ Create the ` stemcell-builder-integration-${subnet_id} ` 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" ` .
351+
352+ Example per [ ci/pipelines/vars.yml] ( ci/pipelines/vars.yml ) :
353+ ``` yaml
354+ ---
355+ stemcell_details :
356+ # ... snip
357+ subnet_int : " 10" # ! use last two digits of release year: ex 2010 -> 10
358+ # ... snip
359+ ```
354360
361+ Would mean creating the following subnet in GCP:
355362``` shell
356363# branch: ubuntu-${short_name}
357- gcloud compute networks subnets create --network default --range 10.100.0.0/24 bosh-integration-0
364+ export subnet_id=" 10"
365+
366+ gcloud compute networks subnets create --network default \
367+ --range " 10.100.${subnet_id} .0/24" " stemcell-builder-integration-${subnet_id} "
358368```
359369
360370### AWS
0 commit comments