From 9711d290e3c7b0b4cee0f6472e1a9af099e39cd4 Mon Sep 17 00:00:00 2001 From: Golda Velez Date: Wed, 22 May 2024 00:27:58 -0700 Subject: [PATCH] create a kinesis image --- .github/workflows/logs-to-tsdb.yml | 9 +++------ logs-to-tsdb/Dockerfile | 5 +++-- .../{Dockerfile.kinesis => Dockerfile.old-lambda} | 5 ++--- 3 files changed, 8 insertions(+), 11 deletions(-) rename logs-to-tsdb/{Dockerfile.kinesis => Dockerfile.old-lambda} (70%) diff --git a/.github/workflows/logs-to-tsdb.yml b/.github/workflows/logs-to-tsdb.yml index 392f816..476be06 100644 --- a/.github/workflows/logs-to-tsdb.yml +++ b/.github/workflows/logs-to-tsdb.yml @@ -30,10 +30,7 @@ jobs: docker build -t 967314784947.dkr.ecr.us-east-2.amazonaws.com/data-pipes-logs:$IMAGE_TAG logs-to-tsdb/ docker push 967314784947.dkr.ecr.us-east-2.amazonaws.com/data-pipes-logs:$IMAGE_TAG - # Tag and push as "latest" - docker tag 967314784947.dkr.ecr.us-east-2.amazonaws.com/data-pipes-logs:$IMAGE_TAG 967314784947.dkr.ecr.us-east-2.amazonaws.com/data-pipes-logs:latest - docker push 967314784947.dkr.ecr.us-east-2.amazonaws.com/data-pipes-logs:latest - - # now build the kinesis one - temporary transition while we have both - docker build -f Dockerfile.kinesis -t 967314784947.dkr.ecr.us-east-2.amazonaws.com/data-pipes-logs:kinesis logs-to-tsdb/ + # Tag and push as "kinesis" for now + docker tag 967314784947.dkr.ecr.us-east-2.amazonaws.com/data-pipes-logs:$IMAGE_TAG 967314784947.dkr.ecr.us-east-2.amazonaws.com/data-pipes-logs:kinesis docker push 967314784947.dkr.ecr.us-east-2.amazonaws.com/data-pipes-logs:kinesis + diff --git a/logs-to-tsdb/Dockerfile b/logs-to-tsdb/Dockerfile index 61e687b..d61d0cc 100644 --- a/logs-to-tsdb/Dockerfile +++ b/logs-to-tsdb/Dockerfile @@ -6,8 +6,9 @@ WORKDIR ${LAMBDA_TASK_ROOT} COPY requirements.txt ${LAMBDA_TASK_ROOT} -COPY logs-lambda.py ${LAMBDA_TASK_ROOT} +COPY kinesis-lambda.py ${LAMBDA_TASK_ROOT} RUN pip install -r requirements.txt -CMD [ "logs-lambda.handler" ] +CMD [ "kinesis-lambda.handler" ] + diff --git a/logs-to-tsdb/Dockerfile.kinesis b/logs-to-tsdb/Dockerfile.old-lambda similarity index 70% rename from logs-to-tsdb/Dockerfile.kinesis rename to logs-to-tsdb/Dockerfile.old-lambda index d61d0cc..61e687b 100644 --- a/logs-to-tsdb/Dockerfile.kinesis +++ b/logs-to-tsdb/Dockerfile.old-lambda @@ -6,9 +6,8 @@ WORKDIR ${LAMBDA_TASK_ROOT} COPY requirements.txt ${LAMBDA_TASK_ROOT} -COPY kinesis-lambda.py ${LAMBDA_TASK_ROOT} +COPY logs-lambda.py ${LAMBDA_TASK_ROOT} RUN pip install -r requirements.txt -CMD [ "kinesis-lambda.handler" ] - +CMD [ "logs-lambda.handler" ]