Skip to content

Instantly share code, notes, and snippets.

@Artistan Artistan/gitlab-dev.md
Last active Oct 22, 2018

Embed
What would you like to do?

install chruby

build current needed ruby

ruby-build 2.3.6 ~/.rubies/2.3.6

install ....

# init the ruby version
chruby ruby-2.3.6

# clone the dev kit
git clone git@gitlab.com:gitlab-org/gitlab-development-kit.git
cd gitlab-development-kit

# dependancies...
chruby ruby-2.3.6
gem pristine --all
brew install git redis postgresql@9.6 libiconv icu4c pkg-config cmake go openssl coreutils re2 graphicsmagick
brew install yarn --without-node
echo 'export PATH="/usr/local/opt/postgresql@9.6/bin:$PATH"' >> ~/.zshrc
echo 'chruby ruby-2.3.6' >> ~/.zshrc
source ~/.zshrc

# start from here, will clean up old crap if you need to start over...
git clean -xdf
rm -rf gitlab-development-kit
rm -rf gitlab
bundle config build.eventmachine --with-cppflags=-I/usr/local/opt/openssl/include
gem install gitlab-development-kit
gdk init
touch .gdk-install-root
gdk install gitlab_repo=https://gitlab.com/MY-FORK/gitlab-ce.git
support/set-gitlab-upstream

run the service

  • Rails 4 - gdk run
  • Rails 5 - gdk run rails5
  • DB - gdk run db
  • app rails 4 - gdk run app
  • app rails 5 - gdk run app rails5

To access GitLab you may now go to http://localhost:3000 in your browser. The development login credentials are root and 5iveL!fe. If you followed the GitLab Enterprise Edition instructions above, you will need to access http://localhost:3001 in your browser.

If you want to work on GitLab CI you will need to install GitLab Runner.

see ./set-up-gdk.md for more details.

vagrant up --provider=virtualbox --provision vagrant ssh

continue with set-up=gdk.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.