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
b129c1a7
Commit
b129c1a7
authored
Jun 09, 2015
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Plain Diff
X on gitlab
parents
2eee45d9
1621a655
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
168 additions
and
0 deletions
+168
-0
software/gitlab/.gitignore
software/gitlab/.gitignore
+9
-0
software/gitlab/buildout.cfg
software/gitlab/buildout.cfg
+144
-0
software/gitlab/ktest/ktest.py
software/gitlab/ktest/ktest.py
+5
-0
software/gitlab/ktest/setup.py
software/gitlab/ktest/setup.py
+10
-0
No files found.
software/gitlab/.gitignore
0 → 100644
View file @
b129c1a7
/parts/
/eggs/
/develop-eggs/
/bin/
/.mr.developer.cfg
/.installed.cfg
.*.swp
*.egg-info/
software/gitlab/buildout.cfg
0 → 100644
View file @
b129c1a7
[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
software/gitlab/ktest/ktest.py
0 → 100644
View file @
b129c1a7
import
pytz
def
xxx
():
print
'xxx'
print
'pytz:'
,
pytz
.
__file__
software/gitlab/ktest/setup.py
0 → 100644
View file @
b129c1a7
from
setuptools
import
setup
setup
(
name
=
'ktest'
,
install_requires
=
[
'pytz'
],
entry_points
=
{
'console_scripts'
:
[
'ktestxxx = ktest:xxx'
,
]
},
)
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