Skip to content
Snippets Groups Projects
Commit ff065ec8 authored by Jacob Vosmaer's avatar Jacob Vosmaer
Browse files

Add bundles and configuration

parent f07dbbd6
No related branches found
No related tags found
No related merge requests found
gitlab_repo = https://gitlab.com/gitlab-org/gitlab-ce.git
gitlab_shell_repo = https://gitlab.com/gitlab-org/gitlab-shell.git
gitlab_development_root = $(shell pwd)
 
all: gitlab/.git gitlab-shell/.git
all: clone bundle config
clone: gitlab/.git gitlab-shell/.git
config: gitlab-shell/config.yml gitlab/config/gitlab.yml gitlab/config/database.yml
bundle: gitlab-shell/.bundle gitlab/.bundle
 
gitlab/.git:
git clone ${gitlab_repo} gitlab
 
gitlab-shell/.git:
git clone ${gitlab_shell_repo} gitlab-shell
gitlab/.bundle:
cd gitlab && bundle install --without mysql
gitlab-shell/.bundle:
cd gitlab-shell && bundle install --without mysql
gitlab/config/gitlab.yml:
sed "s|/home/git|${gitlab_development_root}|" gitlab/config/gitlab.yml.example > gitlab/config/gitlab.yml
gitlab-shell/config.yml:
sed "s|/home/git|${gitlab_development_root}|" gitlab-shell/config.yml.example > gitlab-shell/config.yml
gitlab/config/database.yml:
sed -e '/username:/d' -e '/password:/d' gitlab/config/database.yml.postgresql > gitlab/config/database.yml
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment