-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from canonical/add_nb5
Add nb5 tool to the image
- Loading branch information
Showing
2 changed files
with
14 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ name: mongodb-benchmarking-oci # the name of your ROCK | |
base: [email protected] # the base environment for this ROCK | ||
license: Apache-2.0 | ||
|
||
version: '1.0.1' # just for humans. Semantic versioning is recommended | ||
version: '2.0' # just for humans. Semantic versioning is recommended | ||
|
||
summary: 'Performacnce testing for Charmed MongoDB' | ||
description: | | ||
|
@@ -35,6 +35,7 @@ parts: | |
- python2 | ||
override-prime: | | ||
craftctl default | ||
apt update -y | ||
mkdir -p $CRAFT_PRIME/var/load-testing/ | ||
chown -R 584788:584788 $CRAFT_PRIME/var/load-testing/ | ||
|
@@ -44,3 +45,14 @@ parts: | |
tar xfvz ycsb-0.17.0.tar.gz | ||
chmod +x $CRAFT_PRIME/bin/ycsb_load_data.sh | ||
chmod +x $CRAFT_PRIME/bin/ycsb_run_operations.sh | ||
setup_nb5: | ||
plugin: nil | ||
after: [setup_ycsb] | ||
stage-packages: | ||
- libfuse2 | ||
override-prime: | | ||
craftctl default | ||
cd $CRAFT_PRIME/var/load-testing | ||
curl -O --location https://github.com/nosqlbench/nosqlbench/releases/download/5.17.9-release/nb5 | ||
chmod +x nb5 |