https://github.com/simbo/packer-ubuntu
https://github.com/simbo/packer-ubuntu
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/simbo/packer-ubuntu
- Owner: simbo
- Created: 2016-04-30T11:47:41.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-07-16T20:29:56.000Z (almost 10 years ago)
- Last Synced: 2025-01-21T09:09:22.255Z (over 1 year ago)
- Language: Shell
- Homepage:
- Size: 15.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
packer-ubuntu
===============
> Packer template for [simbo/ubuntu](https://atlas.hashicorp.com/simbo/boxes/ubuntu).
---
- [About](#about)
- [Box Info](#box-info)
- [Building locally](#building-locally)
- [Releasing](#releasing)
---
## About
This is a [packer](https://packer.io/) template for the vagrant box
[simbo/ubuntu](https://atlas.hashicorp.com/simbo/boxes/ubuntu).
### Box Info
Usage: `vagrant init simbo/ubuntu`
Available providers: `virtualbox` (~ 431 MB)
Current version: **Ubuntu *“Xenial Xerus”* 16.04 LTS Server amd64**
Using english locales by default and supporting german locales. Set up with
german keyboard config, german apt-sources and using Europe/Berlin as default
timezone.
Default vagrant config with vagrant insecure key and passwordless sudo.
Installed software:
- **git** (via ppa:git-core/ppa)
- **zsh** as default shell with **oh-my-zsh**
- **node.js** v6.3.0 (via **nvm**) with **npm** v3.10.5
- **VirtualBox Guest Additions** v5.0.20
- **openssh-server**
- **build-essential**
- **dkms**
- **nfs-common**
- **curl**
- **vim**
- **nano**
- **mc**
- **htop**
- **iotop**
- **iftop**
- **tree**
## Building locally
Requirements:
[packer](https://packer.io/),
[vagrant](https://www.vagrantup.com/),
[VirtualBox](https://www.virtualbox.org/)
Temporarily remove the `atlas` post-processor section from the template to
avoid publishing when building and testing locally. (Still waiting for a cli
flag to [disable a post-processor](https://github.com/mitchellh/packer/issues/2679)…)
You can place a distribution image for installation at `iso/ubuntu.iso`.
``` sh
# inpect template properties
packer inspect ubuntu.json
# validate template
packer validate ubuntu.json
# build template
packer build [-force] [-debug] ubuntu.json
# test vagrant box
vagrant box add build/ubuntu.box
vagrant init
vagrant up
# remove/cleanup vagrant test
vagrant halt
vagrant destroy
vagrant box remove
rm -rf .vagrant Vagrantfile
# remove built and temporary files
rm -rf build output-* packer_cache
```
## Releasing
The master branch of this repo is automatically tested by travis-ci using packer
validation test. Tagged commits are pushed to atlas where successful builds are
published.