From dd9731c641d1e5d4cbc39cca46294efddc1b3c08 Mon Sep 17 00:00:00 2001 From: Benoit Foujols Date: Sat, 4 Nov 2023 21:18:23 +0100 Subject: [PATCH 1/2] #28 Fix Service star not start --- Taskfile.yaml | 26 +++++++++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) diff --git a/Taskfile.yaml b/Taskfile.yaml index 0b0ff30..3731360 100644 --- a/Taskfile.yaml +++ b/Taskfile.yaml @@ -18,9 +18,9 @@ silent: true vars: # # TASKFILE - VERSION: 1.1.3 + VERSION: 1.1.4 CONTRIBUTOR: "Benoit Foujols, Julien Pechberty" - ENV: main + ENV: dev # # SYSTEM PWD: $PWD @@ -376,6 +376,20 @@ tasks: - "{{.PHPUNIT}} --coverage-html var/coverage" ## === 👨‍🍳 DOCKER RECIPES ========================================= + check-docker: + desc: Check Docker Service + cmds: + - | + if docker ps >/dev/null 2>&1; then + echo "[X] Docker is running" + else + echo "WARNING : Docker is not running, please start docker service !" + echo "Are you sure you start docker service ? [y/N] :" + read CONFIRM + if [ "$CONFIRM" = "y" ]; then + task check-docker + fi + fi create-components-dir: desc: "Create _docker-components directory" @@ -621,7 +635,12 @@ tasks: fi - task: sf-perm - task: sf-ddc - - task: sf-dmm + - | + echo "Are you sure you want to migration ? [y/N] :" + read CONFIRM + if [ "$CONFIRM" = "y" ]; then + task sf-dmm + fi - | echo "Are you sure you want to datafixture ? [y/N] :" read CONFIRM @@ -634,6 +653,7 @@ tasks: start: desc: "Start" cmds: + - task: check-docker - | if [ ! -f .env ]; then task first-install From a5bedf73d1146a9a0065f7d098ae2dc4566ecc53 Mon Sep 17 00:00:00 2001 From: Benoit Foujols Date: Sat, 4 Nov 2023 21:32:04 +0100 Subject: [PATCH 2/2] add command reset project --- Taskfile.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/Taskfile.yaml b/Taskfile.yaml index 3731360..c6c9b60 100644 --- a/Taskfile.yaml +++ b/Taskfile.yaml @@ -739,3 +739,19 @@ tasks: msg: "_docker-components folder not removed !" - sh: "[ -f docker-compose.yml ]" msg: "docker-compose file missing" + + reset: + desc: "Reset all configuration project" + cmds: + - | + echo "Are you sure you want to reset all configuration project ? [y/N] :" + read CONFIRM + if [ "$CONFIRM" = "y" ]; then + rm -fr .env docker-compose* vendor node_modules + fi + - | + echo "Are you sure you want to delete var/ repository ? [y/N] :" + read CONFIRM + if [ "$CONFIRM" = "y" ]; then + rm -fr var + fi \ No newline at end of file