Skip to content

Commit

Permalink
Use npm registry instead of tgz file (opensearch-project#2754)
Browse files Browse the repository at this point in the history
Signed-off-by: Rupal Mahajan <[email protected]>
  • Loading branch information
rupal-bq authored and harshavamsi committed Oct 31, 2023
1 parent 152b667 commit b52b027
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions _dashboards/reporting-cli/rep-cli-lambda.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,7 @@ RUN apt-get update && \

# Copy function code
WORKDIR ${FUNCTION_DIR}
RUN curl -LJO https://artifacts.opensearch.org/reporting-cli/opensearch-reporting-cli-1.0.0.tgz
RUN tar -xzf opensearch-reporting-cli-1.0.0.tgz
RUN mv package/* .
RUN npm install && npm install aws-lambda-ric
RUN npm install @opensearch-project/reporting-cli && npm install aws-lambda-ric

# Build Stage 2: Copy Build Stage 1 files in to Stage 2. Install chrome, then remove chrome to keep the dependencies.
FROM node:lts-slim
Expand All @@ -81,7 +78,7 @@ RUN apt-get update \
ENTRYPOINT ["/usr/local/bin/npx", "aws-lambda-ric"]

ENV HOME="/tmp"
CMD [ "/function/src/index.handler" ]
CMD [ "/function/node_modules/@opensearch-project/reporting-cli/src/index.handler" ]

```

Expand Down

0 comments on commit b52b027

Please sign in to comment.