-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcharmcraft.yaml
47 lines (40 loc) · 1.51 KB
/
charmcraft.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
# Copyright 2025 Canonical Ltd.
# See LICENSE file for licensing details.
type: charm
platforms:
[email protected]:amd64:
parts:
files:
plugin: dump
source: .
override-build: |
# Ship the charm contents
# curl -sSL https://code.launchpad.net/~pguimaraes/openmessaging-benchmark/+git/openmessaging-benchmark/+artifact/280249/+files/openmessaging-benchmark-0.0.1-ubuntu0-20241119152607-linux-x64.tar.gz | tar -zxvf -
# For some reason, getting 23 write error in this curl command.
# moving away to wget
apt update
apt install -y wget
wget https://code.launchpad.net/~pguimaraes/openmessaging-benchmark/+git/openmessaging-benchmark/+artifact/280249/+files/openmessaging-benchmark-0.0.1-ubuntu0-20241119152607-linux-x64.tar.gz
tar -zxvf openmessaging-benchmark-*.tar.gz
mv openmessaging-benchmark-0.0.1-SNAPSHOT/ openmessaging-benchmark/
craftctl default
prime:
- openmessaging-benchmark
- LICENSE
charm:
plugin: charm
override-build: |
rustup default stable
# Convert subset of poetry.lock to requirements.txt
curl -sSL https://install.python-poetry.org | python3 -
/root/.local/bin/poetry self add poetry-plugin-export
/root/.local/bin/poetry export --only main,charm-libs --output requirements.txt
craftctl default
charm-strict-dependencies: true
charm-requirements: [requirements.txt]
build-snaps:
- rustup
build-packages:
- libffi-dev
- libssl-dev
- pkg-config