Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix broken docs links #247

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/how-to/configure-runner-storage.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ This is configured with the [`runner-storage`](https://charmhub.io/github-runner

The random access memory of the juju machine is configured as LXD storage and used as the root disk for the LXD instances.

The `runner-storage` configuration needs to be set to `memory` during deployment, and the juju machine constraints should have enough memory for the virtual machine memory and disk. See [Managing resource usage](https://charmhub.io/github-runner/docs/managing-resource-usage).
The `runner-storage` configuration needs to be set to `memory` during deployment, and the juju machine constraints should have enough memory for the virtual machine memory and disk. See [Managing resource usage](https://charmhub.io/github-runner/docs/tutorial-managing-resource-usage).

An example deployment:

Expand Down
2 changes: 1 addition & 1 deletion docs/how-to/integrate-with-cos.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,4 @@ The `cos-agent` integration can be consumed by the [grafana-agent](https://charm
```

You should now be able to access a Grafana Dashboard named `GitHub Self-Hosted Runner Metrics`, displaying metrics, and another named `System Resources` exhibiting host resources in Grafana.
Additionally, you can explore Loki logs using Grafana's Explore function. For detailed information about the specific metrics in the `GitHub Self-Hosted Runner Metrics` dashboard, refer to [Metrics](https://charmhub.io/github-runner/docs/cos).
Additionally, you can explore Loki logs using Grafana's Explore function. For detailed information about the specific metrics in the `GitHub Self-Hosted Runner Metrics` dashboard, refer to [Metrics](https://charmhub.io/github-runner/docs/how-to-integrate-with-cos).
1 change: 1 addition & 0 deletions docs/how-to/run-on-lxd.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@ recommendation on `cores` and `mem` constraint.

The name of the application must not be longer than 29 characters. This is due to the nature of LXD
pathing that must not exceed 108 bytes. 79 characters are reserved for path naming convention.

10 changes: 5 additions & 5 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Some of the charm dependencies upgrades on a schedule to migrate security risks.

The charm maintains a set of ephemeral self-hosted runners, each isolated in a single-use virtual machine instance. In addition, resource limits for the self-hosted runners can be configured.

See [charm architecture](https://charmhub.io/github-runner/docs/charm-architecture) for more information.
See [charm architecture](https://charmhub.io/github-runner/docs/explanation-charm-architecture) for more information.

The charm operates in a stateless manner. It can be redeployed without losing any data and there is no need to backup the charm's state.

Expand All @@ -18,14 +18,14 @@ Metrics and logs about the runners and the charm itself are collected and sent t

This charm will make operating GitHub self-hosted runners simple and straightforward for DevOps or SRE teams through Juju's clean interface.

The charm enforces a set of GitHub repository settings as best practice. This is planned to be opt-in in the future. See [How to comply with repository policies](https://charmhub.io/github-runner/docs/repo-policy).
The charm enforces a set of GitHub repository settings as best practice. This is planned to be opt-in in the future. See [How to comply with repository policies](https://charmhub.io/github-runner/docs/how-to-repo-policy).

## In this documentation

| | |
|--|--|
| [Tutorials](https://charmhub.io/github-runner/docs/quick-start)</br> Get started - a hands-on introduction to using the GitHub runner charm for new users </br> | [How-to guides](https://charmhub.io/github-runner/docs/run-on-lxd) </br> Step-by-step guides covering key operations and common tasks |
| [Reference](https://charmhub.io/github-runner/docs/actions) </br> Technical information - specifications, APIs, architecture | [Explanation](https://charmhub.io/github-runner/docs/charm-architecture) </br> Concepts - discussion and clarification of key topics |
| [Tutorials](https://charmhub.io/github-runner/docs/tutorial-quick-start)</br> Get started - a hands-on introduction to using the GitHub runner charm for new users </br> | [How-to guides](https://charmhub.io/github-runner/docs/how-to-change-path) </br> Step-by-step guides covering key operations and common tasks |
| [Reference](https://charmhub.io/github-runner/docs/reference-actions) </br> Technical information - specifications, APIs, architecture | [Explanation](https://charmhub.io/github-runner/docs/explanation-charm-architecture) </br> Concepts - discussion and clarification of key topics |

## Contributing to this documentation

Expand Down Expand Up @@ -70,4 +70,4 @@ Thinking about using the GitHub runner charm for your next project? [Get in touc
1. [Token scopes](reference/token-scopes.md)
1. [Tutorial](tutorial)
1. [Managing resource usage](tutorial/managing-resource-usage.md)
1. [Quick start](tutorial/quick-start.md)
1. [Quick start](tutorial/quick-start.md)
2 changes: 1 addition & 1 deletion docs/tutorial/managing-resource-usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ The recommended combined resource usage is:
- memory: number of virtual machines * (memory per virtual machine + disk per virtual machine) + 4GiB
- disk: 20GiB

If memory is used as [runner storage](https://charmhub.io/github-runner/docs/configure-runner-storage):
If memory is used as [runner storage](https://charmhub.io/github-runner/docs/how-to-configure-runner-storage):

- memory: number of virtual machines * (memory per virtual machine + disk per virtual machine) + 4GiB

Expand Down
8 changes: 4 additions & 4 deletions docs/tutorial/quick-start.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ juju deploy github-runner --constraints="cores=4 mem=16G root-disk=20G virt-type

Replacing the `<TOKEN>` with the personal access token, and `<OWNER/REPO>` the GitHub account name and GitHub repository separated with `/`.

The `--constraints` option for the `juju deploy` sets the resource requirements for the juju machine hosting the charm application. This is used to accommodate different sizes of self-hosted runners. For details, refer to [Managing resource usage](https://charmhub.io/github-runner/docs/managing-resource-usage).
The `--constraints` option for the `juju deploy` sets the resource requirements for the juju machine hosting the charm application. This is used to accommodate different sizes of self-hosted runners. For details, refer to [Managing resource usage](https://charmhub.io/github-runner/docs/tutorial-managing-resource-usage).

The `--storage` option mounts a juju storage to be used as the disk for LXD instances hosting the self-hosted runners. Refer [How to configure runner storage](https://charmhub.io/github-runner/docs/configure-runner-storage) for more information.
The `--storage` option mounts a juju storage to be used as the disk for LXD instances hosting the self-hosted runners. Refer [How to configure runner storage](https://charmhub.io/github-runner/docs/how-to-configure-runner-storage) for more information.

The charm performs various installation and configuration on startup. The charm might upgrade the kernel of the juju machine and reboot the juju machine. During reboot, the juju machine will go into the `down` state, this is a part of the normal reboot process and the juju machine should be restarted after a while.

Expand Down Expand Up @@ -85,12 +85,12 @@ If the workflow failed at the `Set up runner` step with the following message:

> This job has failed to pass a repository policy compliance check as defined in the https://github.com/canonical/repo-policy-compliance repository. The specific failure is listed below. Please update the settings on this project to fix the relevant policy.

The repository setting does not comply with the best practice enforce by the charm. See [How to comply with repository policies](https://charmhub.io/github-runner/docs/repo-policy).
The repository setting does not comply with the best practice enforce by the charm. See [How to comply with repository policies](https://charmhub.io/github-runner/docs/how-to-repo-policy).

#### Removing the charm

The charm and the self-hosted runners can be removed with the following command:

```shell
juju remove-application github-runner
```
```
Loading