# Online Trials Image
Environment cookbook for [Online Trials](https://www.alfresco.com/products/one/trial/online) instances, based on [Image Basic](https://github.com/Alfresco/chalf-img-basic)

[Graph of cookbooks dependencies](http://berksgraph.tolleiv.de/grph?1453652111924#2016-01-24-80dc0fd2c4de9518617494173492da48a14bd292.js)

## Run locally (using Virtualbox)
```
export MVN_CHEF_REPO_USERNAME="..."
export MVN_CHEF_REPO_PASSWORD="..."
vagrant up
```
You can then access:
- http://192.168.33.61/alfresco
- http://192.168.33.61/share

Alternatively, you can use kitchen (better for testing Chef code):
```
kitchen converge
```

## Create AMI
```
curl -L --no-sessionid https://github.com/Alfresco/alfresco-spk/raw/vagrant-packer-plugin/pkg/vagrant-packer-plugin-0.5.0.gem > ~/.vagrant.d/vagrant-packer-plugin-0.5.0.gem
vagrant plugin install ~/.vagrant.d/vagrant-packer-plugin-0.5.0.gem

export AWS_ACCESS_KEY_ID="..."
export AWS_SECRET_ACCESS_KEY="..."
export MVN_CHEF_REPO_USERNAME="..."
export MVN_CHEF_REPO_PASSWORD="..."

vagrant packer-build
```

# Project Release

This project is released on [Nexus]() via [Bamboo]()
