@@ -157,6 +157,15 @@ ANALYZE_ARGS ?= --fast --verbose
157
157
analyze : # # Run golangci-lint. Override options with ANALYZE_ARGS.
158
158
GOTOOLCHAIN=$(GOTOOLCHAIN ) $(GOLANGCI_LINT ) run $(ANALYZE_ARGS ) ./...
159
159
160
+
161
+ # ----------------------------------------------------------------------------
162
+ # Info
163
+ # ----------------------------------------------------------------------------
164
+ .PHONY : envoyversion
165
+ envoyversion : ENVOY_VERSION_TAG ?= $(shell echo $(ENVOY_IMAGE ) | cut -d':' -f2)
166
+ envoyversion :
167
+ echo " Version is $( ENVOY_VERSION_TAG) "
168
+ echo " Commit for envoyproxy is $( shell curl -s https://raw.githubusercontent.com/solo-io/envoy-gloo/refs/tags/v$( ENVOY_VERSION_TAG) /bazel/repository_locations.bzl | grep " envoy =" -A 4 | grep commit | cut -d' "' -f2) "
160
169
# ----------------------------------------------------------------------------------
161
170
# Ginkgo Tests
162
171
# ----------------------------------------------------------------------------------
@@ -443,15 +452,16 @@ ENVOYINIT_OUTPUT_DIR=$(OUTPUT_DIR)/$(ENVOYINIT_DIR)
443
452
export ENVOYINIT_IMAGE_REPO ?= envoy-wrapper
444
453
445
454
$(ENVOYINIT_OUTPUT_DIR ) /envoyinit-linux-$(GOARCH ) : $(ENVOYINIT_SOURCES )
446
- $(GO_BUILD_FLAGS ) GOOS=linux go build -ldflags=' $(LDFLAGS)' -gcflags=' $(GCFLAGS)' -o $@ ./cmd /envoyinit/...
455
+ $(GO_BUILD_FLAGS ) GOOS=linux go build -ldflags=' $(LDFLAGS)' -gcflags=' $(GCFLAGS)' -o $@ ./internal /envoyinit/cmd /...
447
456
448
457
.PHONY : envoyinit
449
458
envoyinit : $(ENVOYINIT_OUTPUT_DIR ) /envoyinit-linux-$(GOARCH )
450
459
451
- $(ENVOYINIT_OUTPUT_DIR ) /Dockerfile.envoyinit : cmd/envoyinit/Dockerfile.envoyinit
460
+ # TODO(nfuden) cheat the process for now with -r but try to find a cleaner method
461
+ $(ENVOYINIT_OUTPUT_DIR ) /Dockerfile.envoyinit : internal/envoyinit/Dockerfile.envoyinit
452
462
cp $< $@
453
463
454
- $(ENVOYINIT_OUTPUT_DIR ) /docker-entrypoint.sh : cmd /envoyinit/docker-entrypoint.sh
464
+ $(ENVOYINIT_OUTPUT_DIR ) /docker-entrypoint.sh : internal /envoyinit/cmd /docker-entrypoint.sh
455
465
cp $< $@
456
466
457
467
.PHONY : envoy-wrapper-docker
@@ -461,7 +471,7 @@ envoy-wrapper-docker: $(ENVOYINIT_OUTPUT_DIR)/envoyinit-linux-$(GOARCH) $(ENVOYI
461
471
--build-arg ENVOY_IMAGE=$(ENVOY_IMAGE ) \
462
472
-t $(IMAGE_REGISTRY ) /$(ENVOYINIT_IMAGE_REPO ) :$(VERSION )
463
473
464
- $(ENVOYINIT_OUTPUT_DIR ) /Dockerfile.envoyinit.distroless : cmd /envoyinit/Dockerfile.envoyinit.distroless
474
+ $(ENVOYINIT_OUTPUT_DIR ) /Dockerfile.envoyinit.distroless : internal /envoyinit/Dockerfile.envoyinit.distroless
465
475
cp $< $@
466
476
467
477
# Explicitly specify the base image is amd64 as we only build the amd64 flavour of envoy
0 commit comments