Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save skynode/10b79f2ef541c5db0ac16fbda95fce1c to your computer and use it in GitHub Desktop.
Save skynode/10b79f2ef541c5db0ac16fbda95fce1c to your computer and use it in GitHub Desktop.

See


Setup environment

Base

I am using Cmder, WSL (with creators update), with ZSH shell, https://gist.github.com/MadLittleMods/0e38f03774fb16e8d698175e505f1f3e#cmder

GDK dependencies

See https://gitlab.com/gitlab-org/gitlab-development-kit/blob/master/doc/prepare.md

Ruby Stuff

  • Install rvm, https://rvm.io/rvm/install
    • curl -sSL https://get.rvm.io | bash -s stable --ruby=2.3.4
    • Make sure this was added to .zshrc
      # Add RVM to PATH for scripting. Make sure this is the last PATH variable change.
      export PATH="$PATH:$HOME/.rvm/bin"
      [[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"
      
    • Reload shell, source ~/.zshrc
  • gem install bundler

Node stuff

Other prerequisites

Run through the Ubuntu isntructions here, https://gitlab.com/gitlab-org/gitlab-development-kit/blob/master/doc/prepare.md#ubuntu

Start the PostgreSQL database

sudo service postgresql start

Set up GDK

See https://gitlab.com/gitlab-org/gitlab-development-kit/blob/master/doc/set-up-gdk.md


On your host Windows machine, clone the repos

git clone git@gitlab.com:gitlab-org/gitlab-development-kit.git gdk
cd gdk
git clone git@gitlab.com:gitlab-org/gitlab-ce.git gitlab

Then inside WSL

gdk install

This may result in the following.

This GitLab Development Kit root directory is not known to the "gdk"
command. To mark it as trusted run:

gdk trust /mnt/c/Users/some-user/Documents/GitLab/gdk
gdk trust /mnt/c/Users/some-user/Documents/GitLab/gdk
gdk reconfigure

FAQ

Unable to start redis via Unix socket

Running into following

redis: dialing "unix", "/mnt/c/Users/MLM/Documents/GitLab/gdk/redis/redis.socket"
# Opening Unix socket: bind: Operation not permitted

See https://gitlab.slack.com/archives/C0EAJMVHB/p1493014512940697?thread_ts=1492586091.761964&cid=C0EAJMVHB

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment