feat: add python and make (#9)
Deploy / build (push) Successful in 18m22s

- add python and make to the base images
- remove make, python and jq from images derived from base

Reviewed-on: https://git.query.consul/unkin/packer-images/pulls/9
This commit was merged in pull request #9.
This commit is contained in:
2025-03-09 17:50:37 +11:00
parent f92b6f13ff
commit eb1aee35c5
10 changed files with 38 additions and 26 deletions
+14 -3
View File
@@ -20,16 +20,27 @@ DIRS := $(shell find $(IMAGES_PATH) -mindepth 3 -maxdepth 3 -type d | sed 's|$(I
default: clean
./ci/build.sh
# Make all images
# Separate base images from others
BASE_IMAGES = $(filter %/base,$(DIRS))
OTHER_IMAGES = $(filter-out %/base,$(DIRS))
# Make all images, ensuring base images build first
all:
@for dir in $(DIRS); do \
@for dir in $(BASE_IMAGES); do \
$(MAKE) $$dir; \
done
@for dir in $(OTHER_IMAGES); do \
$(MAKE) $$dir; \
done
# List all directories
list:
@echo "Images:"
@for dir in $(DIRS); do \
@for dir in $(BASE_IMAGES); do \
echo " '$$dir'"; \
done
@for dir in $(OTHER_IMAGES); do \
echo " '$$dir'"; \
done