Now startup the vagrant box, this will initially take a while to install all the required files such as Gitlab CE. Sudo dpkg -i /vagrant/ubuntu-bionic-gitlab-ce_12.9.3-ce.0_b Wget -content-disposition -O /vagrant/ubuntu-bionic-gitlab-ce_12.9.3-ce.0_b Sudo apt-get install -y curl openssh-server ca-certificatesĭebconf-set-selections <<< "postfix postfix/mailname string $HOSTNAME"ĭebconf-set-selections <<< "postfix postfix/main_mailer_type string 'Internet Site'"ĭEBIAN_FRONTEND=noninteractive sudo apt-get install -y postfix # Customize the amount of memory on the VM:Ĭonfig.vm.provision "shell", inline: <<-SHELL # Display the VirtualBox GUI when booting the machine If Vagrant.has_plugin?("vagrant-vbguest")Ĭonfig.vm.network "forwarded_port", guest: 80, host: 8080Ĭonfig.vm.network "forwarded_port", guest: 22, host: 8022Ĭonfig.vm.network "private_network", ip: "192.168.33.44"Ĭonfig.vm.synced_folder ".", "/vagrant", type: "rsync", rsync_exclude: nfigure(VAGRANTFILE_API_VERSION) do |config| mkdir gitlab-localĪnd replace the content with the following - you may need to change the forwarded_port and private_network to your own settings. ruby 2.6.3p62 ( revision 67580) Īt first in the terminal make the directory that will be used for the GitLab CE installation and set it as default, so for this example ' gitlab-local'. You should already have ruby installed so lets check this first. NOTE: Ruby versions 2.0 and above are included by default in macOS releases since at least El Capitan (10.11). Github Desktop (Optional for section 8) - download.Requiredįirst you must make sure all the following are installed. This tutorial has been tested with macOS 10.15 and at the time of writing this tutorial, the latest version of GitLab CE is 12.9.3 and the latest version of Ubuntu is 18.04 (bionic64). In this tutorial you will be able to install GitLab Community Edition locally on your mac using a vagrant box.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |