Uploaded from github, added FreeBSD VMs support
This commit is contained in:
13
vm_example_scripts/gitlab_ce.sh
Executable file
13
vm_example_scripts/gitlab_ce.sh
Executable file
@ -0,0 +1,13 @@
|
||||
#!/bin/sh
|
||||
#SOURCE: https://about.gitlab.com/install/#debian
|
||||
export DEBIAN_FRONTEND=noninteractive
|
||||
NET_DEVICE='enp1s0'
|
||||
GITLAB_URL=$(ip -o -4 addr list ${NET_DEVICE} | awk '{print $4}' | cut -d/ -f1)
|
||||
#Base dependencies
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y curl openssh-server ca-certificates perl
|
||||
#OPTIONAL: postfix
|
||||
#sudo apt-get install -y postfix
|
||||
#Add gitlab repo
|
||||
curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.deb.sh | sudo bash
|
||||
sudo EXTERNAL_URL="${GITLAB_URL}" apt-get install gitlab-ee
|
||||
Reference in New Issue
Block a user