Skip to content

Commit

Permalink
CMR-9259-browse-scaler: update ReadMe
Browse files Browse the repository at this point in the history
  • Loading branch information
eudoroolivares2016 committed Jun 21, 2023
1 parent 5a40f52 commit 6d3d79a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion browse-scaler/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ For example `jest cmr.test.js` will run that test file. Test output is produced

# Testing locally

The lambda can be executed locally using Docker and the amazon/aws-lambda-nodejs:18 image. Run the following in `browse-scaler root directory` (It must be run on the root dir if you get an error `Error: Cannot find module 'index'` it is likely that you tried to start it up in the `/src` dir) to start the lambda in docker and listening on host port 9000. In order ot have active cache you must spin up your own redis docker container. This can be done with: `docker container run -p 6379:6379 redis:7` note if this is not installed on your machine initially, docker will pull down the image.
The lambda can be executed locally using Docker and the amazon/aws-lambda-nodejs:18 image. Run the following in `browse-scaler root directory` (It must be run on the root dir if you get an error `Error: Cannot find module 'index'` it is likely that you tried to start it up in the `/src` dir) to start the lambda in docker and listening on host port 9000. In order ot have active cache you must spin up your own redis docker container. This can be done with: `docker container run -p 6379:6379 redis:bullseye-7` note if this is not installed on your machine initially, docker will pull down the image.

```
docker run --rm \
Expand Down

0 comments on commit 6d3d79a

Please sign in to comment.