Commit 5cc24000 authored by Kirill Smelkov's avatar Kirill Smelkov

helloworld: Fix build

	2019-01-21 17:56:18 slapos[13553] INFO While:
	2019-01-21 17:56:18 slapos[13553] INFO   Installing.
	2019-01-21 17:56:18 slapos[13553] INFO   Getting section instance-profile.
	2019-01-21 17:56:18 slapos[13553] INFO   Initializing section instance-profile.
	2019-01-21 17:56:18 slapos[13553] INFO   Installing recipe slapos.recipe.template.
	2019-01-21 17:56:18 slapos[13553] INFO   Getting distribution for 'slapos.recipe.template'.
	2019-01-21 17:56:18 slapos[13553] INFO Error: Picked: slapos.recipe.template = 4.3
	2019-01-21 17:56:19 slapos[13553] ERROR Failed to run buildout profile in directory '/srv/slapgrid/slappart7/srv/runner/software/19771f7b751ffc2a88162b15750c6069'

	2019-01-21 18:01:21 slapos[26771] INFO While:
	2019-01-21 18:01:21 slapos[26771] INFO   Installing.
	2019-01-21 18:01:21 slapos[26771] INFO   Getting section helloweb-ruby.
	2019-01-21 18:01:21 slapos[26771] INFO   Initializing section helloweb-ruby.
	2019-01-21 18:01:21 slapos[26771] INFO   Getting option helloweb-ruby:input.
	2019-01-21 18:01:21 slapos[26771] INFO   Getting section helloweb-ruby-bundle.
	2019-01-21 18:01:21 slapos[26771] INFO   Initializing section helloweb-ruby-bundle.
	2019-01-21 18:01:21 slapos[26771] INFO   Getting option helloweb-ruby-bundle:make-targets.
	2019-01-21 18:01:21 slapos[26771] INFO   Getting section bundler.
	2019-01-21 18:01:21 slapos[26771] INFO   Initializing section bundler.
	2019-01-21 18:01:21 slapos[26771] INFO   Installing recipe rubygemsrecipe.
	2019-01-21 18:01:21 slapos[26771] INFO   Getting distribution for 'rubygemsrecipe'.
	2019-01-21 18:01:21 slapos[26771] INFO Error: Picked: rubygemsrecipe = 0.2.2+slapos001

Ruby stuff was failing to download at all. However after updating
versions to the ones used in software/gitlab/ it still fails to build
with the following error:

	2019-01-21 18:20:28 slapos[19170] INFO Installing bundler.
	2019-01-21 18:20:28 slapos[19170] INFO bundler: installing ruby gem "bundler==1.11.2"
	2019-01-21 18:20:28 slapos[19170] INFO ERROR:  While executing gem ... (Gem::Exception)
	2019-01-21 18:20:28 slapos[19170] INFO     Unable to require openssl, install OpenSSL and rebuild ruby (preferred) or use non-HTTPS sources
	2019-01-21 18:20:28 slapos[19170] INFO bundler:
	2019-01-21 18:20:28 slapos[19170] INFO bundler: Command failed with exit code 1: ['/srv/slapgrid/slappart7/srv/runner/software/19771f7b751ffc2a88162b15750c6069/parts/ruby2.1/bin/rub
	y', u'/srv/slapgrid/slappart7/srv/runner/software/19771f7b751ffc2a88162b15750c6069/parts/bundler/bin/gem', u'install', u'--no-rdoc', u'--no-ri', u'--bindir=/srv/slapgrid/slappart7/s
	rv/runner/software/19771f7b751ffc2a88162b15750c6069/parts/bundler/bin', u'bundler', u'--version=1.11.2', u'--']

Mark helloweb-ruby as broken, but let others part of helloweb/helloword
story to live.

Based on patch by @romain.
parent c6733656
......@@ -47,10 +47,10 @@ scripts = helloweb=helloweb-python
[bundler]
# rubygemsrecipe with fixed url and this way pinned rubygems version
recipe = rubygemsrecipe
url = https://rubygems.org/rubygems/rubygems-2.4.8.zip
url = https://rubygems.org/rubygems/rubygems-2.5.2.zip
ruby-location = ${ruby2.1:location}
ruby-executable = ${:ruby-location}/bin/ruby
gems = bundler==1.10.6
gems = bundler==1.11.2
# bin installed here
bundle = ${buildout:bin-directory}/bundle
......@@ -84,6 +84,14 @@ input = inline:
exec ${bundler:bundle} exec sh -c 'helloweb.rb "$@"' ${:_buildout_section_name_} "$@"
# FIXME ruby part not currently build.
[helloweb-ruby]
input = inline:
#!/bin/sh
echo "FIXME helloweb-ruby is broken"
exit 1
# -*- go -*-
[helloweb-go]
recipe = slapos.recipe.cmmi
......
......@@ -38,3 +38,8 @@ mode = 0644
extensions = jinja2.ext.do
context =
section buildout buildout
# Pin versions of eggs used that are not already pinned by stack/slapos.cfg
[versions]
slapos.recipe.template = 4.3
rubygemsrecipe = 0.2.2+slapos001
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