Skip to content

Commit

Permalink
create a kinesis image
Browse files Browse the repository at this point in the history
  • Loading branch information
gvelez17 committed May 22, 2024
1 parent 50fb65f commit 9711d29
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 11 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/logs-to-tsdb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
5 changes: 3 additions & 2 deletions logs-to-tsdb/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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" ]

Original file line number Diff line number Diff line change
Expand Up @@ -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" ]

0 comments on commit 9711d29

Please sign in to comment.