-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update documentation, add dokcer compose
- Loading branch information
1 parent
7902cff
commit 1578f98
Showing
5 changed files
with
51 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
services: | ||
sam: | ||
image: public.ecr.aws/sam/build-python3.12:1.112.0-20240313001228 | ||
container_name: pokemon-api-local | ||
ports: | ||
- "8000:8000" | ||
volumes: | ||
- .:$PWD | ||
- /var/run/docker.sock:/var/run/docker.sock | ||
- ~/.aws/:/root/.aws:ro | ||
working_dir: $PWD | ||
entrypoint: ["/bin/sh", "-c", "./run-local-api.sh"] |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/sh | ||
|
||
sam build | ||
|
||
sam local start-api \ | ||
--profile {your-aws-profile} \ | ||
--container-host host.docker.internal \ | ||
--skip-pull-image \ | ||
--host 0.0.0.0 \ | ||
--port 8000 \ | ||
--container-host-interface 0.0.0.0 |