aws_vagrant.md 1.3 KB
Newer Older
1
### Production installation on Amazon Web Services (AWS) with Vagrant
2 3

### Requirements
4 5 6 7

* [VirtualBox](https://www.virtualbox.org)
* [Vagrant 1.3.x](http://vagrantup.com)

Sytse Sijbrandij's avatar
Sytse Sijbrandij committed
8
Make sure to use Vagrant v1.3.x. Do not install Vagrant via rubygems.org as there exists an old gem which will probably cause errors. Instead, go to [Vagrant download page](http://downloads.vagrantup.com/) and install a version ~> `1.3.0`.
9

10
### Installation
Marin Jankovski's avatar
Marin Jankovski committed
11

12
Create an AWS instance:
Marin Jankovski's avatar
Marin Jankovski committed
13 14

```bash
Marin Jankovski's avatar
Marin Jankovski committed
15 16 17 18 19 20 21 22
gem install berkshelf
vagrant plugin install vagrant-berkshelf
vagrant plugin install vagrant-omnibus
vagrant plugin install vagrant-aws
vagrant box add dummy https://github.com/mitchellh/vagrant-aws/raw/master/dummy.box
git clone https://gitlab.com/gitlab-org/cookbook-gitlab.git ./gitlab
cd ./gitlab/
cp ./example/Vagrantfile_aws ./Vagrantfile
ogom's avatar
ogom committed
23
editor ./Vagrantfile
Marin Jankovski's avatar
Marin Jankovski committed
24 25 26 27
```
Fill in the AWS credentials under the aws section in Vagrantfile and then run:

```bash
ogom's avatar
ogom committed
28 29 30 31
vagrant up --provider=aws
eval $(vagrant ssh-config | awk '/HostName/ {print "HostName=" $2}')
sed -i.bak "s/example.com/$HostName/g" Vagrantfile
sed -i.bak 's/chef.run_list = \[\]/chef.run_list = \["gitlab::default"\]/g' Vagrantfile
Marin Jankovski's avatar
Marin Jankovski committed
32
vagrant provision
Marin Jankovski's avatar
Marin Jankovski committed
33
```
34 35

For more information on how to run the application, the tests and more please see the [Development installation on a virtual machine](doc/development.md).