This provides the virtualhost environment which enables you to develop serverless-application with python.
This container provides followings to you
- node
- npm
- python
- aws-cli
- serverless
You need to install the following packages on your Host OS.
- docker
- docker-compose
$ cp .env.example .env
$ cp conf/aws/config.example conf/aws/config
$ cp conf/aws/credentials.example conf/aws/credentials
And edit these files.
$ cp docker-compose.yml docker-compose.override.yml
And edit docker-compose.override.yml For example, comment in the section of 'dynamodb'
$ docker-compose build
$ docker-compose up
And then, you can connect port 222 via ssh!
You can customize some settings with following Environment Variables on .env
.
Variable Name | Example | Description |
---|---|---|
OPEN_PORT | 3000 | If you would like to open any port, for example, which is accessible from your local web browser, you can set the number of that port here. |
VIRTUAL_HOST_SSH_PORT | 222 | This is the number of the port for SSH access. You can access the virtual host machine made of docker container via this port. |
PERSONAL_ACCESS_TOKEN | ghp_x34x | Set your 'Personal Access Token' for github if you're gonna use the token in virtual host made of docker container. Then it'll be written in .netrc automaticallywhen you run docker-compose build . |