Skip to content
This repository has been archived by the owner on Nov 6, 2021. It is now read-only.

Commit

Permalink
fixed issue #5; introduced ChefDK as a way to install Berkshelf local…
Browse files Browse the repository at this point in the history
…ly (avoiding ruby and bundler gem); README updated

Former-commit-id: a205322
Former-commit-id: 7b0b285
  • Loading branch information
maoo committed Aug 1, 2014
1 parent d496306 commit 87d11c4
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 29 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ Features
Installation
---
* Make sure that
* [ChefDK](http://downloads.getchef.com/chef-dk) is installed
* Ruby is installed (I'm currently running on v1.9.3, test with ```ruby -v```)
* If you run on OSX, install XCode (version 5 or higher)
* Checkout this project ```git clone -b alfresco-boxes-<last_tag> https://github.com/maoo/alfresco-boxes.gitub alfresco-boxes```
Expand Down
3 changes: 0 additions & 3 deletions common/Gemfile

This file was deleted.

7 changes: 1 addition & 6 deletions common/create-vendor-cookbooks.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
#!/bin/bash

rm -Rf vendor-cookbooks *.lock

# Run berkshelf
# use the following for Berkshelf 2 or earliear
# bundle exec berks install --path vendor-cookbooks
bundle exec berks vendor vendor-cookbooks
berks vendor vendor-cookbooks
6 changes: 6 additions & 0 deletions common/install-vagrant-plugins.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash

# Install Vagrant Plugins
vagrant plugin install vagrant-omnibus
vagrant plugin install vagrant-vbguest
vagrant plugin install vagrant-hosts
11 changes: 0 additions & 11 deletions common/install.sh

This file was deleted.

4 changes: 2 additions & 2 deletions common/scripts/install-ruby.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#!/bin/bash
. /tmp/common.sh
. /home/vagrant/common.sh

# kernel source is needed for vbox additions
if [ -f /etc/redhat-release ] ; then
$yum install ruby
elif [ -f /etc/debian_version ] ; then
$apt remove libruby1.8 ruby1.8 ruby1.8-dev rubygems1.8
$apt install ruby
fi
fi
4 changes: 0 additions & 4 deletions common/scripts/static-ip.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
#!/bin/bash
STATIC_IP=$1
GW_IP=$2
NETMASK=$3

echo 'auto eth1' >> /etc/network/interfaces
echo 'iface eth1 inet static' >> /etc/network/interfaces
echo 'address '$STATIC_IP >> /etc/network/interfaces
Expand Down
2 changes: 1 addition & 1 deletion common/scripts/vbox-additions.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
. /tmp/common.sh
. /home/vagrant/common.sh
set -x
if [ ! -e /home/vagrant/.vbox_version ] ; then
exit 0
Expand Down
4 changes: 2 additions & 2 deletions packer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ You can optionally use your Maven encryped password and set your Maven Master pa
}
```

If you don't have credentials to artifacts.alfresco.com you can test it using the Community edition: change [alfresco-allinone.json](https://github.com/maoo/alfresco-boxes/tree/master/packer/precise-alf421.json#L73) ```version``` attribute from ```4.2.1``` to ```4.2.f```
If you don't have credentials to artifacts.alfresco.com you can test it using the Community edition: change [alfresco-allinone.json](https://github.com/maoo/alfresco-boxes/tree/master/packer/precise-alf421.json#L73) ```version``` attribute to ```5.0.a```

To generate the box:
```
cd alfresco-boxes/packer/vbox-precise-421
cd alfresco-boxes/packer
packer build -only virtualbox-iso precise-alf421.json
```
This will create a output-virtualbox-iso/<box-name>.ovf and output-virtualbox-iso/<box-name>.vdmk, ready to be imported into VirtualBox.
Expand Down

0 comments on commit 87d11c4

Please sign in to comment.