Skip to content

Commit

Permalink
[PCAPI] In Dockerfile instructions, add options to mount local AWS cr…
Browse files Browse the repository at this point in the history
…edentials on the PCAPI Docker.

Signed-off-by: Giacomo Marciani <[email protected]>
  • Loading branch information
gmarciani committed Dec 5, 2024
1 parent 19e5627 commit e644aa1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/docker/awslambda/docker-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ echo "Then you can use the following to send requests to the local endpoint"
echo " curl -XPOST \"http://localhost:9000/2015-03-31/functions/function/invocations\" -d @${SCRIPT_DIR}/test-events/event.json"
echo
echo "Use the following to run a local Flask development server hosting the API"
echo " docker run -p 8080:8080 --entrypoint python pcluster-lambda -m pcluster.api.flask_app"
echo " docker run -p 8080:8080 -v ~/.aws:/root/.aws:ro --entrypoint python pcluster-lambda -m pcluster.api.flask_app"
echo "Then you can navigate to the following url to test the API: http://0.0.0.0:8080/ui"
echo "Note that to enable swagger-ui you have to build the docker with '--build-arg PROFILE=dev'"

0 comments on commit e644aa1

Please sign in to comment.