Skip to content

Commit

Permalink
(ref #4) added centos templates and some minor fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
everpeace committed Oct 1, 2014
1 parent 11602f7 commit 8637f36
Showing 1 changed file with 16 additions and 10 deletions.
26 changes: 16 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
# Packer Templates for Mesos
__Bake your own mesos pre-installed images!!__ This contains packer templates for building mesos pre-installed images based on Ubuntu 14.04 LTS 64 bit. This also outputs vagrant boxes.
__Bake your own mesos pre-installed images!!__ This contains packer templates for building mesos pre-installed images. This also outputs vagrant boxes.

* `ubuntu-14.04.json`: building virtualbox image(`.ova`) and vagrant box file(`.box`) for virtualbox provider.
* `ubuntu-14.04-amis.json`: building AMIs and vagrant box(`.box`) for aws provider.
* Ubuntu 14.04 LTS(amd64)
* `ubuntu-14.04_amd64.json`: building virtualbox image(`.ova`) and vagrant box file(`.box`) for virtualbox provider.
* `ubuntu-14.04_amd64-amis.json`: building AMIs and vagrant box(`.box`) for aws provider.
* CentOS 6.5(x86_64)
* `centos-6.5_x86_64.json`: building virtualbox image(`.ova`) and vagrant box file(`.box`) for virtualbox provider.
* `centos-6.4_x86_64-amis.json`: building AMIs and vagrant box(`.box`) for aws provider.

## What's inside.
Both templates will bake a virtual machine image and vagrant box containing:
Expand All @@ -19,9 +23,11 @@ Both templates will bake a virtual machine image and vagrant box containing:
* [Configuring Chronos](https://github.com/mesosphere/chronos#configuring-chronos)

## Hosted Images
__NOTE: Currently, ubuntu based images are only available.__

Do you want to save time to bake these boxes by yourself!? Yes! Images baked by these templates are uploaded on the web.

Build version consits of two parts, the first 3 numbers stand for mesos_version, the last number stands for build number. For example `0.20.0.1`,this means mesos version is `0.20.0` and build version is `1`.
Build version consists of two parts, the first 3 numbers stand for mesos_version, the last number stands for build number. For example `0.20.0.1`,this means mesos version is `0.20.0` and build version is `1`.

### Latest Build Version: 0.20.1.1
* Mesos 0.20.1
Expand Down Expand Up @@ -59,7 +65,7 @@ $ berks vendor vendor-cookbooks

### Virtualbox
```
$ packer build virtualbox.json
$ packer build ubuntu-14.04_amd64.json
```

This build is done automatically (but it will take about 10 -15 minitutes), which performs bellows in summary:
Expand All @@ -71,8 +77,8 @@ This build is done automatically (but it will take about 10 -15 minitutes), whic

If it went well, you can see

* `build/mesos-0.20.0_ubuntu-14.04_amd64_virtualbox_<build_version>.ova`
* `build/mesos-0.20.0_ubuntu-14.04_amd64_virtualbox_<build_version>.box`
* `build/ubuntu-14.04_amd64_virtualbox/mesos-0.20.0_ubuntu-14.04_amd64_virtualbox_<build_version>.ova`
* `build/ubuntu-14.04_amd64_virtualbox/mesos-0.20.0_ubuntu-14.04_amd64_virtualbox_<build_version>.box`


Then,
Expand All @@ -86,7 +92,7 @@ Then,

### AWS
```
$ packer build -var 'aws_access_key=<your aws_access_key>' -var 'aws_secret_key=<your aws_secret_access_key>' amis.json
$ packer build -var 'aws_access_key=<your aws_access_key>' -var 'aws_secret_key=<your aws_secret_access_key>' ubuntu-14.04_amd64-amis.json
```

This build is done automatically (but it will take about 10 -15 minitutes), which performs bellows in summary:
Expand All @@ -99,12 +105,12 @@ This build is done automatically (but it will take about 10 -15 minitutes), whic
* _you can control this `"ami_regions"` clause in the template_
* make them public.

If it went well, you can see `build/mesos-0.20.0_ubuntu-14.04_aws_<build_version>.box`.
If it went well, you can see `build/ubuntu-14.04_amd64_aws/mesos-0.20.0_ubuntu-14.04_amd64_aws_<build_version>.box`.

Then, you can add this box to your vagrant

```
$ vagrant box add -name mesos-0.20.0-aws mesos-0.20.0_ubuntu-14.04_aws_<build_version>.box
$ vagrant box add --name mesos-0.20.0-aws mesos-0.20.0_ubuntu-14.04_aws_<build_version>.box
```

## Old Hosted Images
Expand Down

0 comments on commit 8637f36

Please sign in to comment.