Commit 1621a655 authored by Kirill Smelkov's avatar Kirill Smelkov

Gems build ok

parent 1f9956e6
...@@ -67,13 +67,15 @@ gems = bundler ...@@ -67,13 +67,15 @@ gems = bundler
# bin installed here # bin installed here
bundle = ${buildout:bin-directory}/bundle bundle = ${buildout:bin-directory}/bundle
# # install together with all dependencies of gitlab # install together with dependencies of gitlab, which we cannot specify using
# # ( reason: rubygemsrecipe hardcodes PATH inside generated bin/* and it is # --with-... gem option
# # impossible to adjust it later ) # ( reason: rubygemsrecipe hardcodes PATH inside generated bin/* and it is
#environment = # impossible to adjust it later )
# PATH = ${postgresql:location}/bin:${cmake:location}/bin:${pkgconfig:location}/bin:%(PATH)s #
# CPPFLAGS= -I${postgresql:location}/include -I${icu:location}/include # Rugged needs: cmake, pkgconfig
# LDFLAGS = -L${postgresql:location}/lib -Wl,-rpath=${postgresql:location}/lib -L${icu:location}/lib -Wl,-rpath=${icu:location}/lib environment =
PATH = ${cmake:location}/bin:${pkgconfig:location}/bin:%(PATH)s
...@@ -82,7 +84,7 @@ bundle = ${buildout:bin-directory}/bundle ...@@ -82,7 +84,7 @@ bundle = ${buildout:bin-directory}/bundle
[gitlab-repository] [gitlab-repository]
recipe = slapos.recipe.build:gitclone recipe = slapos.recipe.build:gitclone
repository = https://gitlab.com/gitlab-org/gitlab-ce.git repository = https://gitlab.com/gitlab-org/gitlab-ce.git
revision = v7.11.2-0-gdac18e7728013a77410e926a1e64225703754a2d revision = v7.11.2-0-gdac18e7728013a77410e926a1e64225703754a2d
location = ${buildout:parts-directory}/gitlab location = ${buildout:parts-directory}/gitlab
git-executable = ${git:location}/bin/git git-executable = ${git:location}/bin/git
...@@ -96,59 +98,40 @@ git-executable = ${git:location}/bin/git ...@@ -96,59 +98,40 @@ git-executable = ${git:location}/bin/git
# ? gmp # build needed-by-gitlab gems via bundler
# ssl
# icu (charlock_holmes)
# ffi (ffi)
# libpq (pg)
# libssh2 (rugged)
# libgpg-error (rugged) ?
# # krb5 (ominauth-kerberos -> timfel-krb5-auth)
# [gitlab-build-env]
# PATH = ${postgresql:location}/bin:%(PATH)s
# CPPFLAGS= -I${postgresql:location}/include
# LDFLAGS = -L${postgresql:location}/lib -Wl,-rpath=${postgresql:location}/lib
# ??? still true ? -> FIXME installed(gitlab) is registered as parts/gitlab-shell (not parts/gitlab-shell/vendor/bundle)
[gitlab/vendor/bundle] [gitlab/vendor/bundle]
recipe = slapos.recipe.cmmi recipe = slapos.recipe.cmmi
path = ${gitlab-repository:location} path = ${gitlab-repository:location}
#bundle = cd ${:path} && ${bundler-4gitlab:bundle}
bundle = ${bundler-4gitlab:bundle} bundle = ${bundler-4gitlab:bundle}
configure-command = true 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-binary =
make-targets= cd ${:path} && make-targets= cd ${:path} &&
${:bundle} config --local build.charlock_holmes --with-icu-dir=${icu:location} && ${:bundle} install --deployment --without development test mysql kerberos
${:bundle} install --deployment --without mysql kerberos development test
# # propagate location # # propagate location
# location = ${gitlab-repository:location} # location = ${gitlab-repository:location}
# environment-section = gitlab-build-env
# 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] [gitlab-shell/vendor]
#recipe = plone.recipe.command
#command = cd ${:path} && ${bundler-4gitlab:bundle} install --deployment
recipe = slapos.recipe.cmmi recipe = slapos.recipe.cmmi
# TODO --without ...
path = ${gitlab-shell-repository:location} path = ${gitlab-shell-repository:location}
bundle = cd ${:path} && ${bundler-4gitlab:bundle} bundle = ${bundler-4gitlab:bundle}
#configure-command = ${:bundle} config --local build.pg -- --with-pg-config=${postgresql:location}/bin_pg_config
configure-command = true configure-command = true
make-binary = make-binary =
make-targets= echo PATH: $PATH && ${:bundle} install --deployment make-targets= cd ${:path} &&
${:bundle} install --deployment --without development test
#--without mysql development test
# propagate location
# XXX ok?
#location = ${gitlab-shell-repository:location}/vendor/bundle
# environment-section = gitlab-build-env # # propagate location
# location = ${gitlab-shell-repository:location}/vendor/bundle
......
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