feat: add remote module, docs to recipe
Signed-off-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
This commit is contained in:
parent
53372290e7
commit
29b9610558
2 changed files with 11 additions and 8 deletions
0
Containerfile
Normal file
0
Containerfile
Normal file
19
recipe.yml
19
recipe.yml
|
|
@ -1,13 +1,15 @@
|
||||||
name: Custom Vanilla Desktop
|
name: Custom Vanilla Desktop # Replace this name with your image name
|
||||||
id: custom
|
id: custom # Replace this ID with your image ID
|
||||||
stages:
|
stages:
|
||||||
- id: build
|
- id: build
|
||||||
base: ghcr.io/vanilla-os/desktop:main
|
base: ghcr.io/vanilla-os/desktop:main
|
||||||
singlelayer: false
|
singlelayer: false
|
||||||
labels:
|
labels:
|
||||||
maintainer: self-maintained
|
maintainer: self-maintained # Optionally: Replace this with your name
|
||||||
args:
|
args:
|
||||||
DEBIAN_FRONTEND: noninteractive
|
DEBIAN_FRONTEND: noninteractive # Set the image environment as non-interactive
|
||||||
|
|
||||||
|
# Commands to run first before building the modules
|
||||||
runs:
|
runs:
|
||||||
- echo 'APT::Install-Recommends "1";' > /etc/apt/apt.conf.d/01norecommends
|
- echo 'APT::Install-Recommends "1";' > /etc/apt/apt.conf.d/01norecommends
|
||||||
|
|
||||||
|
|
@ -20,21 +22,22 @@ stages:
|
||||||
|
|
||||||
# Put your custom actions behind this comment
|
# Put your custom actions behind this comment
|
||||||
|
|
||||||
- name: example-packages
|
- name: example-packages # Sample module using the built-in Apt module to install packages
|
||||||
type: apt
|
type: apt
|
||||||
source:
|
source:
|
||||||
packages:
|
packages:
|
||||||
- vim
|
- vim
|
||||||
|
|
||||||
- name: example-commands
|
- name: example-commands # Sample module demonstrating the Shell module with custom commands
|
||||||
type: shell
|
type: shell
|
||||||
commands:
|
commands:
|
||||||
- echo Example output
|
- echo Example output
|
||||||
|
|
||||||
- name: example-modules
|
- name: example-modules # Sample module demonstatrating importing local and remote modules
|
||||||
type: includes
|
type: includes
|
||||||
includes:
|
includes:
|
||||||
- modules/50-install-debs.yml
|
- modules/50-install-debs.yml # This is a local module present in this repository
|
||||||
|
- gh:vanilla-os/dev-image:main:modules/00-basics.yml # This is a remote module in the format: `gh:your-name/your-repo:branch:modules/file.yml`
|
||||||
|
|
||||||
# Put your custom actions before this comment
|
# Put your custom actions before this comment
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue