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
2630230a
Commit
2630230a
authored
Oct 21, 2015
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
X software.cfg cleanup
parent
4ce88314
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
55 deletions
+32
-55
software/gitlab/instance-nginx.cfg.in
software/gitlab/instance-nginx.cfg.in
+1
-0
software/gitlab/software.cfg
software/gitlab/software.cfg
+31
-55
No files found.
software/gitlab/instance-nginx.cfg.in
View file @
2630230a
# TODO nginx instance
# TODO nginx instance
# XXX is it a good idea to split nginx into separate instance?
software/gitlab/software.cfg
View file @
2630230a
...
@@ -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
...
...
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