question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] --rpm does not actually build RPM artifact

See original GitHub issue

Using this on branch 1.x does not build .rpm package.

yarn build-platform --rpm --release

https://github.com/opensearch-project/OpenSearch-Dashboards/blob/1.x/src/dev/build/cli.ts

It will build tarball and put it to target folder:

....../OpenSearch-Dashboards/target/opensearch-dashboards-1.3.0-linux-x64.tar.gz

Also, there is no option to build arm64 rpm as well.

Thanks.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
ananzhcommented, Feb 18, 2022

@peterzhuamazon

Could run yarn build-platform --all-platforms or yarn build to get rpm/deb package. Result is below (using osd 1.2.0):

~/work/OpenSearch-Dashboards/target$ ls
opensearch-dashboards-1.2.0-SNAPSHOT-amd64.deb          opensearch-dashboards-1.2.0-SNAPSHOT-linux-arm64.tar.gz  opensearch-dashboards-1.2.0-SNAPSHOT-windows-x64.zip
opensearch-dashboards-1.2.0-SNAPSHOT-darwin-x64.tar.gz  opensearch-dashboards-1.2.0-SNAPSHOT-linux-x64.tar.gz    opensearch-dashboards-1.2.0-SNAPSHOT-x64.rpm

Currently, we don’t have arm64 rpm. We only have x64 rpm. We could build a single platform using yarn build-platform --linux-x64. But now we don’t have a separate cmd for building only deb/rpm package. Need to get them with argument --all-platforms . If want to limit building only rpm package, would do yarn build-platform --all-platforms --rpm or yarn build --rpm.

0reactions
peterzhuamazoncommented, Feb 22, 2022

Just talked to the dashboards team member and have these outcomes: (@kavilla @ananzh @tianleh)

  1. @kavilla PR can build both x64 and arm64 #1272 but cannot build only one of them, requires changes in our build.sh to grep the specific ones. Also, need to backport it to 1.x branch if merged.
  2. The arm64 package currently still have aarch64 in the naming:
-rw-r--r-- 1  96967083 Feb 22 23:00 opensearch-dashboards-2.0.0-SNAPSHOT-aarch64.rpm
-rw-r--r-- 1        40 Feb 22 23:00 opensearch-dashboards-2.0.0-SNAPSHOT-aarch64.rpm.sha1.txt
-rw-r--r-- 1  97227223 Feb 22 23:00 opensearch-dashboards-2.0.0-SNAPSHOT-x64.rpm
-rw-r--r-- 1        40 Feb 22 23:00 opensearch-dashboards-2.0.0-SNAPSHOT-x64.rpm.sha1.txt
  1. Like OpenSearch, the Dashboards is bundling nodejs tarball within the rpm, need to make them as dependencies during installation time: https://www.softwarecollections.org/en/scls/?search=NodeJS
  2. Need someone from @seanneumann / @seraphjiang team to verify that the core dashboards rpm package is able to run on arm64 before Infra Team use it for bundled rpm creation.

Thanks, Peter

Read more comments on GitHub >

github_iconTop Results From Across the Web

RPM Packaging Guide
The command rpmbuild creates the actual rpm package. ... For software written in raw interpreted languages, the source code is not built, but...
Read more >
How to Build an RPM from Source in One Line without Spec ...
I just type "checkinstall" and the rpm/deb is created (bugged for rpms). No need for spec files. – Bhagwad Jal Park. Sep 28,...
Read more >
Incorrect Artifactory-calculated checksums preventing RPM ...
A side effect of this error is that no yum metadata is calculated on the artifact, so the RPM does not show up...
Read more >
RPM Packaging Guide Red Hat Enterprise Linux 7
The command rpmbuild creates the actual rpm package. ... Some programming languages, such as bash or Python, do not compile to machine code....
Read more >
Store RPM packages in Artifact Registry - Google Cloud
Create a Yum repository, upload a package, and install the package on a VM.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found