Code Monkey home page Code Monkey logo

docker_helper's Introduction

docker_helper

Es un helper script para facilitar la tarea de dockerizar un entorno Laravel/Lumen especialmente.

Permite generar una imagen en modos de desarrollo y producción. En modo de desarrollo puedes ver reflejados los cambios en tiempo real. También permite o facilita la tarea de publicar una imagen a un repositorio AWS ECR, así como ejecutar ciertas tareas extras, tales como:

  • Ejecutar en dispositivo (Android), para ello debes tener instalado ngrok.
  • Ejecutar en modo desarrollo con consola del contenedor para interactuar directamente con este.
  • Obfuscar y de-obfuscar controladores utilizando yakpro.
  • hacer pull a una imagen y correr el contenedor indistintamente si corresponde a tu proyecto o no. (puede ser una imagen externa).

Documentation

bash start <COMMAND> <OPTIONS>

bash start [--dev | --prod | --aws | -run=<container> | --obfuscate | --deobfuscate] [--bash | --adb | -port]

COMANDS

-e=<environment>    : Environment (dev|prod|aws)
--dev               : Development environment (localhost:80)
--prod              : Production environment
--aws               : Publish a production image to AWS repository

-r=<container:tag>  : Run a container
-run=<container:tag>
--obfuscate         : Obfuscate the code
--deobfuscate       : Deobfuscate the code

OPTIONS

-u=<url>            : URL to open on device, emulator or browser. Must use with ngrok.
-p=<port>           : Port to run the server
--adb               : Launch ADB on connected device or emulator with the given url
-b | --bash         : Launch bash on container
-h | --help         : Show this help

Usage/Examples

Builds a production ready docker image and push it to AWS ECR with specified tag.

bash start --aws  

Runs a docker container with the specified tag.

bash start -run=<container:tag>  

By default PORT is 80 and URL is http://localhost for development and production environments.

Authors

Badges

MIT License

Support

For support, email [email protected].

docker_helper's People

Contributors

cjguajardo avatar

Watchers

 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.