Commit cced864 1 parent a8af988 commit cced864 Copy full SHA for cced864
File tree 6 files changed +15
-16
lines changed
6 files changed +15
-16
lines changed Original file line number Diff line number Diff line change 96
96
id : builder
97
97
run : |
98
98
sudo snap install charmcraft --classic
99
+ # expects the local libraries to be already available in $charm/lib as it was done for unit tests.
99
100
tox -c ${{ matrix.part }} -e build
100
101
101
102
- name : Upload built charm
Original file line number Diff line number Diff line change 1
1
importlib-resources
2
2
ops >= 1.2.0 , <= 1.5.2
3
3
tenacity
4
- git+https://github.com/openstack/charms.ceph#egg=charms_ceph
4
+ ./lib/charms.ceph
5
+ git+https://github.com/canonical/cos-lib # for ceph_metrics
5
6
git+https://opendev.org/openstack/charm-ops-openstack#egg=ops_openstack
6
7
git+https://opendev.org/openstack/charm-ops-interface-tls-certificates#egg=interface_tls_certificates
7
8
git+https://github.com/openstack-charmers/ops-interface-ceph-iscsi-admin-access#egg=interface_ceph_iscsi_admin_access
Original file line number Diff line number Diff line change 9
9
- setuptools
10
10
build-packages :
11
11
- git
12
+ - cargo
13
+ - rustc
12
14
13
15
update-certificates :
14
16
# Ensure that certificates in the base image are up-to-date.
Original file line number Diff line number Diff line change @@ -6,9 +6,12 @@ dnspython
6
6
netaddr
7
7
netifaces
8
8
pyyaml
9
+ cosl == 0.0.55
10
+
9
11
# the build process expects charms.ceph and charms.ceph_metrics be at lib/ inside the charm directory.
10
12
./lib/charms.ceph_metrics
11
13
./lib/charms.ceph
14
+
12
15
git+https://opendev.org/openstack/charm-ops-openstack#egg=ops_openstack
13
16
git+https://opendev.org/openstack/charm-ops-interface-tls-certificates#egg=interface_tls_certificates
14
17
git+https://github.com/openstack-charmers/ops-interface-ceph-iscsi-admin-access#egg=interface_ceph_iscsi_admin_access
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
- function build() {
4
- local charm=" ${1?missing} "
5
-
6
- # remove old and copy fresh dependencies into lib dir.
7
- rm -rf $charm /lib/charms.ceph*
8
- cp -r ./charms.ceph* $charm /lib/
9
-
10
- cd $charm
11
- tox -e build
12
- }
13
-
14
3
function copy_libs() {
15
4
local charm=" ${1?missing} "
16
5
17
- # remove old and copy fresh dependencies into lib dir.
18
- rm -rf $charm /lib/charms.ceph*
6
+ # remove old copy of local libraries may fail if lib folder does not exist.
7
+ rm -rf $charm /lib/charms.ceph* || true
8
+ # create a lib folder in case it does not exist
9
+ mkdir -p $charm /lib
19
10
cp -r ./charms.ceph* $charm /lib/
11
+
20
12
}
21
13
22
14
function clean() {
Original file line number Diff line number Diff line change 1
1
# Requirements for ceph_metrics dependencies
2
2
ops >= 1.2.0
3
3
tenacity
4
+ cosl == 0.0.55
5
+
4
6
# the build process expects charms.ceph and charms.ceph_metrics be at lib/ inside the charm directory.
5
7
../charms.ceph # charms.ceph from local repository
6
-
7
- git+https://github.com/canonical/cos-lib
You can’t perform that action at this time.
0 commit comments