-
-
Notifications
You must be signed in to change notification settings - Fork 751
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
Packaging: Cherry-pick rpm/deb scriptlets from st2-packages #6313
Conversation
Cherry-picked from StackStorm/st2-packages@1552f46
Cherry-picked from StackStorm/st2-packages@6aa56d2
Cherry-picked from StackStorm/st2-packages@e2e71c1
Cherry-picked from StackStorm/st2-packages@c71671b
Cherry-picked from StackStorm/st2-packages@8525ddb
Cherry-picked from StackStorm/st2-packages@f2d1808
Cherry-picked from StackStorm/st2-packages@02e8868
Cherry-picked from StackStorm/st2-packages@504e740
Cherry-picked from StackStorm/st2-packages@b74e98f
… writeable access Cherry-picked from StackStorm/st2-packages@0fcda88
…(if required) Cherry-picked from StackStorm/st2-packages@a441bd7
Cherry-picked from StackStorm/st2-packages@db443c1
… and mongo do) Cherry-picked from StackStorm/st2-packages@bdd24b7
…ildren checks) Cherry-picked from StackStorm/st2-packages@e1b6489
Cherry-picked from StackStorm/st2-packages@8b844a6
…on-empty dirs such as packs) Cherry-picked from StackStorm/st2-packages@12e671a
Cherry-picked from StackStorm/st2-packages@1a16e3d
Fixes StackStorm/st2-packages#361 Cherry-picked from StackStorm/st2-packages@0dce516
Cherry-picked from StackStorm/st2-packages@e0c2f8a
Cherry-picked from StackStorm/st2-packages@e618758
Cherry-picked from StackStorm/st2-packages@21da2d8
Cherry-picked from StackStorm/st2-packages@c86c3c6
Cherry-picked from StackStorm/st2-packages@0fccf17
Cherry-picked from StackStorm/st2-packages@dae36a9
Cherry-picked from StackStorm/st2-packages@606e1d2
Cherry-picked from StackStorm/st2-packages@a2976ce
Cherry-picked from StackStorm/st2-packages@b66303e
Cherry-picked from StackStorm/st2-packages@f91c300
… the StackStorm related configs and files. Cherry-picked from StackStorm/st2-packages@7bb9bd5
…generators are run for socket files. Cherry-picked from StackStorm/st2-packages@7822596
Cherry-picked from StackStorm/st2-packages@3df52d0
Fixes docker build where systemctl is not available during the st2 package installation resulting in a failure. ``` Setting up st2 (3.6dev-47) ... System has not been booted with systemd as init system (PID 1). Can't operate. dpkg: error processing package st2 (--configure): installed st2 package post-installation script subprocess returned error exit status 1 ``` Cherry-picked from StackStorm/st2-packages@e6903ed
These scripts will be heavliy refactored in a follow-up PR. That refactor will also fix the shellcheck issues.
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.
Here are links to the files in st2-packages. They should be the same including their git history.
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.
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.
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.
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.
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 PR is working towards doing packaging via pantsbuild. Eventually, I hope to archive and stop using st2-packages.git.
The post/pre install/remove scriptlets (technically only rpm uses the term scriptlets, but I'm using this term to refer to the scripts for both rpm/deb) will need to be in this repo to include them in the pants+nfpm -built rpm/deb packages. I tried to preserve the git history and git authorship, though I modified the commits I cherry-picked to only include the target scriptlets. I also excluded old irrelevant scriptlets that these commits touched, like scripts specifically for: mistral, st2resultstracker, and st2exporter. I also updated the cherry-picked commit messages to include a link to the original commit.
One of the last commits renames the scriptlets and puts them under
packaging/*/scripts
for use by pants+nfpm. This PR does not change the contents of these files at all. In follow-up PRs, I will refactor these scripts and fix theshellcheck
errors that I've temporarily ignored.