Commit 6bc49987 authored by Kirill Smelkov's avatar Kirill Smelkov

X root-shadow -> work

parent e568037f
...@@ -19,8 +19,8 @@ parts = ...@@ -19,8 +19,8 @@ parts =
# TODO gitlab-shell - since compiled shell picks up /usr/bin/env ruby ... ? # TODO gitlab-shell - since compiled shell picks up /usr/bin/env ruby ... ?
gitlab-root-shadow gitlab-work
gitlab-shell-root-shadow gitlab-shell-work
service-gitlab-workhorse service-gitlab-workhorse
service-unicorn service-unicorn
...@@ -172,9 +172,9 @@ context-extra = ...@@ -172,9 +172,9 @@ context-extra =
<= gitlab-etc-template <= gitlab-etc-template
template= {{ gitlab_yml_in }} template= {{ gitlab_yml_in }}
context-extra = context-extra =
section gitlab gitlab section gitlab gitlab
section gitlab_shell gitlab-shell section gitlab_shell gitlab-shell
section gitlab_shell_root_shadow gitlab-shell-root-shadow section gitlab_shell_work gitlab-shell-work
import urlparse urlparse import urlparse urlparse
[resque.yml] [resque.yml]
...@@ -197,7 +197,7 @@ template = {{ unicorn_rb_in }} ...@@ -197,7 +197,7 @@ template = {{ unicorn_rb_in }}
context-extra = context-extra =
section unicorn unicorn section unicorn unicorn
section directory directory section directory directory
section gitlab_root_shadow gitlab-root-shadow section gitlab_work gitlab-work
[gitlab-shell-config.yml] [gitlab-shell-config.yml]
...@@ -229,7 +229,7 @@ context-extra = ...@@ -229,7 +229,7 @@ context-extra =
template= {{ nginx_gitlab_http_conf_in }} template= {{ nginx_gitlab_http_conf_in }}
context-extra = context-extra =
section nginx nginx section nginx nginx
section gitlab_root_shadow gitlab-root-shadow section gitlab_work gitlab-work
section gitlab_workhorse gitlab-workhorse section gitlab_workhorse gitlab-workhorse
section unicorn unicorn section unicorn unicorn
...@@ -253,7 +253,7 @@ environment = ...@@ -253,7 +253,7 @@ environment =
# NOTE sys.argv[1:] implicityly appended # NOTE sys.argv[1:] implicityly appended
command-line = command-line =
{{ bundler_4gitlab }} exec sh -c {{ bundler_4gitlab }} exec sh -c
'cd ${gitlab-root-shadow:location} && ${:prog} "$@"' ${:prog} 'cd ${gitlab-work:location} && ${:prog} "$@"' ${:prog}
{% for prog in gitlab_progv %} {% for prog in gitlab_progv %}
[gitlab-{{ prog }}] [gitlab-{{ prog }}]
...@@ -282,11 +282,9 @@ prog = {{ prog }} ...@@ -282,11 +282,9 @@ prog = {{ prog }}
# This way Gitlab/Rails still think they work in 1 code / 1 instance way, # This way Gitlab/Rails still think they work in 1 code / 1 instance way,
# and we can reuse SR. # and we can reuse SR.
# XXX run second time after first error try? (mkdir fails) # XXX run second time after first error try? (mkdir fails)
# XXX naming
# XXX better do such tricks with bind mounting, but that requires user namespaces # XXX better do such tricks with bind mounting, but that requires user namespaces
# TODO root-shadow -> work [work-base]
[root-shadow]
recipe = plone.recipe.command recipe = plone.recipe.command
stop-on-error = yes stop-on-error = yes
location = ${directory:home}/${:_buildout_section_name_} location = ${directory:home}/${:_buildout_section_name_}
...@@ -306,8 +304,8 @@ update-command = ...@@ -306,8 +304,8 @@ update-command =
# NOTE there is no need to link/create .gitlab_shell_secret - we set path to it # NOTE there is no need to link/create .gitlab_shell_secret - we set path to it
# in gitlab & gitlab-shell configs, and gitlab creates it on its first start # in gitlab & gitlab-shell configs, and gitlab creates it on its first start
[gitlab-root-shadow] [gitlab-work]
<= root-shadow <= work-base
software = {{ gitlab_repository_location }} software = {{ gitlab_repository_location }}
tune-command = tune-command =
# secret* tmp/ log/ # secret* tmp/ log/
...@@ -335,8 +333,8 @@ tune-command = ...@@ -335,8 +333,8 @@ tune-command =
# ----//---- for gitlab-shell # ----//---- for gitlab-shell
[gitlab-shell-root-shadow] [gitlab-shell-work]
<= root-shadow <= work-base
software = {{ gitlab_shell_repository_location }} software = {{ gitlab_shell_repository_location }}
tune-command = tune-command =
...@@ -464,7 +462,7 @@ wrapper-path = ${directory:service}/unicorn ...@@ -464,7 +462,7 @@ wrapper-path = ${directory:service}/unicorn
command-line = ${gitlab-unicorn:wrapper-path} command-line = ${gitlab-unicorn:wrapper-path}
-E production -E production
-c ${unicorn.rb:rendered} -c ${unicorn.rb:rendered}
${gitlab-root-shadow:location}/config.ru ${gitlab-work:location}/config.ru
####################################### #######################################
...@@ -491,7 +489,7 @@ wrapper-path = ${directory:service}/sidekiq ...@@ -491,7 +489,7 @@ wrapper-path = ${directory:service}/sidekiq
# XXX -C ? # XXX -C ?
command-line = ${gitlab-sidekiq:wrapper-path} command-line = ${gitlab-sidekiq:wrapper-path}
-e production -e production
-r ${gitlab-root-shadow:location} -r ${gitlab-work:location}
-t ${instance-parameter:configuration.sidekiq_shutdown_timeout} -t ${instance-parameter:configuration.sidekiq_shutdown_timeout}
-L ${sidekiq:log}/sidekiq.log -L ${sidekiq:log}/sidekiq.log
......
...@@ -104,10 +104,10 @@ production: &base ...@@ -104,10 +104,10 @@ production: &base
## GitLab Shell settings ## GitLab Shell settings
gitlab_shell: gitlab_shell:
path: {{ gitlab_shell_root_shadow.location }} path: {{ gitlab_shell_work.location }}
repos_path: {{ gitlab.repositories }} repos_path: {{ gitlab.repositories }}
hooks_path: {{ gitlab_shell_root_shadow.location }}/hooks/ hooks_path: {{ gitlab_shell_work.location }}/hooks/
secret_file: {{ gitlab_shell.secret }} secret_file: {{ gitlab_shell.secret }}
# Git over HTTP is enabled # Git over HTTP is enabled
......
...@@ -39,7 +39,7 @@ server { ...@@ -39,7 +39,7 @@ server {
# XXX fqdn # XXX fqdn
server_name <%= @fqdn %>; server_name <%= @fqdn %>;
server_tokens off; ## Don't show the nginx version number, a security best practice server_tokens off; ## Don't show the nginx version number, a security best practice
root {{ gitlab_root_shadow.location }}/public; root {{ gitlab_work.location }}/public;
## Increase this if you want to upload large attachments ## Increase this if you want to upload large attachments
## Or if you want to accept large git objects over http ## Or if you want to accept large git objects over http
...@@ -177,7 +177,7 @@ server { ...@@ -177,7 +177,7 @@ server {
## See config/application.rb under "Relative url support" for the list of ## See config/application.rb under "Relative url support" for the list of
## other files that need to be changed for relative url support ## other files that need to be changed for relative url support
location ~ ^/(assets)/ { location ~ ^/(assets)/ {
root {{ gitlab_root_shadow.location }}/public; root {{ gitlab_work.location }}/public;
{# TODO reenable after --with-http_gzip_static_module added to nginx {# TODO reenable after --with-http_gzip_static_module added to nginx
gzip_static on; # to serve pre-gzipped version gzip_static on; # to serve pre-gzipped version
#} #}
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
listen "{{ unicorn.socket }}", :backlog => {{ cfg('unicorn_backlog_socket') }} listen "{{ unicorn.socket }}", :backlog => {{ cfg('unicorn_backlog_socket') }}
#listen "127.0.0.1:8888", :tcp_nopush => true #listen "127.0.0.1:8888", :tcp_nopush => true
working_directory '{{ gitlab_root_shadow.location }}' working_directory '{{ gitlab_work.location }}'
# What the timeout for killing busy workers is, in seconds # What the timeout for killing busy workers is, in seconds
timeout {{ cfg('unicorn_worker_timeout') }} timeout {{ cfg('unicorn_worker_timeout') }}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment