Skip to content

Instantly share code, notes, and snippets.

@MadLittleMods
Last active January 23, 2022 16:35
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save MadLittleMods/defc68bee5f5bf07c05b8c4f25ba416b to your computer and use it in GitHub Desktop.
Save MadLittleMods/defc68bee5f5bf07c05b8c4f25ba416b 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

@skynode
Copy link

skynode commented May 11, 2017

Awesome! Thank you!

@scottge
Copy link

scottge commented Apr 28, 2018

Hello I cannot open the slack URL. Could you post the solution here? I am running into the redis.socket issue too.

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