Commit b129c1a7 authored by Kirill Smelkov's avatar Kirill Smelkov

X on gitlab

parents 2eee45d9 1621a655
/parts/
/eggs/
/develop-eggs/
/bin/
/.mr.developer.cfg
/.installed.cfg
.*.swp
*.egg-info/
[buildout]
extends =
slapos/stack/slapos.cfg
slapos/component/ruby/buildout.cfg
slapos/component/postgresql/buildout.cfg
slapos/component/cmake/buildout.cfg
slapos/component/icu/buildout.cfg
slapos/component/pkgconfig/buildout.cfg
parts =
python2.7
ruby2.1
git
postgresql
cmake
icu
pkgconfig
ktestbin
# TODO becomes autodependency
bundler-4gitlab
gitlab-shell/vendor
gitlab/vendor/bundle
# gems
#extends = https://lab.nexedi.cn/kirr/slapos/raw/master/software/helloworld/software.cfg
#extends = /home/kirr/src/wendelin/slapos/slapos/software/helloworld/software.cfg
[ktest]
recipe = zc.recipe.egg:develop
egg = ktest
setup = ktest/
[ktestbin]
recipe = zc.recipe.egg:scripts
eggs = ${ktest:egg}
[gems]
recipe = rubygemsrecipe
ruby-executable = ${ruby2.1:location}/bin/ruby
# XXX vvv does not work
# location= ${buildout:gems-directory}
gems = fluentd fluent-plugin-wendelin
# bundler, that we'll use to
# - install gems for gitlab
# - run gitlan services / jobs (via `bundle exec ...`)
#
# TODO say how this bundler/gitlab differ from usual slapos installation
[bundler-4gitlab]
recipe = rubygemsrecipe
ruby-executable = ${ruby2.1:location}/bin/ruby
gems = bundler
# bin installed here
bundle = ${buildout:bin-directory}/bundle
# install together with dependencies of gitlab, which we cannot specify using
# --with-... gem option
# ( reason: rubygemsrecipe hardcodes PATH inside generated bin/* and it is
# impossible to adjust it later )
#
# Rugged needs: cmake, pkgconfig
environment =
PATH = ${cmake:location}/bin:${pkgconfig:location}/bin:%(PATH)s
# gitlab & gitlab shell checked out as git repositories pinned to exact commit
[gitlab-repository]
recipe = slapos.recipe.build:gitclone
repository = https://gitlab.com/gitlab-org/gitlab-ce.git
revision = v7.11.2-0-gdac18e7728013a77410e926a1e64225703754a2d
location = ${buildout:parts-directory}/gitlab
git-executable = ${git:location}/bin/git
[gitlab-shell-repository]
recipe = slapos.recipe.build:gitclone
repository = https://gitlab.com/gitlab-org/gitlab-shell.git
# FIXME pin gitlab-shell version properly (wrt gitlab)
revision = v2.6.3-0-g4d30c0c
location = ${buildout:parts-directory}/gitlab-shell
git-executable = ${git:location}/bin/git
# build needed-by-gitlab gems via bundler
[gitlab/vendor/bundle]
recipe = slapos.recipe.cmmi
path = ${gitlab-repository:location}
bundle = ${bundler-4gitlab:bundle}
configure-command = cd ${:path} &&
${:bundle} config --local build.charlock_holmes --with-icu-dir=${icu:location} &&
${:bundle} config --local build.pg --with-pg-config=${postgresql:location}/bin/pg_config
make-binary =
make-targets= cd ${:path} &&
${:bundle} install --deployment --without development test mysql kerberos
# # propagate location
# location = ${gitlab-repository:location}
# build needed-by-gitlab-shell gems via bundler
# ( there is not vendor/ dir in gitlab-shell, so to avoid having buildout error
# on mkdir vendor/bundle, this part name is just /vendor )
[gitlab-shell/vendor]
recipe = slapos.recipe.cmmi
path = ${gitlab-shell-repository:location}
bundle = ${bundler-4gitlab:bundle}
configure-command = true
make-binary =
make-targets= cd ${:path} &&
${:bundle} install --deployment --without development test
# # propagate location
# location = ${gitlab-shell-repository:location}/vendor/bundle
# [buildout]
# gems-directory = gemsAAA # XXX = good idea?
[versions]
rubygemsrecipe = 0.2.1
plone.recipe.command = 1.1
import pytz
def xxx():
print 'xxx'
print 'pytz:', pytz.__file__
from setuptools import setup
setup(
name = 'ktest',
install_requires = ['pytz'],
entry_points = {'console_scripts': [
'ktestxxx = ktest:xxx',
]
},
)
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