Commit 2630230a authored by Kirill Smelkov's avatar Kirill Smelkov

X software.cfg cleanup

parent 4ce88314
# TODO nginx instance # TODO nginx instance
# XXX is it a good idea to split nginx into separate instance?
...@@ -10,54 +10,33 @@ extends = ...@@ -10,54 +10,33 @@ extends =
../../component/nodejs/buildout.cfg ../../component/nodejs/buildout.cfg
../../component/nginx/buildout.cfg ../../component/nginx/buildout.cfg
parts = parts =
python2.7 python2.7
ruby2.1 ruby2.1
git git
# TODO pg-version ?
postgresql postgresql
cmake cmake
icu icu
pkgconfig pkgconfig
nginx-output
# TODO becomes autodependency
nodejs
ktestbin
# TODO becomes autodependency
# bundler-4gitlab
gitlab-shell/vendor gitlab-shell/vendor
gitlab/vendor/bundle gitlab/vendor/bundle
database.yml.in
gems
# nginx
nginx-output
nginx.conf.in
# for instance
instance.cfg instance.cfg
# instance-gitlab.cfg
# for instance
slapos-cookbook-develop slapos-cookbook-develop
slapos-cookbook slapos-cookbook
eggs eggs
#extends = https://lab.nexedi.com/kirr/slapos/raw/master/software/helloworld/software.cfg
# eggs for instance.cfg
[eggs]
recipe = zc.recipe.egg
eggs = plone.recipe.command
ktestbin
# XXX ktest is still here to show how to rework bin/ .py generation in helloworld/
# TODO remove ktest
[ktest] [ktest]
recipe = zc.recipe.egg:develop recipe = zc.recipe.egg:develop
egg = ktest egg = ktest
...@@ -68,24 +47,16 @@ recipe = zc.recipe.egg:scripts ...@@ -68,24 +47,16 @@ recipe = zc.recipe.egg:scripts
eggs = ${ktest:egg} eggs = ${ktest:egg}
############################
# Software compilation #
############################
[rubygemsrecipe] [rubygemsrecipe]
# rubygemsrecipe with fixed url and pinned rubygems version # rubygemsrecipe with fixed url and this way pinned rubygems version
recipe = rubygemsrecipe recipe = rubygemsrecipe
url = https://rubygems.org/rubygems/rubygems-2.4.8.zip url = https://rubygems.org/rubygems/rubygems-2.4.8.zip
[gems]
<= rubygemsrecipe
ruby-executable = ${ruby2.1:location}/bin/ruby
# XXX vvv does not work
# location= ${buildout:gems-directory}
#gems = fluentd fluent-plugin-wendelin
gems = fluentd
# bundler, that we'll use to # bundler, that we'll use to
# - install gems for gitlab # - install gems for gitlab
# - run gitlab services / jobs (via `bundle exec ...`) # - run gitlab services / jobs (via `bundle exec ...`)
...@@ -95,8 +66,7 @@ gems = fluentd ...@@ -95,8 +66,7 @@ gems = fluentd
<= rubygemsrecipe <= rubygemsrecipe
ruby-location = ${ruby2.1:location} ruby-location = ${ruby2.1:location}
ruby-executable = ${:ruby-location}/bin/ruby ruby-executable = ${:ruby-location}/bin/ruby
# TODO pin bundler version gems = bundler==1.10.6
gems = bundler
# bin installed here # bin installed here
bundle = ${buildout:bin-directory}/bundle bundle = ${buildout:bin-directory}/bundle
...@@ -117,8 +87,6 @@ environment = ...@@ -117,8 +87,6 @@ environment =
# gitlab & gitlab shell checked out as git repositories pinned to exact commit # gitlab & gitlab shell checked out as git repositories pinned to exact commit
[gitlab-repository] [gitlab-repository]
recipe = slapos.recipe.build:gitclone recipe = slapos.recipe.build:gitclone
...@@ -168,13 +136,21 @@ make-targets= cd ${:path} && ...@@ -168,13 +136,21 @@ make-targets= cd ${:path} &&
###############################
# Trampoline for instance #
###############################
# eggs for instance.cfg
[eggs]
recipe = zc.recipe.egg
eggs = plone.recipe.command
# TODO move recipe/url/output to common
[instance.cfg] [instance.cfg]
recipe = slapos.recipe.template recipe = slapos.recipe.template
url = ${:_profile_base_location_}/instance.cfg.in url = ${:_profile_base_location_}/instance.cfg.in
output = ${buildout:directory}/instance.cfg output = ${buildout:directory}/instance.cfg
# TODO md5 # md5sum = TODO
# macro: download a file named as section name # macro: download a file named as section name
...@@ -193,15 +169,13 @@ destination = ${buildout:directory}/${:_buildout_section_name_} ...@@ -193,15 +169,13 @@ destination = ${buildout:directory}/${:_buildout_section_name_}
url = ${:_profile_base_location_}/template/${:_buildout_section_name_} url = ${:_profile_base_location_}/template/${:_buildout_section_name_}
[instance-gitlab.cfg.in] [instance-gitlab.cfg.in]
<= download-file <= download-file
# TODO md5 # md5sum = TODO
# XXX is it a good idea to split nginx into separate instance?
[instance-nginx.cfg.in] [instance-nginx.cfg.in]
<= download-file <= download-file
# TODO md5 # md5sum = TODO
[database.yml.in] [database.yml.in]
...@@ -220,16 +194,18 @@ url = ${:_profile_base_location_}/template/${:_buildout_section_name_} ...@@ -220,16 +194,18 @@ url = ${:_profile_base_location_}/template/${:_buildout_section_name_}
<= download-template <= download-template
# md5sum = TODO # md5sum = TODO
[unicorn.rb.in]
<= download-template
# md5sum = TODO
[nginx.conf.in] [nginx.conf.in]
<= download-template <= download-template
# TODO md5 # md5sum = TODO
[nginx-gitlab-http.conf.in]
<= download-template
# md5sum = TODO
# [buildout]
# gems-directory = gemsAAA # XXX = good idea?
[versions] [versions]
rubygemsrecipe = 0.2.2 rubygemsrecipe = 0.2.2
......
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