Skip to content

Commit

Permalink
chore: add MODULE_DIRECTORY env var (#142)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
xynydev authored Mar 29, 2024
1 parent 8050ce7 commit fcc012b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions template/templates/Containerfile.j2
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"

Expand Down

0 comments on commit fcc012b

Please sign in to comment.