-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat (Symfony): #15 complete migration for the environment
- Symfony.Tasks - Fix install creation of new project or clone existing - Added Symony/console - Docker.Tasks - Complete command management - Basics (build, start, stop, down) - Extra (Apache, All Stop, Debug logs, Run commands, Entry container)
- Loading branch information
Showing
14 changed files
with
322 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/usr/bin/env bash | ||
{ | ||
# shellcheck disable=SC2168 | ||
local PATH_MENU="docker.tasks.menu" | ||
|
||
_mod_MAIN=( | ||
"$PATH_MENU.build,Build docker, Rebuild the project containers" | ||
"$PATH_MENU.start,Start, Start containers of project" | ||
"$PATH_MENU.stop,Stop, Stop containers of project" | ||
"$PATH_MENU.logs,Logs, Inspect environment logs" | ||
"$PATH_MENU.entry,Entry, Enter the indicated container" | ||
"$PATH_MENU.command,Run command, Run command in container. Example: bash, cp, rm" | ||
"$PATH_MENU.stop_all,All Stop, Stops all containers running on the computer" | ||
"$PATH_MENU.apache_stop,Apache Stop, Apache2 stop service" | ||
"$PATH_MENU.down,Down, Destroy all project containers, networks" | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
#!/usr/bin/env bash | ||
set -euo pipefail | ||
|
||
_mod_.main(){ | ||
common.tasks.menu.print_menu "Select an option:" "${docker_props_menu_MAIN[@]}" | ||
} | ||
|
||
_mod_.build(){ | ||
docker.tasks.main.dp_up | ||
_mod_.main | ||
} | ||
|
||
_mod_.start(){ | ||
docker.tasks.main.dp_start | ||
_mod_.main | ||
} | ||
|
||
_mod_.stop(){ | ||
docker.tasks.main.dp_stop | ||
_mod_.main | ||
} | ||
|
||
_mod_.stop_all(){ | ||
docker.tasks.main.dp_all_stop | ||
_mod_.main | ||
} | ||
|
||
_mod_.apache_stop(){ | ||
docker.tasks.main.apache_stop | ||
_mod_.main | ||
} | ||
|
||
_mod_.down(){ | ||
docker.tasks.main.dp_down | ||
_mod_.main | ||
} | ||
|
||
_mod_.logs(){ | ||
docker.tasks.main.dp_logs | ||
} | ||
|
||
_mod_.entry(){ | ||
docker.tasks.main.container_entry | ||
} | ||
|
||
_mod_.command(){ | ||
docker.tasks.main.container_run_command | ||
} |
Oops, something went wrong.