Giter Site home page Giter Site logo

ph3nol / docker-arch Goto Github PK

View Code? Open in Web Editor NEW
29.0 2.0 2.0 10.84 MB

Generate Web/CLI projects Dockerized development environments, from 1 simple YAML file.

Home Page: https://ph3nol.github.io/Docker-Arch/

License: MIT License

PHP 75.61% HTML 23.44% Makefile 0.23% Shell 0.53% Dockerfile 0.19%
docker docker-compose generator devops developer-tools docker-sync docker-arch docker-image

docker-arch's Introduction

Docker-Arch(itect)

Latest Stable Version License Total Downloads Build Status

SensioLabsInsight

Demonstration

Basic Demo

User Docker-Arch from dedicated Docker image (recommanded)

From dedicated Docker image.

docker pull ph3nol/docker-arch

Use Docker-Arch from local installation (PHP 7.1+ required)

curl -sSL https://raw.githubusercontent.com/Ph3nol/Docker-Arch/master/install.sh | sh

Docker-Arch environment generation

Go to your project root directory and create/edit .docker-arch.yml file see examples.

Then generate your Docker environment:

docker run -it -v $(PWD):/destination ph3nol/docker-arch:latest generate /destination

Finally, use .docker-arch/do script, from the project, for somes actions:

.docker-arch/do build    # Build containers (like `docker-compose up --build -d`)
.docker-arch/do start    # Start containers (like `docker-compose up -d`)
.docker-arch/do shell    # Access a container Shell
.docker-arch/do ui       # Access generated UI that provides you Docker environment informations
.docker-arch/do dc       # Access `docker-compose` with your configuration, for specific requests
.docker-arch/do stop     # Stop containers (like `docker-compose stop`)
.docker-arch/do clean    # Stop/Remove containers and reset linked volumes
...

To use the Docker image so fast, you can use these aliases/functions:

Unixy

function docker-arch {
    case "$1" in
        *)
            if [ -z $2 ]; then DESTINATION_PATH=$PWD; else DESTINATION_PATH=$2; fi
            if [[ "$DESTINATION_PATH" == "." ]]; then DESTINATION_PATH=$PWD; fi

            docker run -it -v $DESTINATION_PATH:/destination ph3nol/docker-arch:latest generate /destination
            ;;
    esac
}

Windows

// ~/Documents/WindowsPowerShell/Microsoft.PowerShell_profile.ps1

function docker-arch ([String] $Destination = $PWD) {
  docker run --rm -it -v "${Destination}:/destination" ph3nol/docker-arch:latest generate /destination
}

To do

  • Improve documentation
  • Add new Services/DockerContainers - Feel free to contribute! :)
  • Write fucking unit Tests (Atoum powered)

docker-arch's People

Contributors

airtonix avatar anivon avatar ph3nol avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

anivon karousn

docker-arch's Issues

User guide

Hi, I would like to use it but for now it gives me more questions than answers so it's better to stick with docker-compose. You should at least give all arguments we can use in docker-arch.yml :)

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.