Make it easy to develop against older GitLab CE/EE branches
@winh has been struggling to set up his GDK so that he can develop against the 11.4 branch. A number of things have changed:
- Ruby versions (e.g. 2.4.5 -> 2.5.3)
- unicorn.rb
The Makefile
build appears to fail on a fresh install due to some issue with sed
:
$ gdk reconfigure
(in /Users/winnie/Projects/gdk-11.4-ce)
rm -f \
gitlab/config/gitlab.yml \
gitlab/config/database.yml \
gitlab/config/unicorn.rb \
gitlab/config/puma.rb \
gitlab/config/resque.yml \
gitlab-shell/config.yml \
gitlab-shell/.gitlab_shell_secret \
redis/redis.conf \
.ruby-version \
Procfile \
gitlab-workhorse/config.toml \
gitaly/config.toml \
nginx/conf/nginx.conf \
registry/config.yml \
rm -f \
.gitlab-bundle \
.gitlab-shell-bundle \
.gitlab-yarn \
.gettext \
./support/postgresql-sensible-defaults /Users/winnie/Projects/gdk-11.4-ce/postgresql
WARNING: You're using Ruby version 2.3.3.
WARNING: However we recommend using Ruby version 2.5.3 for this repository.
WARNING: Press <ENTER> to continue installation or <CTRL-C> to abort
sed -e "s|/home/git|/Users/winnie/Projects/gdk-11.4-ce|"\
-e "s|/usr/bin/git|/usr/local/bin/git|"\
gitlab/config/gitlab.yml.example > gitlab/config/gitlab.yml
hostname=localhost port=3000 relative_url_root=\
https=false\
webpack_port=3808\
registry_host=127.0.0.1 registry_external_port=5000\
registry_enabled=false registry_port=5000\
object_store_enabled=false object_store_port=9000\
gitlab_pages_port=3010\
support/edit-gitlab.yml gitlab/config/gitlab.yml
gitlab_shell:
webpack:
# # # # # # # # # # # # # # # # # #
gitaly:
enabled: true
# # # # # # # # # # # # # # # # # #
gitaly_address: unix:/Users/winnie/Projects/gdk-11.4-ce/gitlab/tmp/sockets/private/gitaly.socket # TCP connections are supported too (e.g. tcp://host:port)
# # # # # # # # # # # # # # # # # #
gitaly:
client_path: /Users/winnie/Projects/gdk-11.4-ce/gitaly/bin
registry:
# # # # # # # # # # # # # # # # # #
artifacts:
enabled: true
# # # # # # # # # # # # # # # # # #
lfs:
enabled: true
object_store:
enabled: false
remote_directory: lfs-objects # Bucket name
connection:
aws_access_key_id: AWS_ACCESS_KEY_ID
aws_secret_access_key: AWS_SECRET_ACCESS_KEY
region: us-east-1
# # # # # # # # # # # # # # # # # #
uploads:
object_store:
enabled: false
remote_directory: uploads # Bucket name
connection:
aws_access_key_id: AWS_ACCESS_KEY_ID
aws_secret_access_key: AWS_SECRET_ACCESS_KEY
region: us-east-1
# # # # # # # # # # # # # # # # # #
?
make: *** [gitlab/config/gitlab.yml] Error 2