From f5d24df11b26dea3e1005fd968969a8bca61b416 Mon Sep 17 00:00:00 2001 From: xyny <60004820+xynydev@users.noreply.github.com> Date: Fri, 29 Mar 2024 11:13:53 +0000 Subject: [PATCH] chore: add MODULE_DIRECTORY env var This exists in the legacy template: https://github.com/blue-build/legacy-template/blob/489ebea77b79bd722679352bf8c75f185562e3b6/build.sh#L13C1-L13C39 And is also used in many modules, though with `MODULE_DIRECTORY="${MODULE_DIRECTORY:-"/tmp/modules"}"` to not break things. And is documented on the website, because I assumed it existed: https://blue-build.org/reference/module/#module_directory I know this probably won't change much, but it's still useful for the scripts. --- template/templates/Containerfile.j2 | 1 + 1 file changed, 1 insertion(+) diff --git a/template/templates/Containerfile.j2 b/template/templates/Containerfile.j2 index a7afaf30..2ca58d75 100644 --- a/template/templates/Containerfile.j2 +++ b/template/templates/Containerfile.j2 @@ -14,6 +14,7 @@ ARG RECIPE={{ recipe_path.display() }} ARG IMAGE_REGISTRY={{ registry }} ARG CONFIG_DIRECTORY="/tmp/config" +ARG MODULE_DIRECTORY="/tmp/modules" ARG IMAGE_NAME="{{ recipe.name }}" ARG BASE_IMAGE="{{ recipe.base_image }}"