GitLab CE

by rick.myers
9 deployments · 2 still active · last rev. 8 days ago

Minimal install of the GitLab Community Edition on Debian with omnibus.

Instructions from https://about.gitlab.com/installation/#debian?version=ce.

GitLab recommends at least 4GB of free memory to run.

Compatible with: Debian 8, Debian 9
						#!/bin/bash
# <UDF name="URL" Label="The hostname at which you want to access your GitLab instance and for sending mail through Postfix" example="gitlab.example.com" />

# Update the system
source <ssinclude StackScriptID="1">
system_update

# Install and configure the necessary dependencies
apt-get install -y curl openssh-server ca-certificates

# Pre-seed the postfix options
debconf-set-selections <<< "postfix postfix/mailname string $URL"
debconf-set-selections <<< "postfix postfix/main_mailer_type string 'Internet Site'"

# Install postfix
apt-get install -y postfix

# Add the GitLab package repository
curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.deb.sh | bash

# Install the GitLab package.
EXTERNAL_URL=http://"$URL" apt-get install gitlab-ce

echo -e "\n\nGitLab is installed! Go to http://\"$URL\" to get configurin'.\n"