Обновление рецепта Redmine (зависимость по версиям) / Update Redmine recipe in VM/DCI

Азер Гарягды добавил(а) 5 года назад
Завершен

export REDMINE_VER=3.3.3


http://www.redmine.org/projects/redmine/wiki/Changelog_3_3

http://www.redmine.org/projects/redmine/wiki/Changelog_3_4


В линейке 3.3 - есть уже более новая версия 3.3.4, в том числе есть линейка 3.4


Стоит проверить и обновить, возможно, убрать зависимость по версии вовсе.

Лучший ответ
фото

Рецепт был успешно обновлен.

Комментарии (5)

фото
1

Уже доступны версии:

3.3.5 / 3.4.3


По идее, достаточно будет скорректировать 12 строчку рецепта:

export REDMINE_VER=3.3.3


+ Возможно, теги тоже (для поддержки новых ОС),

фото
1

Очередное обновление:

3.3.6 / 3.4.4

фото
1

CentOS 7 64 bit


-defaults-file=/root/.my.cnf -N mysql

+ echo 'GRANT ALL PRIVILEGES ON redmine.* TO '\''redmine'\''@'\''localhost'\'';'

+ mysql --defaults-file=/root/.my.cnf -N mysql

+ cat

+ useradd redmine

+ mkdir -p /var/run/redmine

+ chown redmine /var/run/redmine

+ cd /var/www/redmine

+ export RAILS_ENV=production

+ RAILS_ENV=production

+ export REDMINE_LANG=en

+ REDMINE_LANG=en

+ '[' xcentos = xcentos ']'

+ '[' 7 -eq 6 ']'

+ bundle config build.nokogiri --use-system-libraries

+ bundle install --path .gem

Don't run Bundler as root. Bundler can ask for sudo if it is needed, and

installing your bundle as root will break this application for all non-root

users on this machine.

Fetching gem metadata from https://rubygems.org/...........

Fetching version metadata from https://rubygems.org/...

Fetching dependency metadata from https://rubygems.org/..

Resolving dependencies.............................................................................................................................

Installing rake 12.3.1

Installing i18n 0.7.0

Installing json 1.8.6 with native extensions

Installing minitest 5.11.3

Installing thread_safe 0.3.6

Installing tzinfo 1.2.5

Installing activesupport 4.2.7.1

Installing builder 3.2.3

Installing erubis 2.7.0

Installing mini_portile2 2.1.0

Installing nokogiri 1.6.8.1 with native extensions

Installing rails-deprecated_sanitizer 1.0.3

Installing rails-dom-testing 1.0.9

Installing crass 1.0.4

Installing loofah 2.2.2

Installing rails-html-sanitizer 1.0.4

Installing actionview 4.2.7.1

Installing rack 1.6.10

Installing rack-test 0.6.3

Installing actionpack 4.2.7.1

Installing globalid 0.4.1

Installing activejob 4.2.7.1

Installing mini_mime 1.0.0

Installing mail 2.7.0

Installing actionmailer 4.2.7.1

Installing actionpack-action_caching 1.2.0

Installing actionpack-xml_parser 1.0.2

Installing activemodel 4.2.7.1

Installing arel 6.0.4

Installing activerecord 4.2.7.1

Installing public_suffix 3.0.2

Installing addressable 2.5.2

Using bundler 1.10.6

Installing xpath 2.1.0

Installing capybara 2.18.0

Installing ffi 1.9.25 with native extensions

Installing childprocess 0.9.0

Installing coderay 1.1.2

Installing concurrent-ruby 1.0.5

Installing css_parser 1.6.0

Installing docile 1.1.5

Installing htmlentities 4.3.4

Installing thor 0.20.0

Installing railties 4.2.7.1

Installing jquery-rails 3.1.5

Installing metaclass 0.0.4

Installing mime-types-data 3.2016.0521

Installing mime-types 3.1

Installing mimemagic 0.3.2

Installing mocha 1.5.0

Installing multi_json 1.13.1

Installing mysql2 0.3.21 with native extensions


Gem::Ext::BuildError: ERROR: Failed to build gem native extension.


current directory: /var/www/redmine/.gem/ruby/2.3.0/gems/mysql2-0.3.21/ext/mysql2

/opt/rh/rh-ruby23/root/usr/bin/ruby -r ./siteconf20180713-1711-12gexe4.rb extconf.rb

Cannot allocate memory - /opt/rh/rh-ruby23/root/usr/bin/ruby -r ./siteconf20180713-1711-12gexe4.rb extconf.rb 2>&1


Gem files will remain installed in /var/www/redmine/.gem/ruby/2.3.0/gems/mysql2-0.3.21 for inspection.

Results logged to /var/www/redmine/.gem/ruby/2.3.0/extensions/x86_64-linux/2.3.0/mysql2-0.3.21/gem_make.out

An error occurred while installing mysql2 (0.3.21), and Bundler cannot continue.

Make sure that `gem install mysql2 -v '0.3.21'` succeeds before bundling.

+ bundle exec rake db:migrate

/opt/rh/rh-ruby23/root/usr/share/gems/gems/bundler-1.10.6/lib/bundler/resolver.rb:347:in `block in verify_gemfile_dependencies_are_found!': Could not find gem 'rails (= 4.2.7.1) ruby' in any of the gem sources listed in your Gemfile or available on this machine. (Bundler::GemNotFound)

from /opt/rh/rh-ruby23/root/usr/share/gems/gems/bundler-1.10.6/lib/bundler/resolver.rb:325:in `each'

from /opt/rh/rh-ruby23/root/usr/share/gems/gems/bundler-1.10.6/lib/bundler/resolver.rb:325:in `verify_gemfile_dependencies_are_found!'

from /opt/rh/rh-ruby23/root/usr/share/gems/gems/bundler-1.10.6/lib/bundler/resolver.rb:198:in `start'

from /opt/rh/rh-ruby23/root/usr/share/gems/gems/bundler-1.10.6/lib/bundler/resolver.rb:182:in `resolve'

from /opt/rh/rh-ruby23/root/usr/share/gems/gems/bundler-1.10.6/lib/bundler/definition.rb:200:in `resolve'

from /opt/rh/rh-ruby23/root/usr/share/gems/gems/bundler-1.10.6/lib/bundler/definition.rb:140:in `specs'

from /opt/rh/rh-ruby23/root/usr/share/gems/gems/bundler-1.10.6/lib/bundler/definition.rb:185:in `specs_for'

from /opt/rh/rh-ruby23/root/usr/share/gems/gems/bundler-1.10.6/lib/bundler/definition.rb:174:in `requested_specs'

from /opt/rh/rh-ruby23/root/usr/share/gems/gems/bundler-1.10.6/lib/bundler/environment.rb:18:in `requested_specs'

from /opt/rh/rh-ruby23/root/usr/share/gems/gems/bundler-1.10.6/lib/bundler/runtime.rb:13:in `setup'

from /opt/rh/rh-ruby23/root/usr/share/gems/gems/bundler-1.10.6/lib/bundler.rb:127:in `setup'

from /opt/rh/rh-ruby23/root/usr/share/gems/gems/bundler-1.10.6/lib/bundler/setup.rb:18:in `<top (required)>'

from /opt/rh/rh-ruby23/root/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require'

from /opt/rh/rh-ruby23/root/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require'

+ exit 1

+ killjobs

++ jobs -p


В виртуальной машине лимит памяти 512 MB

фото
1

Рецепт был успешно обновлен.

фото
1

Отлично все подошло

Файлы: 771.pdf