Skip to content

Commit

Permalink
Merge de847b1 into 1de43b0
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewpearce-digital authored Jan 21, 2025
2 parents 1de43b0 + de847b1 commit c50f77c
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions cmd/trigger_build
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
trigger a build
Binary file removed docker/adot-collector/extensions/collector
Binary file not shown.
13 changes: 13 additions & 0 deletions docker/create-s3-replication-job/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
FROM golang:bullseye AS adot-builder
WORKDIR /app
RUN apt-get update && apt-get -y --no-install-recommends install \
git=1:2.30.2-1+deb11u3 \
zip=3.0-12 \
unzip=6.0-26+deb11u1 && \
git clone --recurse-submodules https://github.com/aws-observability/aws-otel-lambda.git
WORKDIR /app/aws-otel-lambda/go
RUN ./build.sh

FROM golang:1.23.5-alpine AS build

WORKDIR /app
Expand All @@ -17,6 +27,8 @@ WORKDIR /app
COPY --from=build /app/create-s3-replication-job /var/task/create-s3-replication-job
COPY --link lang ./lang
COPY --link ./docker/adot-collector/ /opt
COPY --from=adot-builder /app/aws-otel-lambda/opentelemetry-lambda/collector/build/extensions/collector /opt/extensions/collector

COPY --link docker/aws-lambda-rie ./aws-lambda-rie

ENV AWS_LAMBDA_EXEC_WRAPPER=/opt/otel-handler
Expand All @@ -35,6 +47,7 @@ RUN chmod +x "/app/install_lambda_insights.sh" \
COPY --from=build /app/create-s3-replication-job ./create-s3-replication-job
COPY --link lang ./lang
COPY --link ./docker/adot-collector/ /opt
COPY --from=adot-builder /app/aws-otel-lambda/opentelemetry-lambda/collector/build/extensions/collector /opt/extensions/collector

RUN chmod 755 /opt/config/config.yaml

Expand Down

0 comments on commit c50f77c

Please sign in to comment.