Code Monkey home page Code Monkey logo

packer-image-scripts's Introduction

Cloudspace DevOps -- Packer

The repo contains Clousdpace's scripts & configs to build client VMs (vagrant, AMIs, VMWare, etc.) with Packer.io. It also conains initial Capistrano deploy setups, a dev environment Vagrantfile, and scrips to configure a new OS X dev machine and setup individual projects.

Configuring a new computer

  1. Run the following script in terminal on your computer: bash <(curl -s https://raw.githubusercontent.com/cloudspace-devops/packer-image-scripts/master/osx-dev-machine-setup.sh)
  2. When prompted, select "Install" to get the command line developer tools. After the install completes, dismiss the dialogue and press [return] in terminal.
  3. Enter your system password when prompted to install Brew
  4. Enter your full name and password for git when prompted.
  5. If prompted, enter your system password to create a /srv folder for development.
  6. If prompted, press enter to use the defaults three times to generate your id_rsa key.

Building Packer Images

  1. Run ./build-all.sh to create all base images
  2. To run an individual script, run: packer build build-name.json
  3. To create a custom project box, copy the closest match into the packer-projects folder, update the base image source, add/create the appropriate shell script(s), and run the build.

Launching AWS Boxes

  1. Login to the EC2 console with your Amazon IAM account: https://console.aws.amazon.com/console/home?region=us-east-1 (If you don't have an Amazon IAM user setup, request one from DevOps.)
  2. Click "EC2"
  3. Click "Launch Instance"
  4. community amis search for ami-c8cf3ba0 select instance size click Next: Configure Instance Details (advanced details if you want to add cloud-init) click Next: Add Storage (configgle your storage) click Next: Tag Instance (name your instance click Next: Configure Security Group) select existing or create a new security group click Review and Launch scroll down and click Launch Choose an existing keypair or make a new one. click Launch Instances scroll down and click View Instances

grab the public ip of your launched container and toss that in the .env file under whatever environment you want

,{ "type": "virtualbox-ovf", "vm_name": "{{user vm_name}}", "source_path": "../builds/{{user base_box}}", "output_directory": "../builds/{{user directory_name}}", "ssh_username": "vagrant", "ssh_password": "vagrant", "ssh_wait_timeout": "20m", "shutdown_command": "sudo shutdown -P now" }

, "../packer-shell-scripts/ec2-api-tools.sh"

        "../packer-shell-scripts/sudoers-nopasswd.sh",
  "../packer-shell-scripts/base.sh",

postfix.sh fixed yeoman.sh fixed

packer-image-scripts's People

Contributors

toddsampson avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.