-
Notifications
You must be signed in to change notification settings - Fork 34
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
Fixes #10333: Document how to build a and agent #296
Fixes #10333: Document how to build a and agent #296
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a great start ! Thank you
4_advanced_usage/18_build_agent.txt
Outdated
|
||
Make sure you have network access and the git command. | ||
|
||
Got to your build directory and checkout rudder-packages |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo: Go
4_advanced_usage/18_build_agent.txt
Outdated
cd rudder-packages/rudder-agent | ||
``` | ||
|
||
Now choose one of the 3 next chapter, depending on your case : debian package, redhat package or other. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
next 3 chapters
on your case:
(no space before colon)
4_advanced_usage/18_build_agent.txt
Outdated
|
||
Choose the branch to build | ||
``` | ||
# or any branch >= 4.1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this comment is misleading - it should be "For branch 4.1"
4_advanced_usage/18_build_agent.txt
Outdated
Set the version to build: | ||
|
||
* Update the debian/changelog file to make the first entry match the version you want to build. | ||
* Edit the SOURCES/Makefile file and put a value into RUDDER_VERSION_TO_PACKAGE: see http://www.rudder-project.org/archives/ for a complete list of available versions. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and set the value of RUDDER_VERSION_TO_PACKAGE
4_advanced_usage/18_build_agent.txt
Outdated
Run the redhat package builder | ||
|
||
``` | ||
# TODO this is not enough |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed, this is not enough :)
4_advanced_usage/18_build_agent.txt
Outdated
|
||
===== Build an install localy | ||
|
||
Before building the agent, you must decide on some environment variables : |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no space before :
4_advanced_usage/18_build_agent.txt
Outdated
|
||
``` | ||
# example | ||
env="RUDDER_VERSION_TO_PACKAGE=4.1.0~beta3 DESTDIR=/ USE_SYSTEM_PERL=true" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could you document with a non beta version ?
Commit modified |
5e524cd
to
465f738
Compare
4_advanced_usage/18_build_agent.txt
Outdated
|
||
Choose the branch to build | ||
``` | ||
# For branch 4.1 (branches before 4.1 are not rupported) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
supported
4_advanced_usage/18_build_agent.txt
Outdated
cd rudder-agent | ||
``` | ||
|
||
Now choose one of the 3 next chapter, depending on your case: debian package, redhat package or other. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
More precisely dpkg or rpm
4_advanced_usage/18_build_agent.txt
Outdated
* Edit the SOURCES/Makefile file and set the value of RUDDER_VERSION_TO_PACKAGE: see http://www.rudder-project.org/archives/ for a complete list of available versions. | ||
|
||
``` | ||
# make sure you are un in rudder-agent, then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you are in
Commit modified |
465f738
to
2992c8d
Compare
4_advanced_usage/18_build_agent.txt
Outdated
|
||
The package will be stored in the parent directory. | ||
|
||
===== Build a redhat package |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rpm
4_advanced_usage/18_build_agent.txt
Outdated
|
||
Now choose one of the 3 next chapter, depending on your case: dpkg (debian like package), rpm (redhat like package) or other. | ||
|
||
===== Build a debian package |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dpkg
Commit modified |
2992c8d
to
e685605
Compare
OK, merging this PR |
https://www.rudder-project.org/redmine/issues/10333