Skip to content
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

IGNITE-7107 Apache Ignite RPM packages #3171

Closed
wants to merge 7 commits into from

Conversation

vveider
Copy link
Contributor

@vveider vveider commented Dec 7, 2017

  • added spec for RPM build
  • added instructions to DEVNOTES.txt

DEVNOTES.txt Outdated
@@ -4,81 +4,126 @@ Ignite Fabric Maven Build Instructions

2) Compile and install:

mvn clean install -Pall-java,all-scala,licenses -DskipTests
mvn clean install -Pall-java,all-scala,licenses -DskipTests
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the file reformatted using tabs? Why?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My fault - got used to editing such files in default vim. Fixed and updated vim settings to indent with spaces.

#

%install
cd %{name}-*
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't seem to work:

+ cd 'apache-ignite-*'
/var/tmp/rpm-tmp.KwOoyl: line 34: cd: apache-ignite-*: No such file or directory

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Strange error - shell expansion is not working. Anyway, replaced with more universal variant.

<bean class="org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi">
<property name="ipFinder">
<bean class="org.apache.ignite.spi.discovery.tcp.ipfinder.multicast.TcpDiscoveryMulticastIpFinder">
<property name="multicastGroup" value="228.10.10.157"/>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should definitely not have configurations inline in build scripts!
Nobody will bother to update them, and there's duplication of effort, and of course this particular IP should not be here.
We should discuss whether default configuration should be multicast or VM on localhost.
Anyway, we should just copy default config from Ignite distribution.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Extracted all cat<<EOF sections into separate files.

[Install]
WantedBy=multi-user.target
EOF
cat <<EOF > %{buildroot}%{_datadir}/%{name}/bin/service.sh
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this file should not be here inline, instead in packaging/ or bin/ in distribution.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Extracted all cat<<EOF into separate files.

@vveider vveider force-pushed the ignite-7107 branch 3 times, most recently from eb11004 to 67d20c0 Compare December 25, 2017 14:26
vveider and others added 3 commits December 26, 2017 15:13
 * added spec for RPM build
 * added instructions to DEVNOTES.txt
 * purged 'fabric' mentions from RPM package
@vveider vveider force-pushed the ignite-7107 branch 2 times, most recently from 6c4434e to bb6231f Compare December 26, 2017 12:21
 * removed node.cfg and redesigned service to be able to run in multiple instances
 * removed replacement for default-config.xml from package
 * fixed DEVNOTES.txt
 * prepared ignitesqlline | ignitevisorcmd future usage from native bin
 * moved sqlline back to ${IGNITE_HOME}/bin
@vveider vveider closed this Dec 28, 2017
@vveider vveider deleted the ignite-7107 branch December 28, 2017 13:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants