Giter VIP home page Giter VIP logo

ebdocker's Introduction

ebdocker

Deploy utilities for Django apps on AWS Elastic Beanstalk Multicontainer Docker

Used for django apps that have the following container architecture:

  • web
  • nginx
  • worker (optional)

Files

  • bin/:
    • build_and_push: Build images and push to container registry (i.e. ECR)
    • deploy: Generate Dockerrun.aws.json and deploy using EB CLI
    • head_commit: Helper script to get current head commit hash of the app
  • scripts:
    • generate_dockerrun_aws_json.py: Used by bin/deploy to generate Dockerrun.aws.json file
  • nginx
    • Dockerfile: Dockerfile that can be used to build nginx image

Configuration

Environment variables

An .env file should be set up (working directory where these scripts will be called from; typically not in this repo) which should include:

  • ECR_REGISTRY
  • AWS_DEFAULT_REGION
  • APP_IMAGE
  • APP_CONTEXT
  • APP_DOCKERFILE
  • NGINX_IMAGE
  • NGINX_CONTEXT
  • NGINX_DOCKERFILE
  • APP_SETTINGS_DOCKERFILE
  • EBDOCKER_CONTEXT
  • DOCKERRUN_TEMPLATE

Example .env file:

ECR_REGISTRY=361808764124.dkr.ecr.us-east-1.amazonaws.com
AWS_DEFAULT_REGION=us-east-1
APP_IMAGE=361808764124.dkr.ecr.us-east-1.amazonaws.com/bridge/app
APP_CONTEXT=/Users/me/bridge-adaptivity/bridge_adaptivity
APP_DOCKERFILE=/Users/me/ebdeploy-bridge-adaptivity/app/Dockerfile
NGINX_IMAGE=361808764124.dkr.ecr.us-east-1.amazonaws.com/bridge/nginx
NGINX_CONTEXT=nginx
NGINX_DOCKERFILE=ebdocker/nginx/Dockerfile
APP_SETTINGS_DOCKERFILE=/Users/me/ebdeploy-bridge-adaptivity/app/Dockerfile_settings
EBDOCKER_CONTEXT=/Users/me/ebdocker
DOCKERRUN_TEMPLATE=/Users/me/ebdeploy-bridge-adaptivity/dockerrun/Dockerrun.aws.template.json

ebdocker's People

Watchers

James Cloos avatar Andrew Ang avatar  avatar

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.