Skip to content

Commit

Permalink
add support to build only one of the recipies
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcelo Politzer committed Apr 26, 2023
1 parent a12ef2b commit 097dc56
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion bin/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ if [[ "X${1}" = "X" ]]; then
fi

fullversion="$1"
shift
. ${__dirname}/_decode_version.sh
decode "$fullversion"
# see _decode_version for all of the magic variables now set and available for use
Expand Down Expand Up @@ -65,7 +66,7 @@ docker run --rm \
> ${thislogdir}/fetch-source.log 2>&1

# Build all other recipes
for recipe in $recipes; do
for recipe in ${1:-$recipes}; do
# each recipe has 3 variable components:
# - individiaul ~/.ccache directory
# - a ~/node.tar.xz file that fetch-source has downloaded
Expand Down
3 changes: 2 additions & 1 deletion bin/prepare-images.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
__dirname="$(CDPATH= cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
image_tag_pfx=unofficial-build-recipe-

for recipe in $(ls ${__dirname}/../recipes/); do
recipes=${1:-$(ls ${__dirname}/../recipes/)}
for recipe in $recipes; do
docker build ${__dirname}/../recipes/${recipe}/ -t ${image_tag_pfx}${recipe} --build-arg UID=1000 --build-arg GID=1000
done

Expand Down

0 comments on commit 097dc56

Please sign in to comment.