-
Notifications
You must be signed in to change notification settings - Fork 36
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
Build squid Microceph #345
base: main
Are you sure you want to change the base?
Changes from all commits
7d31590
e0e4272
224a724
9d78fbe
03fdcb2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ confinement: strict | |
|
||
package-repositories: | ||
- type: apt | ||
cloud: bobcat | ||
cloud: caracal | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not sure we want to build for Squid by default before having a stable upstream release. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think these are independent. As soon as we switch the reef track to a stable branch we can and should also build/publish the squid snap (without a stable risk level maybe). |
||
priority: always | ||
|
||
slots: | ||
|
@@ -144,12 +144,13 @@ parts: | |
pkg_version=$( | ||
dpkg-deb -f \ | ||
$CRAFT_PART_SRC/../stage_packages/ceph-common*.deb \ | ||
Version | sed -rne 's/([0-9.]+)[-+].*$$/\1/p') | ||
Version | sed -rne 's/([0-9.]+)[-+].*$$/\1/p' | cut -c1-10) | ||
git_version=$( | ||
git -C $CRAFT_PROJECT_DIR describe \ | ||
--always \ | ||
--dirty \ | ||
--abbrev=10) | ||
# changed as the original string was longer than 32chars. | ||
craftctl set version=${pkg_version}+snap${git_version} | ||
stage-packages: | ||
- ceph-common | ||
|
@@ -161,6 +162,7 @@ parts: | |
- radosgw | ||
- coreutils | ||
- uuid-runtime | ||
- python3-setuptools | ||
organize: | ||
usr/bin/: bin/ | ||
usr/sbin/: bin/ | ||
|
@@ -225,6 +227,7 @@ parts: | |
- lib/*/rados-classes | ||
- lib/*/libtcmalloc.so* | ||
- lib/*/libunwind.so* | ||
- lib/*/liblmdb.so* | ||
- share/ceph | ||
|
||
dqlite: | ||
|
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.
Hm, I wish we could reduce the duplication of those print log stanzas here
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.
I am not sure if we can abstract this step out given, The actual step is a one-liner (and rest is step description in each run.).