Skip to content

Interactive Install Script for GitLab 6.1 on Ubuntu 12.04/12.10 #135

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
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
36 changes: 20 additions & 16 deletions install/ubuntu/README.md
Original file line number Diff line number Diff line change
@@ -1,27 +1,31 @@
One script installer for clean ubuntu 12.04 x64
==============
# Interactive Install Script for GitLab 6.1 on Ubuntu 12.04/12.10

Made for GitLab v4.0
#### by doublerebel

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

This script performs a complete installation of Gitlab for ubuntu server 12.04.1 x64:
* packages update
* redis, git, postfix etc
* ruby setup
* git, gitlab users
* gitolite fork
### Usage (run as root):

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

### Notes
Requires `--url` parameter. Default database is `mysql`.

__!IMPORTANT run as root or sudo without prompting password cause script ignore any input.__
Script provides information about current progress. If installation fails, script can be re-run safely.

#### Example

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

#### 1. Run script (replace gitlab.example.com with your domain or ip address)
### More info

curl https://raw.github.com/gitlabhq/gitlab-recipes/master/install/ubuntu/ubuntu_server_1204.sh | sudo domain_var=gitlab.example.com sh
* Prompts to install Python 2 if not found.

#### 2. Reboot machine
* 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 WITH PASSWORD '$password';
CREATE DATABASE gitlabhq_production OWNER git;
Loading