1. Eric Dowd
  2. gentoo_bootstrap

Commits

Eric Dowd  committed 10ed1ed

Added new scripts to README.md

  • Participants
  • Parent commits 304fea1
  • Branches master

Comments (0)

Files changed (1)

File README.md

View file
  • Ignore whitespace
 Sets up common needs for 32 and 64 bootstrap scripts and will print out the commands to execute them:
 
 can pass 4 options, in order:
+
 1. region
 2. security group
 3. key pair
 4. private key of key pair
 
 if you do not set these:
+
 * region defaults to `us-east-1`
 * security group defaults to `gentoo-bootstrap` and it will be created if needed
 * key pair defaults to `gentoo-bootstrap_$region` e.g. `gentoo-bootstrap_us-east-1`
 Recommend running screen before running.
 
 Takes 4 options:
+
 1. region 
 2. security group
 3. key pair
 4. keyfile
 
 if you do not set these:
+
 * region defaults to `us-east-1`
 * security group default to `gentoo-bootstrap_64-bit` and will be created if needed
 * key pair defaults to `gentoo-bootstrap_64-bit_$region` e.g. `gentoo-bootstrap_64-bit_us-east-1`
 Recommend running screen before running.
 
 Takes 4 options:
+
 1. region 
 2. security group
 3. key pair
 4. keyfile
 
 if you do not set these:
+
 * region defaults to `us-east-1`
 * security group default to `gentoo-bootstrap_32-bit` and will be created if needed
 * key pair defaults to `gentoo-bootstrap_32-bit_$region` e.g. `gentoo-bootstrap_32-bit_us-east-1`
 
 The .config file for building the kernel.
 
+## make_latest_push.sh
+
+Makes the latest gentoo AMI public.
+
+Takes 3 options:
+
+1. region
+2. architecture
+3. root_device_type
+
+Sample command for making us-east-1 64-bit EBS image public
+
+```bash
+./make_latest_public.sh us-east-1 x86_64 ebs
+```
+
+Sample command for making us-east-1 32-bit EBS image public
+
+```bash
+./make_latest_public.sh us-east-1 i386 ebs
+```
+
+Sample command for making us-east-1 64-bit Instance Store image public
+
+```bash
+./make_latest_public.sh us-east-1 x86_64 instance-store
+```
+
+## copy_ebs_across_region.sh
+
+Copies latest public EBS gentoo image across regions.
+
+Takes 3 options:
+
+1. from_region
+2. architecture
+3. to_region
+
+Sample command for copying 64-bit image from us-east-1 to us-west-2
+
+```bash
+./copy_ebs_across_region.sh us-east-1 x86_64 us-west-2
+```
+
+Sample command for copying 32-bit image from us-east-1 to us-west-2
+
+```bash
+./copy_ebs_across_region.sh us-east-1 i386 us-west-2
+```
+
+# Setup across all regions
+
+Need to setup only once.
+
+```bash
+./setup_build_gentoo.sh us-east-1
+```
+
+Building can be run in parallel to save time.
+
+```bash
+./build_gentoo_64.sh us-east-1 gentoo-bootstrap gentoo-bootstrap_us-east-1 gentoo-bootstrap_us-east-1.pem
+```
+
+```bash
+./build_gentoo_32.sh us-east-1 gentoo-bootstrap gentoo-bootstrap_us-east-1 gentoo-bootstrap_us-east-1.pem
+```
+
+Copy across regions
+
+```bash
+./make_latest_public.sh us-east-1 x86_64 ebs
+./make_latest_public.sh us-east-1 i386 ebs
+
+./copy_ebs_across_region.sh us-east-1 x86_64 us-west-2
+./copy_ebs_across_region.sh us-east-1 i386 us-west-2
+./make_latest_public.sh us-west-2 x86_64 ebs
+./make_latest_public.sh us-west-2 i386 ebs
+
+./copy_ebs_across_region.sh us-east-1 x86_64 us-west-1
+./copy_ebs_across_region.sh us-east-1 i386 us-west-1
+./make_latest_public.sh us-west-1 x86_64 ebs
+./make_latest_public.sh us-west-1 i386 ebs
+
+./copy_ebs_across_region.sh us-east-1 x86_64 eu-west-1
+./copy_ebs_across_region.sh us-east-1 i386 eu-west-1
+./make_latest_public.sh eu-west-1 x86_64 ebs
+./make_latest_public.sh eu-west-1 i386 ebs
+
+./copy_ebs_across_region.sh us-east-1 x86_64 sa-east-1
+./copy_ebs_across_region.sh us-east-1 i386 sa-east-1
+./make_latest_public.sh sa-east-1 x86_64 ebs
+./make_latest_public.sh sa-east-1 i386 ebs
+
+./copy_ebs_across_region.sh us-east-1 x86_64 ap-northeast-1
+./copy_ebs_across_region.sh us-east-1 i386 ap-northeast-1
+./make_latest_public.sh ap-northeast-1 x86_64 ebs
+./make_latest_public.sh ap-northeast-1 i386 ebs
+
+./copy_ebs_across_region.sh us-east-1 x86_64 ap-southeast-1
+./copy_ebs_across_region.sh us-east-1 i386 ap-southeast-1
+./make_latest_public.sh ap-southeast-1 x86_64 ebs
+./make_latest_public.sh ap-southeast-1 i386 ebs
+
+./copy_ebs_across_region.sh us-east-1 x86_64 ap-southeast-2
+./copy_ebs_across_region.sh us-east-1 i386 ap-southeast-2
+./make_latest_public.sh ap-southeast-2 x86_64 ebs
+./make_latest_public.sh ap-southeast-2 i386 ebs
+```