Giter VIP home page Giter VIP logo

packer-ubuntu-12.04-docker's Introduction

Packer Template for Docker Images

This repository contains a Packer template for building machine images that are Docker-ready on top of Ubuntu 12.04. This involves upgrading the kernel and installing Docker.

Currently this is only setup for Amazon, but it should be trivial to add more platforms to this.

Usage

First, install Packer. Then, clone this repository and cd into it.

Run the following:

$ export AWS_ACCESS_KEY="your aws access key"
$ export AWS_SECRET_KEY="your aws secret key"
$ packer build template.json

At the end of that, you'll have an AMI ready to go for Docker.

packer-ubuntu-12.04-docker's People

Contributors

andrewwatson avatar justone avatar luislavena avatar mitchellh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

packer-ubuntu-12.04-docker's Issues

"scripts/vagrant.sh" fails with amazon-ebs builder

I'm struggling to work out how to bake an AMI using this template.

$ packer build -only amazon-ebs template.json 

==> amazon-ebs: Creating temporary keypair for this instance...
==> amazon-ebs: Creating temporary security group for this instance...
==> amazon-ebs: Authorizing SSH access on the temporary security group...
==> amazon-ebs: Launching a source AWS instance...
==> amazon-ebs: Waiting for instance (i-a62753c5) to become ready...
==> amazon-ebs: Waiting for SSH to become available...
==> amazon-ebs: Connected to SSH!
==> amazon-ebs: Provisioning with shell script: scripts/vagrant.sh
    amazon-ebs: /tmp/script.sh: line 4: /etc/sudoers.d/vagrant: Permission denied
    amazon-ebs: chmod: cannot access `/etc/sudoers.d/vagrant': No such file or directory
    amazon-ebs: usermod: user 'vagrant' does not exist
    amazon-ebs: mkdir: cannot create directory `/home/vagrant/.ssh': No such file or directory
    amazon-ebs: chmod: cannot access `/home/vagrant/.ssh': No such file or directory
    amazon-ebs: /tmp/script.sh: line 13: cd: /home/vagrant/.ssh: No such file or directory
...

The "vagrant.sh" script appears to assume the existence of a "vagrant" user, but I can't see where that user is created, for the AMI builder.

Only for Amazon?

The readme mention this:

Currently this is only setup for Amazon, but it should be trivial to add more platforms to this.

But when i read the configuration it seems it's work for other provisioners

Errors related to virtualbox in validating template

I'm getting this error:

$ packer validate template.json 
Failed to parse template: 2 error(s) occurred:

* provisioner 1: build 'virtualbox' not found for override
* provisioner 2: build 'virtualbox' not found for override

Same behavior when I try to packer build. Any ideas?

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.