Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions install/ubuntu/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Interactive Install Script for GitLab 7-0-stable on Ubuntu 12.04-14.04

#### by doublerebel

https://github.com/doublerebel/gitlab-recipes/blob/master/install/ubuntu/ubuntu_server_1204.sh

### Usage (run as root):

# ./ubuntu_server_1204.sh [--url <yourgitlabdomain.com>] [--db <mysql|postgres>] [--gitlab <version>] [--shell <version>]

Requires `--url` parameter. Default database is `postgres`.

Script provides information about current progress. If installation fails, script can be re-run safely.

#### Example

$ git clone https://github.com/doublerebel/gitlab-recipes.git
$ cd gitlab-recipes/install/ubuntu
$ sudo ./ubuntu_server_1204.sh --url your.gitlabdomain.com

### More info

* Prompts to install Ruby 2.0 from [Brightbox PPA](https://launchpad.net/~brightbox/+archive/ruby-ng-experimental) if not found.

* Prompts for MySQL root password if MySQL is already installed.

* Prompts to install Nginx and site config.

* GitLab and dependency versions are factored out for easy update upon release of new versions.
3 changes: 3 additions & 0 deletions install/ubuntu/gitlab-mysql.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
CREATE USER 'gitlab'@'localhost' IDENTIFIED BY '$password';
CREATE DATABASE IF NOT EXISTS `gitlabhq_production` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`;
GRANT SELECT, LOCK TABLES, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER ON `gitlabhq_production`.* TO 'gitlab'@'localhost';
2 changes: 2 additions & 0 deletions install/ubuntu/gitlab-postgres.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
CREATE USER git PASSWORD '$password' CREATEDB;
CREATE DATABASE gitlabhq_production OWNER git;
Loading