This repository contains the packaging metadata for creating a rock of PgBouncer built from the official Ubuntu repositories. For more information on rocks, visit the rockcraft Github.
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 git@github.com:canonical/charmed-pgbouncer-rock.git
cd charmed-pgbouncer-rock
sudo snap install rockcraft --edge --classic
sudo snap install docker
sudo snap install lxd
sudo snap install skopeo --edge --devmode
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
)
rockcraft pack
sudo skopeo --insecure-policy copy oci-archive:charmed-pgbouncer*.rock docker-daemon:<username>/charmed-pgbouncer:<tag>
docker run --rm -it <username>/charmed-pgbouncer:<tag>
The PgBouncer rock is free software, distributed under the Apache Software License, version 2.0. See LICENSE for more information.