Giter Site home page Giter Site logo

sls_py_container's Introduction

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

$ cp .env.example .env

Prepare configs for aws-cli (if it is necessary)

$ 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'

$ 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.

sls_py_container's People

Contributors

siruku6 avatar

Watchers

 avatar

sls_py_container's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.