ph3nol / docker-arch
Generate Web/CLI projects Dockerized environments, from 1 simple YAML file.
Installs: 10
Dependents: 0
Suggesters: 0
Security: 0
Stars: 30
Watchers: 2
Forks: 2
Open Issues: 3
Type:standalone
Requires
- php: >=7.1
- cocur/slugify: ^3.0
- monolog/monolog: ^1.23
- symfony/console: ~3.3
- symfony/dotenv: ^3.3
- symfony/filesystem: ^3.3
- symfony/options-resolver: ^3.3
- symfony/yaml: ~3.3
- twig/twig: ^1.0||^2.0
Requires (Dev)
- edgedesign/phpqa: ^1.13
- dev-master
- v1.28.1
- v1.28.0
- v1.27.4
- v1.27.3
- v1.27.2
- v1.27.1
- v1.27.0
- v1.26.0
- v1.25.0
- v1.24.0
- v1.23.0
- v1.22.0
- v1.21.1
- v1.21.0
- v1.20.0
- v1.19.0
- v1.18.13
- v1.18.12
- v1.18.11
- v1.18.10
- v1.18.9
- v1.18.8
- v1.18.7
- v1.18.6
- v1.18.5
- v1.18.4
- v1.18.3
- v1.18.2
- v1.18.1
- v1.18.0
- v1.17.0
- v1.16.0
- v1.15.0
- v1.14.2
- v1.14.1
- v1.14.0
- v1.13.0
- v1.12.7
- v1.12.6
- v1.12.5
- v1.12.4
- v1.12.3
- v1.12.2
- v1.12.1
- v1.12.0
- v1.11.4
- v1.11.3
- v1.11.2
- v1.11.1
- v1.11.0
- v1.10.0
- v1.9.0
- v1.8.1
- v1.8.0
- v1.7.0
- v1.6.3
- v1.6.2
- v1.6.1
- v1.6.0
- v1.5.1
- v1.5.0
- v1.4.1
- v1.4.0
- v1.3.0
- v1.2.0
- v1.1.0
- v1.0.0
- v0.10-alpha
- v0.9-alpha
- v0.8-alpha
- v0.7-alpha
- v0.6-alpha
- v0.5-alpha
- v0.4-alpha
- v0.3-alpha
- v0.2-alpha
- v0.1-alpha
This package is not auto-updated.
Last update: 2024-10-27 02:55:53 UTC
README
Demonstration
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)