This is a template repository for developing rocks with Canonical's Rockcraft.
This repository template provides a basic setup to help you get started quickly with developing your own rock(s).
Before you begin, ensure you have the required dependencies to build rocks using Rockcraft. For this, you'll need Rockcraft installed on your machine. Follow the official installation guide here.
sudo snap install rockcraft --classicCheck GitHub's documentation on creating a repository from a template
This template comes with a basic setup to get you started. Here's what you need to customize:
rockcraft.yaml: This is the main configuration file where you define your rock's properties like name, version, description, dependencies, etc.SECURITY.md: Set the security policy for the rocks inside this repository.CODEOWNERS: Specify who are the owner(s) of this code.
Here's an overview of the directory structure of the repository:
rocks/ # Directory containing all rocks and its versions
└─ rock1/ # Directory containing all versions of a single rock
└─ v1 # Directory containing the rock project file for a version
└─ rockcraft.yaml # Rock project file
.gitignore
CODEOWNERS # Specify who are the authors. Useful for notifications
README.md # Top level document containing this specification
SECURITY.md # File explaining how to report a vulnerability
To build your rock, simply run the following command from the directory containing a rockcraft.yaml file
rockcraft pack