Skip to content

canonical/charmed-mysql-rock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MySQL Server ROCK

Release to GHCR

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.

Building the ROCK

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.

Clone Repository

git clone [email protected]:canonical/charmed-mysql-container.git
cd charmed-mysql-container

Installing Prerequisites

sudo snap install rockcraft --edge
sudo snap install docker
sudo snap install lxd
sudo snap install skopeo --edge --devmode

Configuring Prerequisites

sudo usermod -aG docker $USER 
sudo lxd init --auto

NOTE: You will need to open a new shell for the group change to take effect (i.e. su - $USER)

Packing and Running the ROCK

rockcraft pack
sudo skopeo --insecure-policy copy oci-archive:mysql*.rock docker-daemon:<username>/mysql-server:<tag>
docker run --rm -it <username>/mysql-server:<tag>

License

The MySQL Server ROCK is free software, distributed under the Apache Software License, version 2.0. See LICENSE