Skip to content

Commit 7831b7f

Browse files
committed
use public ecr images (#94)
*Issue #, if available:* *Description of changes:* Replace the docker hub images with public ECR images. By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice. use public ecr images (#94) *Issue #, if available:* *Description of changes:* Replace the docker hub images with public ECR images. By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
1 parent 5799696 commit 7831b7f

File tree

7 files changed

+11
-10
lines changed

7 files changed

+11
-10
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Stage 1: Install ADOT nodejs instrumentation in the /operator-build folder
2-
FROM node:20 AS build
2+
FROM public.ecr.aws/docker/library/node:20 AS build
33

44
# Build the ADOT JS SDK Tarball: aws-aws-distro-opentelemetry-node-autoinstrumentation-x.y.z.tgz
55
WORKDIR /adot-js-build
@@ -18,7 +18,7 @@ RUN npm install aws-aws-distro-opentelemetry-node-autoinstrumentation-$(node -p
1818
RUN npm install
1919

2020
# Stage 2: Build the cp-utility binary
21-
FROM rust:1.75 as builder
21+
FROM public.ecr.aws/docker/library/rust:1.75 as builder
2222

2323
WORKDIR /usr/src/cp-utility
2424
COPY ./tools/cp-utility .

aws-distro-opentelemetry-node-autoinstrumentation/src/aws-opentelemetry-configurator.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,10 @@ export class AwsOpentelemetryConfigurator {
257257
// Register BatchUnsampledSpanProcessor to export unsampled traces in Lambda
258258
// when Application Signals enabled
259259
if (isLambdaEnvironment() && !hasCustomOtlpTraceEndpoint()) {
260-
const udpSpanExporter = new OTLPUdpSpanExporter(getXrayDaemonEndpoint(), FORMAT_OTEL_UNSAMPLED_TRACES_BINARY_PREFIX);
260+
const udpSpanExporter = new OTLPUdpSpanExporter(
261+
getXrayDaemonEndpoint(),
262+
FORMAT_OTEL_UNSAMPLED_TRACES_BINARY_PREFIX
263+
);
261264
const configuredExporter = AwsMetricAttributesSpanExporterBuilder.create(udpSpanExporter, resource).build();
262265
spanProcessors.push(
263266
new AwsBatchUnsampledSpanProcessor(configuredExporter, {

contract-tests/images/applications/aws-sdk/Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# Use an official Node.js runtime as the base image
2-
FROM node:20-alpine
3-
#FROM node:20
2+
FROM public.ecr.aws/docker/library/node:20-alpine
43

54
# Set the working directory inside the container
65
WORKDIR /aws-sdk

contract-tests/images/applications/http/Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# Use an official Node.js runtime as the base image
2-
FROM node:20-alpine
3-
#FROM node:20
2+
FROM public.ecr.aws/docker/library/node:20-alpine
43

54
# Set the working directory inside the container
65
WORKDIR /http

contract-tests/images/applications/mongodb/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Use an official Node.js runtime as the base image
2-
FROM node:20-alpine
2+
FROM public.ecr.aws/docker/library/node:20-alpine
33

44
# Set the working directory inside the container
55
WORKDIR /mongodb

contract-tests/images/applications/mongoose/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Use an official Node.js runtime as the base image
2-
FROM node:20-alpine
2+
FROM public.ecr.aws/docker/library/node:20-alpine
33
#FROM node:20
44

55
# Set the working directory inside the container

contract-tests/images/applications/mysql2/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Use an official Node.js runtime as the base image
2-
FROM node:20-alpine
2+
FROM public.ecr.aws/docker/library/node:20-alpine
33

44
# Set the working directory inside the container
55
WORKDIR /mysql2

0 commit comments

Comments
 (0)