New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

omnibus: Add arm build support for opscode-solr4 #985

Merged
merged 1 commit into from Nov 1, 2016

Conversation

Projects
None yet
2 participants
@elthariel
Contributor

elthariel commented Oct 28, 2016

Following the merge of chef/omnibus-software#751, this PR use the new jre-from-jdk software for opscode-solr4, allowing to build chef-server package for armhf, as demonstrated here: https://github.com/elthariel/chef-server/releases/tag/v12.5.0-arm-alpha

I've been running the chef server on a very small box (Scaleway.com C1 instance: 2GB RAM, Marvell Armada 370/XP CPU) for a few weeks, and it works well. For later reference, here's my /etc/opscode/chef-server.rb file:

# This line is *required*, without it, the keygen timeouts and starts new 'openssl genrsa' processes
# Completely slamming the box, preventin `reconfigure` from ever succeeding
opscode_erchef['keygen_timeout'] = 30000
# Tweak to your tastes
opscode_expander['nodes'] = 3
opscode_erchef['keygen_cache_workers'] = 1
# There's only 2GB of memory on my box, let's be conservative here
opscode_solr4['heap_size'] = 256
postgresql['shared_buffers'] = '256MB'
postgresql['shmall'] = 2097152
postgresql['shmmax'] = 4294967295

Signed-off-by: Julien 'Lta' BALLET contact@lta.io

@elthariel elthariel changed the title from omnibus: Use jre-from-jdk on armhf for solr4 to Build chef-server on ARM Oct 28, 2016

@elthariel

This comment has been minimized.

Show comment
Hide comment
@elthariel

elthariel Oct 28, 2016

Contributor

By the way, this build is likely to work OOB on Raspberry Pi, but I havent' access to any right now to test

Contributor

elthariel commented Oct 28, 2016

By the way, this build is likely to work OOB on Raspberry Pi, but I havent' access to any right now to test

@stevendanna

This comment has been minimized.

Show comment
Hide comment
@stevendanna

stevendanna Oct 28, 2016

Member

If you do try to get this going on a Raspberry Pi, you may want to generate the certs and dhparam before hand and feed them in using these config items:

https://github.com/chef/chef-server/blob/master/omnibus/files/private-chef-cookbooks/private-chef/attributes/default.rb#L477-L479

Otherwise the reconfigure might take forever.

Member

stevendanna commented Oct 28, 2016

If you do try to get this going on a Raspberry Pi, you may want to generate the certs and dhparam before hand and feed them in using these config items:

https://github.com/chef/chef-server/blob/master/omnibus/files/private-chef-cookbooks/private-chef/attributes/default.rb#L477-L479

Otherwise the reconfigure might take forever.

@elthariel

This comment has been minimized.

Show comment
Hide comment
@elthariel

elthariel Oct 28, 2016

Contributor

I confirm, it does take forever. I'll use this trick next time, thanks for the note !

Contributor

elthariel commented Oct 28, 2016

I confirm, it does take forever. I'll use this trick next time, thanks for the note !

omnibus: Use jre-from-jdk on armhf for solr4
Signed-off-by: Julien 'Lta' BALLET <contact@lta.io>
@elthariel

This comment has been minimized.

Show comment
Hide comment
@elthariel

elthariel Oct 29, 2016

Contributor

Restarting the travis build. It fails in seemingly unrelated places, are some of the tests brittle ?

Contributor

elthariel commented Oct 29, 2016

Restarting the travis build. It fails in seemingly unrelated places, are some of the tests brittle ?

@elthariel elthariel closed this Oct 29, 2016

@elthariel elthariel reopened this Oct 29, 2016

@elthariel elthariel changed the title from Build chef-server on ARM to omnibus: Add arm build support for opscode-solr4 Oct 29, 2016

@stevendanna

This comment has been minimized.

Show comment
Hide comment
@stevendanna

stevendanna Oct 29, 2016

Member

@elthariel We've been seeing some issues with Travis with respect to installing the version of ruby some of the tests require. If they fail again I'll try to restart the individual tests. This PR should't influence any of the Travis tests at all. I'll put this branch through our internal build system which runs the build and a set of end-to-end tests on all supported platforms. Once it passes there, I think we are good to go.

Member

stevendanna commented Oct 29, 2016

@elthariel We've been seeing some issues with Travis with respect to installing the version of ruby some of the tests require. If they fail again I'll try to restart the individual tests. This PR should't influence any of the Travis tests at all. I'll put this branch through our internal build system which runs the build and a set of end-to-end tests on all supported platforms. Once it passes there, I think we are good to go.

@elthariel

This comment has been minimized.

Show comment
Hide comment
@elthariel

elthariel Oct 30, 2016

Contributor

@stevendanna, thanks for the update, I hope the tests will pass but there isn't any reasons for them not to pass. Also I closed/reopened the PR to restart the build and it passed, as you can see.

Contributor

elthariel commented Oct 30, 2016

@stevendanna, thanks for the update, I hope the tests will pass but there isn't any reasons for them not to pass. Also I closed/reopened the PR to restart the build and it passed, as you can see.

@stevendanna stevendanna merged commit 0252c44 into chef:master Nov 1, 2016

2 checks passed

DCO This commit has a DCO Signed-off-by
continuous-integration/travis-ci/pr The Travis CI build passed
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment