Files
charm-mysql-innodb-cluster/charmcraft.yaml
Alex Kavanagh 849489168a Update charmcraft.yaml for 1.7/2.0
The CHARMCRAFT_* vars changed to CRAFT_* and there has to be a
file that is the 'entrypoint', a concept somewhat lost on reactive
charms.  At some point, update charm-tools to build an entry point.

Change-Id: I86bef3d7cedb17a68539aad25ee6fe273da4b8cc
2022-08-17 18:25:20 +01:00

34 lines
865 B
YAML

type: charm
parts:
charm:
charm-entrypoint: "hooks/install"
build-packages:
- tox
- git
- python3-dev
- libffi-dev
- libmysqlclient-dev # for executable mysql_shell
override-build: |
apt-get install ca-certificates -y
tox -e build-reactive
override-stage: |
echo "Copying charm to staging area: $CRAFT_STAGE"
NAME=$(ls $CRAFT_PART_BUILD/build/builds)
cp -r $CRAFT_PART_BUILD/build/builds/$NAME/* $CRAFT_STAGE/
override-prime: |
# For some reason, the normal priming chokes on the fact that there's a
# hooks directory.
cp -r $CRAFT_STAGE/* .
bases:
- build-on:
- name: ubuntu
channel: "22.04"
architectures:
- amd64
run-on:
- name: ubuntu
channel: "22.04"
architectures: [amd64, s390x, ppc64el, arm64]