gdk init fails on CentOS
Even when they follow the instructions, gdk init
fails on CentOS as follows:
/usr/local/rvm/gems/ruby-2.3.6/gems/gitlab-development-kit-0.2.4/bin/gdk:113:in `exit': no implicit conversion from nil to integer (TypeError)
from /usr/local/rvm/gems/ruby-2.3.6/gems/gitlab-development-kit-0.2.4/bin/gdk:113:in `<top (required)>'
from /usr/local/rvm/gems/ruby-2.3.6/bin/gdk:23:in `load'
from /usr/local/rvm/gems/ruby-2.3.6/bin/gdk:23:in `<main>'
from /usr/local/rvm/gems/ruby-2.3.6/bin/ruby_executable_hooks:15:in `eval'
from /usr/local/rvm/gems/ruby-2.3.6/bin/ruby_executable_hooks:15:in `<main>'
Reproducible procedure
- Environment: centos:6.9 Docker image
docker run --rm -it centos:6.9
- Ref: ee3c6d26 (https://gitlab.com/gitlab-org/gitlab-development-kit/blob/ee3c6d26696d015c1cdfe7ec39548130cc716109/doc/prepare.md)
0. RVM and bundler
gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
\curl -sSL https://get.rvm.io | bash -s stable
rvm install 2.3.6
source /etc/profile.d/rvm.sh
gem install bundler
1. CentOS-specific installation
yum install http://yum.postgresql.org/9.5/redhat/rhel-7-x86_64/pgdg-redhat95-9.5-2.noarch.rpm
yum install https://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
yum install postgresql95-server postgresql95-devel libicu-devel cmake gcc-c++ redis ed fontconfig freetype libfreetype.so.6 libfontconfig.so.1 libstdc++.so.6 nodejs npm re2
npm install phantomjs-prebuilt@2.1.12 -g --unsafe-perm
/usr/pgsql-9.5/bin/pg_config
bundle config build.pg --with-pg-config=/usr/pgsql-9.5/bin/pg_config
rvm install 2.3.6
rvm use 2.3.6
usermod -a -G rvm root
2. Set up GDK
gem install gitlab-development-kit
gdk init
Edited by Takuya Noguchi