Gitlab ubuntu 16

by dooby
8 deployments · 2 still active · last rev. 5 months ago

Compatible with: Ubuntu 16.04 LTS
						#!/bin/bash
# <UDF name="hostname" Label="Host Name for VM" example="gitlab"/>
# <UDF name="FQDN" Label="Fully Qualified Domain Name" example="gitlab.example.com" />
# <UDF name="URL" Label="Full URL for new gitlab site" example="http://gitlab.example.com" />

system_update 
system_set_hostname "$HOSTNAME"
system_add_host_entry "$(system_primary_ip)" "$FQDN"

# Set directives to allow for silent postfix install, this will create an "Internet Site" for postfix
debconf-set-selections <<< "postfix postfix/mailname string $FQDN"
debconf-set-selections <<< "postfix postfix/main_mailer_type string 'Internet Site'"

sudo apt-get install curl openssh-server ca-certificates postfix

curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.deb.sh | sudo bash
sudo apt-get install gitlab-ce

sudo gitlab-ctl reconfigure