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

Too fast for proper commit messages

parent ccdf6041
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -3,3 +3,7 @@ gitlab-shell/
gitlab-satellites/
repositories/
gitlab/
Procfile
postgresql/data
postgresql/.s.*
redis/*.conf
source 'https://rubygems.org'
gem 'foreman'
GEM
remote: https://rubygems.org/
specs:
dotenv (0.11.1)
dotenv-deployment (~> 0.0.2)
dotenv-deployment (0.0.2)
foreman (0.74.0)
dotenv (~> 0.11.1)
thor (~> 0.19.1)
thor (0.19.1)
PLATFORMS
ruby
DEPENDENCIES
foreman
Loading
Loading
@@ -2,13 +2,18 @@ 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: clone bundle config
all: clone bundle config support
 
clone: gitlab/.git gitlab-shell/.git
 
config: gitlab-shell/config.yml gitlab/config/gitlab.yml gitlab/config/database.yml gitlab/config/unicorn.rb
config: gitlab-shell/config.yml gitlab/config/gitlab.yml gitlab/config/database.yml gitlab/config/unicorn.rb gitlab/config/resque.yml
 
bundle: gitlab-shell-bundle gitlab-bundle
bundle install
support: Procfile redis postgresql
redis: redis/redis.conf
 
gitlab/.git:
git clone ${gitlab_repo} gitlab
Loading
Loading
@@ -29,7 +34,23 @@ 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
sed "s|/home/git|${gitlab_development_root}|" database.yml.example > gitlab/config/database.yml
 
gitlab/config/unicorn.rb:
sed "s|/home/git|${gitlab_development_root}|" gitlab/config/unicorn.rb.example > gitlab/config/unicorn.rb
redis: redis/redis.conf
redis/redis.conf:
sed "s|/home/git|${gitlab_development_root}|" $@.example > $@
gitlab/config/resque.yml:
sed "s|/home/git|${gitlab_development_root}|" redis/resque.yml.example > $@
postgresql: postgresql/data/PG_VERSION
postgresql/data/PG_VERSION:
initdb -E utf-8 postgresql/data
Procfile:
sed "s|/home/git|${gitlab_development_root}|g" $@.example > $@
redis: redis-server /home/git/redis/redis.conf
postgresql: postgres -D /home/git/postgresql/data -k /home/git/postgresql -h ''
development:
adapter: postgresql
encoding: unicode
database: gitlabhq_development
pool: 5
host: /home/git/postgresql
test: &test
adapter: postgresql
encoding: unicode
database: gitlabhq_test
pool: 5
host: /home/git/postgresql
port 0
unixsocket /home/git/redis/redis.socket
development: unix:/home/git/redis/redis.socket
test: unix:/home/git/redis/redis.socket
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