Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kirill Smelkov
slapos
Commits
509818df
Commit
509818df
authored
Nov 04, 2015
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
1cd49f99
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
46 additions
and
50 deletions
+46
-50
software/gitlab/instance-gitlab.cfg.in
software/gitlab/instance-gitlab.cfg.in
+35
-42
software/gitlab/template/database.yml.in
software/gitlab/template/database.yml.in
+1
-1
software/gitlab/template/gitlab.yml.in
software/gitlab/template/gitlab.yml.in
+1
-1
software/gitlab/template/nginx-gitlab-http.conf.in
software/gitlab/template/nginx-gitlab-http.conf.in
+1
-1
software/gitlab/template/nginx.conf.in
software/gitlab/template/nginx.conf.in
+1
-1
software/gitlab/template/rack_attack.rb.in
software/gitlab/template/rack_attack.rb.in
+1
-1
software/gitlab/template/resque.yml.in
software/gitlab/template/resque.yml.in
+2
-1
software/gitlab/template/smtp_settings.rb.in
software/gitlab/template/smtp_settings.rb.in
+1
-1
software/gitlab/template/unicorn.rb.in
software/gitlab/template/unicorn.rb.in
+3
-1
No files found.
software/gitlab/instance-gitlab.cfg.in
View file @
509818df
# GitLab instance
# NOTE instance/software layout is inspired by gitlab omnibus
# TODO last updated for gitlab-omnibus vXXXX
# TODO all services are interconnected via unix sockets: write why / more
[buildout]
extends = {{ gitlab_parameters_cfg }}
parts =
...
...
@@ -8,14 +9,19 @@ parts =
# promise TODO
publish-instance-info
gitlab-rails
gitlab-rake
gitlab-unicorn
gitlab-sidekiq
# gitlab-<prog>
# ? unicorn_rails, mailroom, ri
{% set gitlab_progv = 'rails rake unicorn sidekiq' .split() %}
{% for prog in gitlab_progv %}
gitlab-{{ prog }}
{% endfor %}
gitlab-root-shadow
# service-gitlab-workhorse
# service-gitlab-unicorn
# service-gitlab-sidekiq
service-nginx
service-postgresql
service-redis
...
...
@@ -91,7 +97,6 @@ promise = ${:etc}/promise
# gitlab: etc/ log/ ...
# TODO var/run/ (for *.pid .lock)
# XXX do we need gitlab/ subdir for all that? (services are already separated into different slappartX)
[gitlab]
recipe = slapos.cookbook:mkdirectory
etc = ${directory:etc}/gitlab
...
...
@@ -121,6 +126,11 @@ extensions = jinja2.ext.do
mode = 0640
import-list =
rawfile macrolib.cfg.in {{ macrolib_cfg_in }}
context =
raw autogenerated # This file was autogenerated. (DO NOT EDIT - changes will be lost)
${:context-extra}
# TODO move common context parameters here (= common)
...
...
@@ -131,14 +141,14 @@ rendered= ${gitlab:etc}/${:_buildout_section_name_}
[database.yml]
<= gitlab-etc-template
template= {{ database_yml_in }}
context =
context
-extra
=
section gitlab_backend gitlab-backend
section pgsql service-postgresql
[gitlab.yml]
<= gitlab-etc-template
template= {{ gitlab_yml_in }}
context =
context
-extra
=
section gitlab gitlab
section gitlab_backend gitlab-backend
section instance_parameter instance-parameter
...
...
@@ -146,19 +156,19 @@ context =
[resque.yml]
<= gitlab-etc-template
template= {{ resque_yml_in }}
context =
context
-extra
=
section redis service-redis
[smtp_settings.rb]
<= gitlab-etc-template
template= {{ smtp_settings_rb_in }}
context =
context
-extra
=
section instance_parameter instance-parameter
[rack_attack.rb]
<= gitlab-etc-template
template = {{ rack_attack_rb_in }}
context =
context
-extra
=
section instance_parameter instance-parameter
...
...
@@ -169,7 +179,7 @@ rendered= ${nginx:etc}/${:_buildout_section_name_}
[nginx.conf]
<= nginx-etc-template
template= {{ nginx_conf_in }}
context =
context
-extra
=
section instance_parameter instance-parameter
section gitlab_backend gitlab-backend
section directory directory
...
...
@@ -179,7 +189,7 @@ context =
[nginx-gitlab-http.conf]
<= nginx-etc-template
template= {{ nginx_gitlab_http_conf_in }}
context =
context
-extra
=
section instance_parameter instance-parameter
section gitlab_backend gitlab-backend
section nginx nginx
...
...
@@ -189,10 +199,7 @@ context =
# 3. bin/
# gitlab-rails
# gitlab-rake
# gitlab-unicorn
# gitlab-sidekiq
# gitlab-<prog>
[gitlab-bin]
recipe = slapos.cookbook:wrapper
wrapper-path = ${directory:bin}/${:_buildout_section_name_}
...
...
@@ -204,38 +211,18 @@ environment =
# XXX here vvv ?
SIDEKIQ_MEMORY_KILLER_MAX_RSS = 1000000
[gitlab-rails]
<= gitlab-bin
# NOTE sys.argv[1:] implicityly appended
command-line =
{{ bundler_4gitlab }} exec sh -c
'cd ${gitlab-root-shadow:location} && rails "$@"' rails
[gitlab-rake]
<= gitlab-bin
# NOTE sys.argv[1:] implicityly appended
command-line =
{{ bundler_4gitlab }} exec sh -c
'cd ${gitlab-root-shadow:location} && rake "$@"' rake
[gitlab-unicorn]
<= gitlab-bin
# NOTE sys.argv[1:] implicityly appended
command-line =
{{ bundler_4gitlab }} exec sh -c
'cd ${gitlab-root-shadow:location} &&
unicorn "$@"' unicorn
'cd ${gitlab-root-shadow:location} &&
${:prog} "$@"' ${:prog}
[gitlab-sidekiq]
{% for prog in gitlab_progv %}
[gitlab-{{ prog }}]
<= gitlab-bin
# NOTE sys.argv[1:] implicityly appended
command-line =
{{ bundler_4gitlab }} exec sh -c
'cd ${gitlab-root-shadow:location} && sidekiq "$@"' sidekiq
prog = {{ prog }}
{% endfor %}
# # TODO -> service/
# [gitlab-unicorn]
# <= gitlab-bin
# Gitlab/Rails operation is tighted that config/ lives inside code, which goes
...
...
@@ -370,6 +357,12 @@ ipv6 = ::1
port = 0
########################
# gitlab-workhorse #
########################
# TODO
######################
# Nginx frontend #
######################
...
...
software/gitlab/template/database.yml.in
View file @
509818df
# @autogenerated XXX
{{ autogenerated }}
# see:
# https://gitlab.com/gitlab-org/gitlab-ce/blob/master/config/database.yml.postgresql
# https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/files/gitlab-cookbooks/gitlab/templates/default/database.yml.erb
...
...
software/gitlab/template/gitlab.yml.in
View file @
509818df
# @autogenerated XXX
{{ autogenerated }}
# see:
# https://gitlab.com/gitlab-org/gitlab-ce/blob/master/config/gitlab.yml.example
# https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/files/gitlab-cookbooks/gitlab/templates/default/gitlab.yml.erb
...
...
software/gitlab/template/nginx-gitlab-http.conf.in
View file @
509818df
# @autogenerated XXX
{{ autogenerated }}
# see:
# https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/files/gitlab-cookbooks/gitlab/templates/default/nginx-gitlab-http.conf.erb
# (last updated for omnibus-gitlab 8.1.0+rc1.ce.0-24-g3021ed9)
...
...
software/gitlab/template/nginx.conf.in
View file @
509818df
# @autogenerated XXX
{{ autogenerated }}
# see:
# https://gitlab.com/gitlab-org/gitlab-ce/blob/master/lib/support/nginx/gitlab-ssl
# https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/files/gitlab-cookbooks/gitlab/templates/default/nginx.conf.erb
...
...
software/gitlab/template/rack_attack.rb.in
View file @
509818df
# @autogenerated
{{ autogenerated }}
# see:
# https://gitlab.com/gitlab-org/gitlab-ce/blob/master/config/initializers/rack_attack.rb.example
# https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/files/gitlab-cookbooks/gitlab/templates/default/rack_attack.rb.erb
...
...
software/gitlab/template/resque.yml.in
View file @
509818df
# @autogenerated XXX
{{ autogenerated }}
# see:
# https://gitlab.com/gitlab-org/gitlab-ce/blob/master/config/resque.yml.example
# https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/files/gitlab-cookbooks/gitlab/templates/default/resque.yml.erb
# (last udpdated for 8.1.0+rc1.ce.0-77-ge349060)
production: unix://{{ redis.unixsocket }}
software/gitlab/template/smtp_settings.rb.in
View file @
509818df
# @autogenerated
{{ autogenerated }}
# see:
# https://gitlab.com/gitlab-org/gitlab-ce/blob/master/config/initializers/smtp_settings.rb.sample
# https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/files/gitlab-cookbooks/gitlab/templates/default/smtp_settings.rb.erb
...
...
software/gitlab/template/unicorn.rb.in
View file @
509818df
# @autogenerated XXX
{{ autogenerated }}
# see:
# https://gitlab.com/gitlab-org/gitlab-ce/blob/master/config/unicorn.rb.example
# https://gitlab.com/gitlab-org/gitlab-ce/blob/master/config/unicorn.rb.example.development
# https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/files/gitlab-cookbooks/gitlab/templates/default/unicorn.rb.erb
# (last updated for omnibus-gitlab 8.1.0+rc1.ce.0-24-g3021ed9 XXX check)
# XXX import cfg
# What ports/sockets to listen on, and what options for them.
listen "{XXX:unicorn-host:port}", :tcp_nopush => ${instance-parameters:configuration.unicorn_tcp_nopush}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment