-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrockcraft.yaml
58 lines (49 loc) · 1.66 KB
/
rockcraft.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# Copyright 2024 Canonical Ltd.
# See LICENSE file for licensing details.
name: mongodb-benchmarking-oci # the name of your ROCK
base: [email protected] # the base environment for this ROCK
license: Apache-2.0
version: '2.0' # just for humans. Semantic versioning is recommended
summary: 'Performacnce testing for Charmed MongoDB'
description: |
This ROCK contains tools for performace\load testing of
Charmed MongoDB. The image contains YCSB and NoSQLBench tools.
platforms: # The platforms this ROCK should be built on and run on
amd64:
parts:
entry:
plugin: dump
source: scripts
organize:
ycsb_load_data.sh: bin/ycsb_load_data.sh
ycsb_run_operations.sh: bin/ycsb_run_operations.sh
stage:
- bin/ycsb_load_data.sh
- bin/ycsb_run_operations.sh
setup_ycsb:
plugin: nil
after: [entry]
stage-packages:
- openjdk-21-jdk
- maven
- python2
override-prime: |
craftctl default
apt update -y
mkdir -p $CRAFT_PRIME/var/load-testing/
chown -R 584788:584788 $CRAFT_PRIME/var/load-testing/
cd $CRAFT_PRIME/var/load-testing
curl -O --location https://github.com/brianfrankcooper/YCSB/releases/download/0.17.0/ycsb-0.17.0.tar.gz
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