-
Notifications
You must be signed in to change notification settings - Fork 60
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
Research about the generation of OS packages (rpm, deb) #58
Comments
ResearchCurrently the main repo of Opensearch Dashboards contains scripts to generate
It seems to be an error related to a tool called |
I've tried building the packages using the command: yarn build -v --skip-docker-ubi --release which have failed due to the following error:
The internal command failing is the following: $ fpm \
--force \
-t deb \
--package /home/node/app/target/NAME-2.4.1-ARCH.TYPE \
-s dir \
--name opensearch-dashboards \
--description Explore and visualize your OpenSearch data \
--version 2.4.1 --url https://opensearch.org \
--vendor OpenSearch \
--maintainer OpenSearch Dashboards Team <[email protected]> \
--license ASL-2.0 \
--conflicts opensearch-dashboards \
--after-install /home/node/app/src/dev/build/tasks/os_packages/package_scripts/post_install.sh \
--before-install /home/node/app/src/dev/build/tasks/os_packages/package_scripts/pre_install.sh \
--before-remove /home/node/app/src/dev/build/tasks/os_packages/package_scripts/pre_remove.sh \
--after-remove /home/node/app/src/dev/build/tasks/os_packages/package_scripts/post_remove.sh \
--config-files /etc/opensearch-dashboards/opensearch_dashboards.yml \
--template-value user=opensearch-dashboards \
--template-value group=opensearch-dashboards \
--template-value optimizeDir=/usr/share/opensearch-dashboards/optimize \
--template-value configDir=/etc/opensearch-dashboards \
--template-value pluginsDir=/usr/share/opensearch-dashboards/plugins \
--template-value dataDir=/var/lib/opensearch-dashboards \
--exclude usr/share/opensearch-dashboards/config \
--exclude usr/share/opensearch-dashboards/data \
--exclude usr/share/opensearch-dashboards/assets \
--architecture amd64 \
--deb-priority optional /home/node/app/build/opensearch-dashboards-2.4.1-linux-x64/=/usr/share/opensearch-dashboards/ /home/node/app/build/opensearch-dashboards-2.4.1-linux-x64/config/=/etc/opensearch-dashboards/ /home/node/app/build/opensearch-dashboards-2.4.1-linux-x64/data/=/var/lib/opensearch-dashboards/ /home/node/app/src/dev/build/tasks/os_packages/service_templates/sysv/=/ /home/node/app/src/dev/build/tasks/os_packages/service_templates/systemd/=/ Raw$ fpm --force -t deb --package /home/node/app/target/NAME-2.4.1-ARCH.TYPE -s dir --name opensearch-dashboards --description Explore and visualize your OpenSearch data --version 2.4.1 --url https://opensearch.org --vendor OpenSearch --maintainer OpenSearch Dashboards Team <[email protected]> --license ASL-2.0 --conflicts opensearch-dashboards --after-install /home/node/app/src/dev/build/tasks/os_packages/package_scripts/post_install.sh --before-install /home/node/app/src/dev/build/tasks/os_packages/package_scripts/pre_install.sh --before-remove /home/node/app/src/dev/build/tasks/os_packages/package_scripts/pre_remove.sh --after-remove /home/node/app/src/dev/build/tasks/os_packages/package_scripts/post_remove.sh --config-files /etc/opensearch-dashboards/opensearch_dashboards.yml --template-value user=opensearch-dashboards --template-value group=opensearch-dashboards --template-value optimizeDir=/usr/share/opensearch-dashboards/optimize --template-value configDir=/etc/opensearch-dashboards --template-value pluginsDir=/usr/share/opensearch-dashboards/plugins --template-value dataDir=/var/lib/opensearch-dashboards --exclude usr/share/opensearch-dashboards/config --exclude usr/share/opensearch-dashboards/data --exclude usr/share/opensearch-dashboards/assets --architecture amd64 --deb-priority optional /home/node/app/build/opensearch-dashboards-2.4.1-linux-x64/=/usr/share/opensearch-dashboards/ /home/node/app/build/opensearch-dashboards-2.4.1-linux-x64/config/=/etc/opensearch-dashboards/ /home/node/app/build/opensearch-dashboards-2.4.1-linux-x64/data/=/var/lib/opensearch-dashboards/ /home/node/app/src/dev/build/tasks/os_packages/service_templates/sysv/=/ /home/node/app/src/dev/build/tasks/os_packages/service_templates/systemd/=/ From this information, we now know that fpm is used internally to build the deb and rpm packages. |
I've been looking at the Opensearch Build repo and testing how it works, as it is mentioned in opensearch-project/opensearch-build#1545 that it uses |
I've been looking at the tools used by CI/CD and was able to generate packages (from the Opensearch repo). Then I started modifying the tools locally to make them match our requirements in order to generate packages of our own repository. |
I was able to generate a functional The tools used by CI/CD consists in 3 parts:
To generate the I was not able to generate a
|
I was able to generate a functional |
Reviewed in #72 |
Description
We need to investigate how to produce production packages in rpm and deb formats.
Currently, we only generate production packages in
tar.gz
format. See #46.Additional info
These are the tools used by CI/CD:
The text was updated successfully, but these errors were encountered: