Giter Site home page Giter Site logo

iconifyit / magento-aws-cf Goto Github PK

View Code? Open in Web Editor NEW

This project forked from smileinnovation/magento-aws-cf

0.0 1.0 0.0 263 KB

How to build and deploy a full magento stack in AWS with ECS and cloudformation

License: Apache License 2.0

Makefile 6.29% Shell 93.71%

magento-aws-cf's Introduction

0) Docker resource

On my Mac, docker daemon was setup to use 6G of Ram and at least 2 CPU cores

1) Base images

# make

2) Start dev mode

2.1) Project data

  • Put any sql dump file ( *.sql ) in a specific folder (i.e. ./data/dev/db) and update docker-compose-dev.yml line 16 to target this folder
  • Put media resource in in a specific folder (i.e. ./data/dev/media) and update docker-compose-dev.yml file to add a volume for each media subfolder (line 92)

2.2) Run dev mode

  • Put your mangento project in your favorite folder

  • run composer install from this folder

  • update docker-compose-dev.yml to add a volume targeting the magento project folder (line 91)

  • then run start-dev.sh

  • after start-up, go to http://localhost

  • to get access to cli :

    # docker exec -it <magento-node-container-name> bash
    # bin/magento xyz
    

3) Release a production container

3.2) project data

  • Put any sql dump file ( *.sql ) ./data/prod/db
  • Put media resource in ./data/prod/media and update docker-compose-dev.yml file to add a volume for each media subfolder (line 92)

3.1) Run prod mode

  • as an example, put your magento project into ./docker/smileshop/src . For cronjob, same stuff but with ./docker/smileshop/cron

  • run :

    # make smileshop
    
  • to start it locally :

    # docker-compose -f ./docker-compose-prod.yml up
    

4) Delete stack and all volumes

# docker-compose down -v

5) Misc stuff :

5.1) launch re-index :

# docker exec -it <magento container> bash
# bin/magento indexer:reindex

5.2) Magento repository credential :

# composer config --global http-basic.repo.magento.com login password

magento-aws-cf's People

Contributors

alrouen avatar

Watchers

James Cloos 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.