-
Notifications
You must be signed in to change notification settings - Fork 142
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
Fully document what is required, including the go template stuff #435
Comments
After changing my ---
{{- $image := or .image "debian.img" -}}
architecture: arm64
actions:
- action: debootstrap
suite: sid
components:
- main
- non-free-firmware
mirror: http://deb.debian.org/debian
variant: minbase I got the following: diederik@debos-builder:~/dev/pine64$ debos --verbose base-image.yml
2023/08/21 23:49:47 Recipe '/home/diederik/dev/pine64/base-image.yml':
2023/08/21 23:49:47 Architecture:
2023/08/21 23:49:47 Actions:
2023/08/21 23:49:47 - Action: debootstrap, Description:
2023/08/21 23:49:47 Suite: sid
2023/08/21 23:49:47 Mirror: http://deb.debian.org/debian
2023/08/21 23:49:47 Variant: minbase
2023/08/21 23:49:47 KeyringPackage:
2023/08/21 23:49:47 KeyringFile:
2023/08/21 23:49:47 Certificate:
2023/08/21 23:49:47 PrivateKey:
2023/08/21 23:49:47 Components: [main non-free-firmware]
2023/08/21 23:49:47 MergedUsr: true
2023/08/21 23:49:47 CheckGpg: true
2023/08/21 23:49:47 Recipe file must have 'architecture' property Removing the first line ( |
Example config did work and it appears that the |
right, in your example you don't use the |
I initially started responding to #356 but it got so extensive, I figured I better create a separate issue for it.
So (very) related, but also document which go template variables need to be set? And which can be set/are available?
And warn and/or raise error when that's not done.
Take f.e. this one:
{{- $image := or .image "debian.tgz" -}}
I recently learned that that isn't a yaml thing, but a go template thing.
I (now) know that
image := "value"
is a shorthand for variable declaration and assignment. But what does the$
do? And what does theor
mean? I've learned about the dot in go templates, but where does.image
come from?Still not fully understanding how it works, I thought I'd just try it and see what happens (and learn through that).
So I created this base-image.yml file (following instructions from recipe.go IIUC):
And then I tried to build the image:
So everything went successful ... but I still don't have an image?!?
Some additional questions:
apt-cacher-ng
which runs in my network, but without it getting added to the image? I did specifyHTTP_PROXY=<apt-cacher-ng-host:3142>
but it appears it's not using it? At least I didn't see relevant network traffic withbmon
on my apt-cacher-ng host or in acng-report.htmlThe text was updated successfully, but these errors were encountered: