Skip to content

sugimuracraft/chalice-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

chalice-docker

Descripstions

Setup

Put AWS Credentials

chalice-docker/
  .aws/
    config
    credentials
[default]
region=ap-northeast-1
output=json
[default]
aws_access_key_id={your-aws-access-key}
aws_secret_access_key={your-aws-secret-access-key}

Install python packages for write code

$ python3.8 -m venv venv
$ . venv/bin/activate
(venv)% pip install -r src/backend/requirements.txt

Control with make command.

Create Docker Container with Docker Compose

Start as daemon on local with port 4300.

$ make up

Stop container

$ make down

Deploy to AWS.

Deploy as development stage.

$ make deploy

Development

Access from local

$ curl -X GET \
    localhost:4300/
$ curl -X GET \
    localhost:4300/hello/chalice
$ curl -X POST \
    -H "Content-Type: application/json" \
    -d '{"Name":"foo", "Age":"25"}' \
    localhost:4300/users

About

The environment of chalice with doker.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published