test
This commit is contained in:
2
bases/retrodebian-common/builder/Dockerfile
Normal file
2
bases/retrodebian-common/builder/Dockerfile
Normal file
@@ -0,0 +1,2 @@
|
||||
FROM retrodebian/package-builder-etch
|
||||
RUN echo "Are you here ?"
|
||||
1
bases/retrodebian-common/chroot/README-common-base.txt
Normal file
1
bases/retrodebian-common/chroot/README-common-base.txt
Normal file
@@ -0,0 +1 @@
|
||||
Common base chroot payload.
|
||||
33
bases/retrodebian-common/entry.py
Normal file
33
bases/retrodebian-common/entry.py
Normal file
@@ -0,0 +1,33 @@
|
||||
#!/usr/bin/env python3
|
||||
from __future__ import annotations
|
||||
|
||||
import sys
|
||||
from pathlib import Path
|
||||
|
||||
THIS_FILE = Path(__file__).resolve()
|
||||
PROJECT_ROOT = THIS_FILE.parents[2]
|
||||
PY_ROOT = PROJECT_ROOT / 'builder' / 'py'
|
||||
if str(PY_ROOT) not in sys.path:
|
||||
sys.path.insert(0, str(PY_ROOT))
|
||||
|
||||
from retrobuilder.context import BuildContext
|
||||
from retrobuilder.entrypoints import BaseEntry, cli_dispatch
|
||||
from retrobuilder.model import BaseSpec
|
||||
|
||||
SPEC = BaseSpec(
|
||||
description='Common inherited base resources shared by concrete bases.',
|
||||
docker_overrides={
|
||||
'pre-feature': {'dockerfile': 'bases/retrodebian-common/builder/Dockerfile'},
|
||||
'post-feature': {'dockerfile': 'bases/retrodebian-common/builder/Dockerfile'},
|
||||
},
|
||||
)
|
||||
|
||||
|
||||
class Entry(BaseEntry):
|
||||
def pre_gen(self, ctx: BuildContext) -> None:
|
||||
print("PRE GEN !!")
|
||||
def post_gen(self, ctx: BuildContext) -> None:
|
||||
print("POST GEN !!")
|
||||
|
||||
if __name__ == '__main__':
|
||||
raise SystemExit(cli_dispatch(SPEC, Entry))
|
||||
2
bases/retrodebian-common/entry.sh
Normal file
2
bases/retrodebian-common/entry.sh
Normal file
@@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
exit 0
|
||||
8
bases/retrodebian-common/generate.sh
Normal file
8
bases/retrodebian-common/generate.sh
Normal file
@@ -0,0 +1,8 @@
|
||||
#!/bin/sh
|
||||
set -eu
|
||||
SCRIPT_DIR=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)
|
||||
MODULE_NAME=$(basename "$SCRIPT_DIR")
|
||||
: "${CURRENT_MODULE_ARTIFACT_DIR:?CURRENT_MODULE_ARTIFACT_DIR is required}"
|
||||
mkdir -p "$CURRENT_MODULE_ARTIFACT_DIR/generated"
|
||||
printf 'generated base %s\n' "$MODULE_NAME" > "$CURRENT_MODULE_ARTIFACT_DIR/generated/from-generate.txt"
|
||||
exit 0
|
||||
2
bases/retrodebian-common/hooks/05-common-base.sh
Normal file
2
bases/retrodebian-common/hooks/05-common-base.sh
Normal file
@@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
echo "common-base live hook"
|
||||
2
bases/retrodebian-common/packageslists/common-base.list
Normal file
2
bases/retrodebian-common/packageslists/common-base.list
Normal file
@@ -0,0 +1,2 @@
|
||||
# common-base package list
|
||||
nano
|
||||
0
profiles/retrodebian-common
Normal file
0
profiles/retrodebian-common
Normal file
Reference in New Issue
Block a user