Commit 3f7a76c5 authored by Kirill Smelkov's avatar Kirill Smelkov

X starting instance

parent d44f8919
# GitLab instance
# NOTE instance/software layout is inspired by gitlab omnibus
[buildout]
parts =
directory
# promise TODO
publish-connection-parameters
# std stuff for instance
eggs-directory = ${buildout:eggs-directory}
develop-eggs-directory = ${buildout:develop-eggs-directory}
offline = true
# create gitlab dirs structure
[directory]
recipe = slapos.cookbook:mkdirectory
home = $${buildout:directory}
bin = $${:home}/bin
etc = $${:home}/etc
var = $${:home}/var
log = $${:home}/log
# slapos startup/service/promies scripts live here:
startup = $${:etc}/run
service = $${:etc}/service
promise = $${:etc}/promise
# TODO log: logrotate
# bin/
# gitlab-rails
# gitlab-rake
[gitlab-bin]
recipe = slapos.cookbook:wrapper
wrapper-path = $${directory:bin}
environment =
BUNDLE_GEMFILE = ${gitlab-repository:location}/Gemfile
# HOME = ... (needed ?) better yes
# PATH = ... TODO
RAILS_ENV = production
SIDEKIQ_MEMORY_KILLER_MAX_RSS = 1000000
[gitlab-rails]
<= gitlab-bin
command-line = ${bundler-4gitlab:bundle} exec rails "$@"
[gitlab-rake]
<= gitlab-bin
command-line = ${bundler-4gitlab:bundle} exec rake "$@"
# service/
# unicorn
# sidekiq
# GitLab software-release
[buildout]
extends =
../../stack/slapos.cfg
......@@ -29,6 +30,8 @@ parts =
# gems
instance.cfg
#extends = https://lab.nexedi.cn/kirr/slapos/raw/master/software/helloworld/software.cfg
#extends = /home/kirr/src/wendelin/slapos/slapos/software/helloworld/software.cfg
......@@ -136,6 +139,13 @@ make-targets= cd ${:path} &&
[instance.cfg]
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/instance.cfg.in
output = ${buildout:directory}/instance.cfg
# TODO md5
# [buildout]
# gems-directory = gemsAAA # XXX = good idea?
......
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