Removed build dependency on jq
This commit is contained in:
18
makefile
18
makefile
@@ -148,7 +148,11 @@ $(BUILD_BASE_STAMP): $(BUILD_BASE_DEPS) | $(OUT_DIR)
|
||||
--build-arg APT_PROXY=$(APT_PROXY) \
|
||||
--build-arg TAG=$(TAG) \
|
||||
-t $(DOCKER_IMAGE_ROOT)/build-base:$(TAG) .
|
||||
@iid=$$(docker image inspect monok8s/build-base:$(TAG) | jq -r '.[].Id' | cut -d':' -f2 | cut -c -8); \
|
||||
@iid=$$(docker image inspect \
|
||||
--format '{{.Id}}' \
|
||||
$(DOCKER_IMAGE_ROOT)/build-base:$(TAG) \
|
||||
| cut -d':' -f2 \
|
||||
| cut -c -8); \
|
||||
docker tag monok8s/build-base:$(TAG) monok8s/build-base:$$iid; \
|
||||
touch $@
|
||||
|
||||
@@ -181,7 +185,11 @@ $(CLITOOLS_BIN): $(CLITOOLS_SRCS)
|
||||
$(MAKE) -C clitools build-agent
|
||||
|
||||
vpp: $(BUILD_BASE_STAMP) $(VPP_TAR) $(DPDK_TAR) $(FMLIB_TAR) $(FMC_TAR) $(NXP_TAR)
|
||||
@build_base_tag=$$(docker image inspect $(DOCKER_IMAGE_ROOT)/build-base:$(TAG) | jq -r '.[0].Id' | cut -d':' -f2 | cut -c -8); \
|
||||
@build_base_tag=$$(docker image inspect \
|
||||
--format '{{.Id}}' \
|
||||
$(DOCKER_IMAGE_ROOT)/build-base:$(TAG) \
|
||||
| cut -d':' -f2 \
|
||||
| cut -c -8); \
|
||||
@mkdir -p $(OUT_DIR)/vpp
|
||||
docker build \
|
||||
-f docker/vpp.Dockerfile \
|
||||
@@ -220,7 +228,11 @@ $(BOARD_ITB): $(ITB_DEPS) | $(OUT_DIR)
|
||||
test -f $@
|
||||
|
||||
$(RELEASE_IMAGE): $(RELEASE_DEPS) $(DOWNLOAD_PACKAGES_STAMP) | $(OUT_DIR)
|
||||
@build_base_tag=$$(docker image inspect $(DOCKER_IMAGE_ROOT)/build-base:$(TAG) | jq -r '.[0].Id' | cut -d':' -f2 | cut -c -8); \
|
||||
@build_base_tag=$$(docker image inspect \
|
||||
--format '{{.Id}}' \
|
||||
$(DOCKER_IMAGE_ROOT)/build-base:$(TAG) \
|
||||
| cut -d':' -f2 \
|
||||
| cut -c -8); \
|
||||
docker build \
|
||||
-f docker/alpine.Dockerfile \
|
||||
--no-cache \
|
||||
|
||||
Reference in New Issue
Block a user