https://github.com/siruku6/sls_py_container
https://github.com/siruku6/sls_py_container
docker docker-compose dynamodb-local python3 serverless-framework
Last synced: 23 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/siruku6/sls_py_container
- Owner: siruku6
- License: mit
- Created: 2020-05-26T09:08:37.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-06T11:12:51.000Z (almost 3 years ago)
- Last Synced: 2025-01-12T12:31:54.228Z (11 months ago)
- Topics: docker, docker-compose, dynamodb-local, python3, serverless-framework
- Language: Dockerfile
- Homepage:
- Size: 23.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# sls_py_container
## Overview
This provides the virtualhost environment which enables you to develop serverless-application with python.
## Description
This container provides followings to you
- node
- npm
- python
- aws-cli
- serverless
## Requirement
You need to install the following packages on your Host OS.
- docker
- docker-compose
## Build Environment
### Prepare .env
```bash
$ cp .env.example .env
```
### Prepare configs for aws-cli (if it is necessary)
```bash
$ cp conf/aws/config.example conf/aws/config
$ cp conf/aws/credentials.example conf/aws/credentials
```
And edit these files.
### Prepare docker-compose.override.yml
```
$ cp docker-compose.yml docker-compose.override.yml
```
And edit docker-compose.override.yml
For example, comment in the section of 'dynamodb'
```bash
$ docker-compose build
$ docker-compose up
```
And then, you can connect port 222 via ssh!
## Customize
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` automatically
when you run `docker-compose build`.|