Skip to content

Commit

Permalink
Merge pull request #7 from canonical/add_nb5
Browse files Browse the repository at this point in the history
Add nb5 tool to the image
  • Loading branch information
dmitry-ratushnyy authored Apr 22, 2024
2 parents 6e78b28 + c6ec035 commit 2779d4b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mongodb-benchmarking.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ spec:
spec:
containers:
- name: mongodb-benchmarking
image: ghcr.io/canonical/mongodb-benchmarking:1-edge
image: ghcr.io/canonical/mongodb-benchmarking:2-edge


14 changes: 13 additions & 1 deletion rockcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down Expand Up @@ -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/
Expand All @@ -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

0 comments on commit 2779d4b

Please sign in to comment.