Skip to content

Commit 28db8e0

Browse files
authored
Merge pull request #6 from hnez/readme
Update the README with a config snippet and more
2 parents aaf891a + 873d2d9 commit 28db8e0

File tree

2 files changed

+70
-9
lines changed

2 files changed

+70
-9
lines changed

README.md

Lines changed: 68 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
Image Generation Examples for Forrest
2-
=====================================
1+
Forrest Runner images used by Pengutronix
2+
=========================================
33

44
┏━━━━━━━━━━━━━━━┓
55
┃ Run ┃
@@ -9,10 +9,71 @@ Image Generation Examples for Forrest
99

1010
---
1111

12-
This repository contains examples on how to generate images for the
13-
[Forrest](https://github.com/hnez/forrest/) GitHub action runner runner.
14-
If these words do not make sense to you, you should start your journey there.
12+
This repository contains [Forrest][forrest-project] machine
13+
set up actions.
14+
If these words do not make sense to you, you should start your journey at the
15+
link above.
1516

16-
There are jobs to:
17+
To use these jobs you will need a [Forrest][forrest-project] runner with a
18+
config that looks something like this:
1719

18-
- [Generate Debian based images](.github/workflows/debian.yaml)
20+
```yaml
21+
host:
22+
base_dir: /srv/gh-runner/forrest
23+
ram: 32G
24+
25+
github:
26+
app_id: [YOUR APP ID]
27+
jwt_key_file: [PATH TO YOUR JWT KEY]
28+
webhook_secret: [YOUR GITHUB WEBHOOK SECRET]
29+
30+
repository_snippets:
31+
image-machines: &image-machines
32+
machines:
33+
generator: &image-generator
34+
setup_template:
35+
path: /etc/forrest/templates/generic
36+
parameters:
37+
RUNNER_VERSION: "2.323.0"
38+
RUNNER_HASH: "0dbc9bf5a58620fc52cb6cc0448abcca964a8d74b5f39773b7afcad9ab691e19"
39+
use_base: always
40+
cpus: 4
41+
disk: 16G
42+
ram: 4G
43+
44+
repositories:
45+
pengutronix:
46+
forrest-images:
47+
persistence_token: [A RANDOM PERSISTENCE TOKEN]
48+
machines:
49+
debian-bookworm-base:
50+
<< : *image-generator
51+
base_image: /srv/gh-runner/forrest/images/debian-12-generic-amd64.raw
52+
debian-bookworm-debos:
53+
<< : *image-generator
54+
base_machine: pengutronix/forrest-images/debian-bookworm-base
55+
debian-bookworm-ptxdist:
56+
<< : *image-generator
57+
base_machine: pengutronix/forrest-images/debian-bookworm-base
58+
debian-bookworm-yocto:
59+
<< : *image-generator
60+
base_machine: pengutronix/forrest-images/debian-bookworm-base
61+
```
62+
63+
The jobs will set up images for use with debos, ptxdist and yocto jobs from
64+
plain Debian generic [cloud images](https://cloud.debian.org/images/cloud/).
65+
66+
See the [workflow file](.github/workflows/debian.yaml) for more information.
67+
68+
Refer to the [Forrest][forrest-project] documentation for information on how
69+
actually to use these machine images.
70+
71+
---
72+
73+
┏━━━━━━━━━━━━━━┓
74+
┃ Stop ┃
75+
┃ Forrest ┃
76+
┃ Stop ┃
77+
┗━━━┯━━━━━━┯━━━┛
78+
79+
[forrest-project]: https://github.com/forrest-runner/forrest/

base/setup.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ echo "shared-git /srv/shared-git 9p defaults,nofail 0 0" | sudo tee -a /etc/fsta
2222
prepare
2323

2424
# The unattended-upgrades service comes pre-installed on the Debian cloud
25-
# images we use. It may however with our apt-get calls, so it needs to be
26-
# stopped and can then be uninstalled.
25+
# images we use. It may however conflict with our apt-get calls, so it needs
26+
# to be stopped and can then be uninstalled.
2727
# The openssh-server is also pre-installed but not used.
2828
sudo systemctl stop unattended-upgrades
2929
sudo -E apt-get --assume-yes purge openssh-server unattended-upgrades

0 commit comments

Comments
 (0)