Giter Club home page Giter Club logo

packer_docker-base's Introduction

Overview

This repository contains configurations for using Packer to build machine images that define a base Docker image, including AMIs (for AWS) and VirtualBox-based Vagrant boxes.

Boxes provisioned with these images will have the Docker engine running and ready to go as well as some base utilities and configurations that we find useful in all our environments.

This project attempts to create equivalent images across providers by starting from similar base images and applying the same provisioning steps using Ansible. This approach allows us to switch between AWS and Vagrant with little overhead and push common elements of Ansible-based deploys into the initial image to save time during deployment.

Source AMI

We are using Ubuntu Trusty 14.04 cloud images as our source AMI. To update to a newer version go to http://cloud-images.ubuntu.com/query/trusty/server/released.current.txt and find the 64-bit (amd64), ebs-ssd, hvm image in the us-west-2 region.

A shortcut to find the right AMI:

curl -s http://cloud-images.ubuntu.com/query/xenial/server/released.current.txt |grep ebs-ssd |grep amd64 |grep hvm |grep us-west-2 |cut -f8 -d$'\t'

Source ISO (for Vagrant)

Check http://releases.ubuntu.com for the latest 14.04 release and checksum.

EBS vs Instance-store

We no longer support instance-store images as they are a pain. Use EBS.

Release Process

Once your changes are merged to master Atlas will trigger a build automatically.

Artifacts

Once Atlas is done building you can find the latest images here:

For an AMI, you can find it's id by looking at the metadata in Atlas.

Subtrees

This repo is using git subtrees to pull in dependencies. Why not submodules? Well, they're horrible for one. Subtrees are much simpler, you don't need to run any extra commands, just clone as usual and everything is there.

chef/bento subtree

The vagrant image is heavily based on Chef's excellent work on their bento packer definitions. So much so that we use their scripts directly from our definitions.

To update the bento subtree:

git subtree pull --prefix bento https://github.com/chef/bento.git 2.2.2 --squash

Only use bento release tags when updating bento.

packer_docker-base's People

Contributors

srikalyan avatar vincer avatar smb158 avatar stephen-kwong avatar

Watchers

 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.