This repository contains the packaging metadata for creating a rock of MySQL built from the official ubuntu MySQL package from the Ubuntu repository and further installs mysql-shell. For more information on rocks, visit the rockcraft Github.
Built for use in the MySQL k8s charm.
The steps outlined below are based on the assumption that you are building the rock with the latest LTS of Ubuntu. If you are using another version of Ubuntu or another operating system, the process may be different.
git clone https://github.com/canonical/charmed-mysql-rock.git
cd charmed-mysql-rocksudo snap install rockcraft --classic --edge
sudo snap install docker
sudo snap install lxdsudo usermod -aG docker $USER
sudo lxd init --autorockcraft pack
rockcraft.skopeo --insecure-policy copy oci-archive:charmed-mysql*.rock docker-daemon:<username>/charmed-mysql:<tag>
docker run --rm -it <username>/charmed-mysql:<tag>The Charmed MySQL rock is free software, distributed under the Apache Software License, version 2.0. See LICENSE