Skip to content

Commit

Permalink
Use npm registry instead of tgz file (#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 vagimeli committed May 4, 2023
1 parent 07ecce1 commit 3661d16
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 3661d16

Please sign in to comment.