-
Notifications
You must be signed in to change notification settings - Fork 77
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
add support for RPM package builds #7291
add support for RPM package builds #7291
Conversation
7453939
to
1311061
Compare
1311061
to
646b1e3
Compare
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.
@Utkarsh-pro This is a great PR! Let's get it into master.
- Please rebase.
- I wonder - is it possible to use the final
noobaa
image as base instead ofnoobaa-base
image? - Let's get @liranmauda review if we haven't yet.
@Utkarsh-pro I pulled this PR and tried to run |
I'm reviving this discussion as we finally have a way forward with our RPM offering. From a dependencies point of view, node binary should be inside the RPM. |
646b1e3
to
cff87c3
Compare
Tried uploading the built RPMs here for others to try it out and play around with it but GH won't let me upload files > 25M. |
cff87c3
to
63fd624
Compare
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.
LGTM
63fd624
to
1ae0240
Compare
Signed-off-by: Utkarsh Srivastava <srivastavautkarsh8097@gmail.com> transient Signed-off-by: Utkarsh Srivastava <srivastavautkarsh8097@gmail.com> add support for multiplatform builds and RPM package builds Signed-off-by: Utkarsh Srivastava <srivastavautkarsh8097@gmail.com> revert transient changes Signed-off-by: Utkarsh Srivastava <srivastavautkarsh8097@gmail.com> fix node version Signed-off-by: Utkarsh Srivastava <srivastavautkarsh8097@gmail.com> make "jemalloc" a weak dependency Signed-off-by: Utkarsh Srivastava <srivastavautkarsh8097@gmail.com> add support for dynamic changelog Signed-off-by: Utkarsh Srivastava <srivastavautkarsh8097@gmail.com> add support for upgrade script trigger post install Signed-off-by: Utkarsh Srivastava <srivastavautkarsh8097@gmail.com> remove redundant build copy Signed-off-by: Utkarsh Srivastava <srivastavautkarsh8097@gmail.com>
1ae0240
to
54be5b9
Compare
Explain the changes
This PR:
How to use?
Prerequisites:
docker run --privileged --rm tonistiigi/binfmt --install all
Build:
make rpm
. This will create an RPM package and will dump it inside./build/rpm/<name>
..nvmrc
).boost
shared objects to be present on the machine where noobaa is supposed to be installed. This feature can be disabled if not required (due to additional dependency) by runningmake rpm BUILD_S3SELECT=0
.make rpm CONTAINER_PLATFORM=linux/amd64
ormake rpm CONTAINER_PLATFORM=linux/ppc64le
.Post install expectations:
node
,npm
,npx
should be installed.noobaa-core
files should be present in/usr/local/noobaa-core
.NOTE:
NooBaa uses
jemalloc
as its allocator optionally.jemalloc
is not bundled with noobaa-core RPM and needs to be installed manually. Ifepel-release
repository is available anddnf
package manager is being used in that case it will try to installjemalloc
automatically but can be ignored by passing--setopt=install_weak_deps=False
todnf
.Testing
Follow the above
Build
andPost install expectations
guide.Previously tested build process on arm64, amd64, ppc64le.
Recent build tested on arm64 and amd64 only.