Add function for addins to generate Dockerfile header
This commit is contained in:
parent
41079cb7bf
commit
782f731350
1 changed files with 7 additions and 0 deletions
|
@ -29,6 +29,13 @@ to_df() {
|
||||||
to_df "FROM ${REGISTRY}/${REPO}/base-${TARGET}:latest AS base"
|
to_df "FROM ${REGISTRY}/${REPO}/base-${TARGET}:latest AS base"
|
||||||
to_df "ENV TARGET=$TARGET VARIANT=$VARIANT REPO=$REPO ADDINS_STR=$ADDINS_STR"
|
to_df "ENV TARGET=$TARGET VARIANT=$VARIANT REPO=$REPO ADDINS_STR=$ADDINS_STR"
|
||||||
|
|
||||||
|
for addin in "${ADDINS[@]}"; do
|
||||||
|
(
|
||||||
|
source addins/"${addin}.sh"
|
||||||
|
type ffbuild_dockeraddin &>/dev/null && ffbuild_dockeraddin
|
||||||
|
)
|
||||||
|
done
|
||||||
|
|
||||||
PREVLAYER="base"
|
PREVLAYER="base"
|
||||||
for ID in $(ls -1d scripts.d/??-* | sed -s 's|^.*/\(..\).*|\1|' | sort -u); do
|
for ID in $(ls -1d scripts.d/??-* | sed -s 's|^.*/\(..\).*|\1|' | sort -u); do
|
||||||
LAYER="layer-$ID"
|
LAYER="layer-$ID"
|
||||||
|
|
Loading…
Reference in a new issue