Skip to content

Commit 0f21d7e

Browse files
jmsundarclaude
andauthored
Plan B: Makefile package-extend target [DEVOPS-2394] (#2)
Co-authored-by: Claude Haiku 4.5 <noreply@anthropic.com>
1 parent 8a4d48e commit 0f21d7e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

collector/Makefile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,15 @@ package: build
4545
cp config* $(BUILD_SPACE)/collector-config
4646
cd $(BUILD_SPACE) && zip -r opentelemetry-collector-layer-$(GOARCH).zip collector-config extensions
4747

48+
.PHONY: package-extend
49+
package-extend: build
50+
@echo Packaging Extend collector layer
51+
mkdir -p $(BUILD_SPACE)/collector-config
52+
cp ../extend/collector-config-cx-only.yaml $(BUILD_SPACE)/collector-config/config.yaml
53+
cp ../extend/collector-config-cx-arize.yaml $(BUILD_SPACE)/collector-config/
54+
cp ../extend/collector-config-cx-arize-s3.yaml $(BUILD_SPACE)/collector-config/
55+
cd $(BUILD_SPACE) && zip -r opentelemetry-collector-layer-$(GOARCH).zip collector-config extensions
56+
4857
.PHONY: publish
4958
publish:
5059
aws lambda publish-layer-version --layer-name $(LAYER_NAME) --zip-file fileb://$(BUILD_SPACE)/opentelemetry-collector-layer-$(GOARCH).zip --compatible-runtimes nodejs14.x nodejs16.x nodejs18.x java11 python3.8 python3.9 python3.10 python3.11 --query 'LayerVersionArn' --output text

0 commit comments

Comments
 (0)